Blame crypto/seed/seed_cfb.c
|
Packit |
c4476c |
/*
|
|
Packit |
c4476c |
* Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved.
|
|
Packit |
c4476c |
*
|
|
Packit |
c4476c |
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
Packit |
c4476c |
* this file except in compliance with the License. You can obtain a copy
|
|
Packit |
c4476c |
* in the file LICENSE in the source distribution or at
|
|
Packit |
c4476c |
* https://www.openssl.org/source/license.html
|
|
Packit |
c4476c |
*/
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
#include <openssl/seed.h>
|
|
Packit |
c4476c |
#include <openssl/modes.h>
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
void SEED_cfb128_encrypt(const unsigned char *in, unsigned char *out,
|
|
Packit |
c4476c |
size_t len, const SEED_KEY_SCHEDULE *ks,
|
|
Packit |
c4476c |
unsigned char ivec[SEED_BLOCK_SIZE], int *num,
|
|
Packit |
c4476c |
int enc)
|
|
Packit |
c4476c |
{
|
|
Packit |
c4476c |
CRYPTO_cfb128_encrypt(in, out, len, ks, ivec, num, enc,
|
|
Packit |
c4476c |
(block128_f) SEED_encrypt);
|
|
Packit |
c4476c |
}
|