From: Dr. Stephen Henson Date: Fri, 26 Feb 2010 14:41:38 +0000 (+0000) Subject: Revert CFB block length change. Despite what SP800-38a says the input to X-Git-Tag: OpenSSL_0_9_8n~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=582eb96d156ec2b6cd41e8f0e17ae30beaadec8f;p=oweals%2Fopenssl.git Revert CFB block length change. Despite what SP800-38a says the input to CFB mode does *not* have to be a multiple of the block length and several other specifications (e.g. PKCS#11) do not require this. --- diff --git a/crypto/evp/evp_locl.h b/crypto/evp/evp_locl.h index 72105b0fe2..ef6c432538 100644 --- a/crypto/evp/evp_locl.h +++ b/crypto/evp/evp_locl.h @@ -127,9 +127,9 @@ BLOCK_CIPHER_def1(cname, cbc, cbc, CBC, kstruct, nid, block_size, key_len, \ #define BLOCK_CIPHER_def_cfb(cname, kstruct, nid, key_len, \ iv_len, cbits, flags, init_key, cleanup, \ set_asn1, get_asn1, ctrl) \ -BLOCK_CIPHER_def1(cname, cfb##cbits, cfb##cbits, CFB, kstruct, nid, \ - (cbits + 7)/8, key_len, iv_len, \ - flags, init_key, cleanup, set_asn1, get_asn1, ctrl) +BLOCK_CIPHER_def1(cname, cfb##cbits, cfb##cbits, CFB, kstruct, nid, 1, \ + key_len, iv_len, flags, init_key, cleanup, set_asn1, \ + get_asn1, ctrl) #define BLOCK_CIPHER_def_ofb(cname, kstruct, nid, key_len, \ iv_len, cbits, flags, init_key, cleanup, \