commit | 898e0aa210fcb8d28fe0cb09bb8c9bcb4e7de164 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Jun 18 15:28:12 2015 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Jun 18 15:31:10 2015 +0200 |
tree | 4b7adad4c312a7561fb4608ccecf380a57e0597a | |
parent | b8186a5e5484fadd668998efaa760658d2308766 [diff] [blame] |
Rename key_length in cipher_info
diff --git a/library/pkcs5.c b/library/pkcs5.c index 7564733..68cbfa7 100644 --- a/library/pkcs5.c +++ b/library/pkcs5.c
@@ -176,7 +176,7 @@ * The value of keylen from pkcs5_parse_pbkdf2_params() is ignored * since it is optional and we don't know if it was set or not */ - keylen = cipher_info->key_length / 8; + keylen = cipher_info->key_bitlen / 8; if( enc_scheme_params.tag != MBEDTLS_ASN1_OCTET_STRING || enc_scheme_params.len != cipher_info->iv_size )