Fix for EVP_PBE_alg_add().
In EVP_PBE_alg_add don't use the underlying NID for the cipher as it may have a non-standard key size. PR#3206 (cherry picked from commit efb7caef637a1de8468ca109efd355a9d0e73a45)
This commit is contained in:
parent
52f856526c
commit
d0ba994483
@ -259,7 +259,7 @@ int EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md,
|
|||||||
{
|
{
|
||||||
int cipher_nid, md_nid;
|
int cipher_nid, md_nid;
|
||||||
if (cipher)
|
if (cipher)
|
||||||
cipher_nid = EVP_CIPHER_type(cipher);
|
cipher_nid = EVP_CIPHER_nid(cipher);
|
||||||
else
|
else
|
||||||
cipher_nid = -1;
|
cipher_nid = -1;
|
||||||
if (md)
|
if (md)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user