Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2003-07-29 17:24:27 +0400
committerBen Laurie <ben@openssl.org>2003-07-29 17:24:27 +0400
commitc473d53898da052330f515f0126e85d4c5931fdb (patch)
treead820e907ccdc3ae2e439e56abb96bc287bb5a85 /crypto/evp
parente8f8249319abf23d7084e23bbbaaf3069331840b (diff)
The rest of the keysizes for CFB1, working AES AVS test for CFB1.
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/e_aes.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/crypto/evp/e_aes.c b/crypto/evp/e_aes.c
index 542240f7eb..3d994c9b98 100644
--- a/crypto/evp/e_aes.c
+++ b/crypto/evp/e_aes.c
@@ -84,6 +84,19 @@ IMPLEMENT_BLOCK_CIPHER(aes_256, ks, AES, EVP_AES_KEY,
EVP_CIPHER_get_asn1_iv,
NULL)
+#define IMPLEMENT_CFBR(keysize,cbits) \
+ BLOCK_CIPHER_func_cfb(aes_##keysize,AES,cbits,EVP_AES_KEY,ks) \
+ BLOCK_CIPHER_def_cfb(aes_##keysize,EVP_AES_KEY, \
+ NID_aes_##keysize, keysize/8, 16, cbits, \
+ 0, aes_init_key, NULL, \
+ EVP_CIPHER_set_asn1_iv, \
+ EVP_CIPHER_get_asn1_iv, \
+ NULL)
+
+IMPLEMENT_CFBR(128,1)
+IMPLEMENT_CFBR(192,1)
+IMPLEMENT_CFBR(256,1)
+ /*
BLOCK_CIPHER_func_cfb(aes_128,AES,1,EVP_AES_KEY,ks)
BLOCK_CIPHER_def_cfb(aes_128,EVP_AES_KEY,
NID_aes_128, 16, 16, 1,
@@ -91,6 +104,7 @@ BLOCK_CIPHER_def_cfb(aes_128,EVP_AES_KEY,
EVP_CIPHER_set_asn1_iv,
EVP_CIPHER_get_asn1_iv,
NULL)
+ */
static int aes_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
const unsigned char *iv, int enc)