diff options
author | Ben Laurie <ben@openssl.org> | 2003-07-29 17:24:27 +0400 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2003-07-29 17:24:27 +0400 |
commit | c473d53898da052330f515f0126e85d4c5931fdb (patch) | |
tree | ad820e907ccdc3ae2e439e56abb96bc287bb5a85 /crypto/evp | |
parent | e8f8249319abf23d7084e23bbbaaf3069331840b (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.c | 14 |
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) |