diff options
author | nelsonb%netscape.com <devnull@localhost> | 2003-10-30 22:31:09 +0000 |
---|---|---|
committer | nelsonb%netscape.com <devnull@localhost> | 2003-10-30 22:31:09 +0000 |
commit | df47a4d4437cf2c06de27a64c86ff95a9a0bbabe (patch) | |
tree | 00465aa28b9175f0540f603c0f6b2f447feec255 | |
parent | 7c2690dc5ea181458e087bf17311e6611eeed323 (diff) | |
download | nss-hg-df47a4d4437cf2c06de27a64c86ff95a9a0bbabe.tar.gz |
Correct the code that detects DES2 keys based on their lengths. Bug 201521
-rw-r--r-- | security/nss/lib/pk11wrap/pk11slot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/pk11wrap/pk11slot.c b/security/nss/lib/pk11wrap/pk11slot.c index 5c3993332..ef5588867 100644 --- a/security/nss/lib/pk11wrap/pk11slot.c +++ b/security/nss/lib/pk11wrap/pk11slot.c @@ -2901,7 +2901,7 @@ PK11_GetKeyType(CK_MECHANISM_TYPE type,unsigned long len) case CKM_DES3_MAC: case CKM_DES3_MAC_GENERAL: case CKM_DES3_CBC_PAD: - return (len == 128) ? CKK_DES2 : CKK_DES3; + return (len == 16) ? CKK_DES2 : CKK_DES3; case CKM_DES2_KEY_GEN: case CKM_PBE_SHA1_DES2_EDE_CBC: return CKK_DES2; |