mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Correct the code that detects DES2 keys based on their lengths. Bug 201521
This commit is contained in:
parent
50ba0ae29c
commit
a973e0dc48
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user