1*1dcdf01fSchristos /*
2*1dcdf01fSchristos  * Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved.
360662d10Schristos  *
4*1dcdf01fSchristos  * Licensed under the OpenSSL license (the "License").  You may not use
5*1dcdf01fSchristos  * this file except in compliance with the License.  You can obtain a copy
6*1dcdf01fSchristos  * in the file LICENSE in the source distribution or at
7*1dcdf01fSchristos  * https://www.openssl.org/source/license.html
860662d10Schristos  */
960662d10Schristos 
1060662d10Schristos #include <openssl/seed.h>
1160662d10Schristos #include <openssl/modes.h>
1260662d10Schristos 
SEED_ofb128_encrypt(const unsigned char * in,unsigned char * out,size_t len,const SEED_KEY_SCHEDULE * ks,unsigned char ivec[SEED_BLOCK_SIZE],int * num)1360662d10Schristos void SEED_ofb128_encrypt(const unsigned char *in, unsigned char *out,
1460662d10Schristos                          size_t len, const SEED_KEY_SCHEDULE *ks,
1560662d10Schristos                          unsigned char ivec[SEED_BLOCK_SIZE], int *num)
1660662d10Schristos {
1760662d10Schristos     CRYPTO_ofb128_encrypt(in, out, len, ks, ivec, num,
1860662d10Schristos                           (block128_f) SEED_encrypt);
1960662d10Schristos }
20