projects
/
platform
/
upstream
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8813eea
)
Fix for EVP_PBE_alg_add().
author
Dr. Stephen Henson
<steve@openssl.org>
Fri, 27 Jun 2014 21:56:37 +0000
(22:56 +0100)
committer
Janusz Kozerski
<j.kozerski@samsung.com>
Mon, 20 Oct 2014 13:25:28 +0000
(15:25 +0200)
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
)
crypto/evp/evp_pbe.c
patch
|
blob
|
history
diff --git
a/crypto/evp/evp_pbe.c
b/crypto/evp/evp_pbe.c
index
f8c32d8
..
5969695
100644
(file)
--- a/
crypto/evp/evp_pbe.c
+++ b/
crypto/evp/evp_pbe.c
@@
-259,7
+259,7
@@
int EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md,
{
int cipher_nid, md_nid;
if (cipher)
- cipher_nid = EVP_CIPHER_
type
(cipher);
+ cipher_nid = EVP_CIPHER_
nid
(cipher);
else
cipher_nid = -1;
if (md)