summaryrefslogtreecommitdiffstats
path: root/crypto/evp/e_rc2.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-02-16 13:39:07 +0100
committerRichard Levitte <levitte@openssl.org>2002-02-16 13:39:07 +0100
commita6cd870784b190afcfd5c98b2957f73996aad4fb (patch)
treed6cc5e21afdb50fe9e4a08283ffb816b5f8725ae /crypto/evp/e_rc2.c
parentAdd the modes OFB128, CFB128 and CTR128 to AES. (diff)
downloadopenssl-a6cd870784b190afcfd5c98b2957f73996aad4fb.tar.xz
openssl-a6cd870784b190afcfd5c98b2957f73996aad4fb.zip
The AES modes OFB and CFB are defined with 128 feedback bits. This
deviates from the "standard" 64 bits of feedback that all other algorithms are using. Therefore, let's redo certain EVP macros to accept different amounts of feedback bits for these modes. Also, change e_aes.c to provide all usually available modes for AES. CTR isn't included yet.
Diffstat (limited to 'crypto/evp/e_rc2.c')
-rw-r--r--crypto/evp/e_rc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/e_rc2.c b/crypto/evp/e_rc2.c
index b62d941979..4685198e2e 100644
--- a/crypto/evp/e_rc2.c
+++ b/crypto/evp/e_rc2.c
@@ -83,7 +83,7 @@ typedef struct
IMPLEMENT_BLOCK_CIPHER(rc2, ks, RC2, EVP_RC2_KEY, NID_rc2,
8,
- RC2_KEY_LENGTH, 8,
+ RC2_KEY_LENGTH, 8, 64,
EVP_CIPH_VARIABLE_LENGTH | EVP_CIPH_CTRL_INIT,
rc2_init_key, NULL,
rc2_set_asn1_type_and_iv, rc2_get_asn1_type_and_iv,