mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1021601 - Remove SHA-224 support from WebCrypto API r=rbarnes
This commit is contained in:
parent
048e0daf39
commit
1205cf9548
@ -33,7 +33,6 @@ public:
|
||||
{
|
||||
switch (mHash->Mechanism()) {
|
||||
case CKM_SHA_1: mMechanism = CKM_SHA_1_HMAC; break;
|
||||
case CKM_SHA224: mMechanism = CKM_SHA224_HMAC; break;
|
||||
case CKM_SHA256: mMechanism = CKM_SHA256_HMAC; break;
|
||||
case CKM_SHA384: mMechanism = CKM_SHA384_HMAC; break;
|
||||
case CKM_SHA512: mMechanism = CKM_SHA512_HMAC; break;
|
||||
|
@ -40,8 +40,6 @@ KeyAlgorithm::KeyAlgorithm(nsIGlobalObject* aGlobal, const nsString& aName)
|
||||
mMechanism = CKM_AES_GCM;
|
||||
} else if (mName.EqualsLiteral(WEBCRYPTO_ALG_SHA1)) {
|
||||
mMechanism = CKM_SHA_1;
|
||||
} else if (mName.EqualsLiteral(WEBCRYPTO_ALG_SHA224)) {
|
||||
mMechanism = CKM_SHA224;
|
||||
} else if (mName.EqualsLiteral(WEBCRYPTO_ALG_SHA256)) {
|
||||
mMechanism = CKM_SHA256;
|
||||
} else if (mName.EqualsLiteral(WEBCRYPTO_ALG_SHA384)) {
|
||||
|
@ -18,7 +18,6 @@
|
||||
#define WEBCRYPTO_ALG_AES_GCM "AES-GCM"
|
||||
#define WEBCRYPTO_ALG_SHA1 "SHA-1"
|
||||
#define WEBCRYPTO_ALG_SHA256 "SHA-256"
|
||||
#define WEBCRYPTO_ALG_SHA224 "SHA-224"
|
||||
#define WEBCRYPTO_ALG_SHA384 "SHA-384"
|
||||
#define WEBCRYPTO_ALG_SHA512 "SHA-512"
|
||||
#define WEBCRYPTO_ALG_HMAC "HMAC"
|
||||
|
@ -489,8 +489,6 @@ public:
|
||||
switch (hashAlg->Mechanism()) {
|
||||
case CKM_SHA_1:
|
||||
mOidTag = SEC_OID_PKCS1_SHA1_WITH_RSA_ENCRYPTION; break;
|
||||
case CKM_SHA224:
|
||||
mOidTag = SEC_OID_PKCS1_SHA224_WITH_RSA_ENCRYPTION; break;
|
||||
case CKM_SHA256:
|
||||
mOidTag = SEC_OID_PKCS1_SHA256_WITH_RSA_ENCRYPTION; break;
|
||||
case CKM_SHA384:
|
||||
@ -598,8 +596,6 @@ public:
|
||||
|
||||
if (algName.EqualsLiteral(WEBCRYPTO_ALG_SHA1)) {
|
||||
mOidTag = SEC_OID_SHA1;
|
||||
} else if (algName.EqualsLiteral(WEBCRYPTO_ALG_SHA224)) {
|
||||
mOidTag = SEC_OID_SHA224;
|
||||
} else if (algName.EqualsLiteral(WEBCRYPTO_ALG_SHA256)) {
|
||||
mOidTag = SEC_OID_SHA256;
|
||||
} else if (algName.EqualsLiteral(WEBCRYPTO_ALG_SHA384)) {
|
||||
@ -1046,7 +1042,6 @@ public:
|
||||
KeyAlgorithm hashAlg(global, hashName);
|
||||
switch (hashAlg.Mechanism()) {
|
||||
case CKM_SHA_1: mLength = 128; break;
|
||||
case CKM_SHA224: mLength = 224; break;
|
||||
case CKM_SHA256: mLength = 256; break;
|
||||
case CKM_SHA384: mLength = 384; break;
|
||||
case CKM_SHA512: mLength = 512; break;
|
||||
|
Loading…
Reference in New Issue
Block a user