/dports/www/firefox-esr/firefox-91.8.0/security/nss/gtests/cryptohi_gtest/ |
H A D | cryptohi_unittest.cc | 60 ASSERT_NE(nullptr, params->hashAlg); in CreatePssParams() 118 SECAlgorithmID hashAlg; in CheckMaskAlg() local 141 switch (hashAlg) { in CheckSaltLength() 222 hashAlg != srcHashAlg) { in TEST_P() 236 if (hashAlg == SEC_OID_UNKNOWN) { in TEST_P() 237 if (!pssParams.hashAlg) { in TEST_P() 238 hashAlg = SEC_OID_SHA1; in TEST_P() 240 hashAlg = SECOID_GetAlgorithmTag(pssParams.hashAlg); in TEST_P() 306 SECOidTag hashAlg = GetParam(); in TEST_P() local 324 SECOidTag hashAlg = GetParam(); in TEST_P() local [all …]
|
/dports/www/firefox/firefox-99.0/security/nss/gtests/cryptohi_gtest/ |
H A D | cryptohi_unittest.cc | 60 ASSERT_NE(nullptr, params->hashAlg); in CreatePssParams() 118 SECAlgorithmID hashAlg; in CheckMaskAlg() local 141 switch (hashAlg) { in CheckSaltLength() 222 hashAlg != srcHashAlg) { in TEST_P() 236 if (hashAlg == SEC_OID_UNKNOWN) { in TEST_P() 237 if (!pssParams.hashAlg) { in TEST_P() 238 hashAlg = SEC_OID_SHA1; in TEST_P() 240 hashAlg = SECOID_GetAlgorithmTag(pssParams.hashAlg); in TEST_P() 306 SECOidTag hashAlg = GetParam(); in TEST_P() local 324 SECOidTag hashAlg = GetParam(); in TEST_P() local [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/security/nss/gtests/cryptohi_gtest/ |
H A D | cryptohi_unittest.cc | 60 ASSERT_NE(nullptr, params->hashAlg); in CreatePssParams() 118 SECAlgorithmID hashAlg; in CheckMaskAlg() local 141 switch (hashAlg) { in CheckSaltLength() 222 hashAlg != srcHashAlg) { in TEST_P() 236 if (hashAlg == SEC_OID_UNKNOWN) { in TEST_P() 237 if (!pssParams.hashAlg) { in TEST_P() 238 hashAlg = SEC_OID_SHA1; in TEST_P() 240 hashAlg = SECOID_GetAlgorithmTag(pssParams.hashAlg); in TEST_P() 306 SECOidTag hashAlg = GetParam(); in TEST_P() local 324 SECOidTag hashAlg = GetParam(); in TEST_P() local [all …]
|
/dports/security/ca_root_nss/nss-3.71/nss/gtests/cryptohi_gtest/ |
H A D | cryptohi_unittest.cc | 60 ASSERT_NE(nullptr, params->hashAlg); in CreatePssParams() 118 SECAlgorithmID hashAlg; in CheckMaskAlg() local 141 switch (hashAlg) { in CheckSaltLength() 222 hashAlg != srcHashAlg) { in TEST_P() 236 if (hashAlg == SEC_OID_UNKNOWN) { in TEST_P() 237 if (!pssParams.hashAlg) { in TEST_P() 238 hashAlg = SEC_OID_SHA1; in TEST_P() 240 hashAlg = SECOID_GetAlgorithmTag(pssParams.hashAlg); in TEST_P() 306 SECOidTag hashAlg = GetParam(); in TEST_P() local 324 SECOidTag hashAlg = GetParam(); in TEST_P() local [all …]
|
/dports/security/nss/nss-3.76.1/nss/gtests/cryptohi_gtest/ |
H A D | cryptohi_unittest.cc | 60 ASSERT_NE(nullptr, params->hashAlg); in CreatePssParams() 118 SECAlgorithmID hashAlg; in CheckMaskAlg() local 141 switch (hashAlg) { in CheckSaltLength() 222 hashAlg != srcHashAlg) { in TEST_P() 236 if (hashAlg == SEC_OID_UNKNOWN) { in TEST_P() 237 if (!pssParams.hashAlg) { in TEST_P() 238 hashAlg = SEC_OID_SHA1; in TEST_P() 240 hashAlg = SECOID_GetAlgorithmTag(pssParams.hashAlg); in TEST_P() 306 SECOidTag hashAlg = GetParam(); in TEST_P() local 324 SECOidTag hashAlg = GetParam(); in TEST_P() local [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/security/nss/gtests/cryptohi_gtest/ |
H A D | cryptohi_unittest.cc | 60 ASSERT_NE(nullptr, params->hashAlg); in CreatePssParams() 118 SECAlgorithmID hashAlg; in CheckMaskAlg() local 141 switch (hashAlg) { in CheckSaltLength() 222 hashAlg != srcHashAlg) { in TEST_P() 236 if (hashAlg == SEC_OID_UNKNOWN) { in TEST_P() 237 if (!pssParams.hashAlg) { in TEST_P() 238 hashAlg = SEC_OID_SHA1; in TEST_P() 240 hashAlg = SECOID_GetAlgorithmTag(pssParams.hashAlg); in TEST_P() 306 SECOidTag hashAlg = GetParam(); in TEST_P() local 324 SECOidTag hashAlg = GetParam(); in TEST_P() local [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/security/nss/gtests/cryptohi_gtest/ |
H A D | cryptohi_unittest.cc | 60 ASSERT_NE(nullptr, params->hashAlg); in CreatePssParams() 118 SECAlgorithmID hashAlg; in CheckMaskAlg() local 141 switch (hashAlg) { in CheckSaltLength() 222 hashAlg != srcHashAlg) { in TEST_P() 236 if (hashAlg == SEC_OID_UNKNOWN) { in TEST_P() 237 if (!pssParams.hashAlg) { in TEST_P() 238 hashAlg = SEC_OID_SHA1; in TEST_P() 240 hashAlg = SECOID_GetAlgorithmTag(pssParams.hashAlg); in TEST_P() 306 SECOidTag hashAlg = GetParam(); in TEST_P() local 324 SECOidTag hashAlg = GetParam(); in TEST_P() local [all …]
|
/dports/www/firefox-legacy/firefox-52.8.0esr/security/nss/lib/cryptohi/ |
H A D | secvfy.c | 424 cx->hashAlg = hashAlg; in vfy_CreateContext() 431 rv = recoverPKCS1DigestInfo(hashAlg, &cx->hashAlg, in vfy_CreateContext() 464 *hash = cx->hashAlg; in vfy_CreateContext() 479 SECOidTag encAlg, hashAlg; in VFY_CreateContext() local 499 SECOidTag encAlg, hashAlg; in VFY_CreateContextWithAlgorithmID() local 688 SECOidTag encAlg, hashAlg; in VFY_VerifyDigest() local 706 SECOidTag encAlg, hashAlg; in VFY_VerifyDigestWithAlgorithmID() local 714 hashAlg != SEC_OID_UNKNOWN && in VFY_VerifyDigestWithAlgorithmID() 715 hashCmp != hashAlg) { in VFY_VerifyDigestWithAlgorithmID() 758 SECOidTag encAlg, hashAlg; in VFY_VerifyData() local [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/security/nss/lib/cryptohi/ |
H A D | secvfy.c | 444 cx->hashAlg = hashAlg; in vfy_CreateContext() 451 rv = recoverPKCS1DigestInfo(hashAlg, &cx->hashAlg, in vfy_CreateContext() 498 *hash = cx->hashAlg; in vfy_CreateContext() 513 SECOidTag encAlg, hashAlg; in VFY_CreateContext() local 534 SECOidTag encAlg, hashAlg; in VFY_CreateContextWithAlgorithmID() local 767 SECOidTag encAlg, hashAlg; in VFY_VerifyDigest() local 785 SECOidTag encAlg, hashAlg; in VFY_VerifyDigestWithAlgorithmID() local 793 hashAlg != SEC_OID_UNKNOWN && in VFY_VerifyDigestWithAlgorithmID() 794 hashCmp != hashAlg) { in VFY_VerifyDigestWithAlgorithmID() 840 SECOidTag encAlg, hashAlg; in VFY_VerifyData() local [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/security/nss/lib/cryptohi/ |
H A D | secvfy.c | 456 cx->hashAlg = hashAlg; in vfy_CreateContext() 463 rv = recoverPKCS1DigestInfo(hashAlg, &cx->hashAlg, in vfy_CreateContext() 510 *hash = cx->hashAlg; in vfy_CreateContext() 525 SECOidTag encAlg, hashAlg; in VFY_CreateContext() local 546 SECOidTag encAlg, hashAlg; in VFY_CreateContextWithAlgorithmID() local 789 SECOidTag encAlg, hashAlg; in VFY_VerifyDigest() local 807 SECOidTag encAlg, hashAlg; in VFY_VerifyDigestWithAlgorithmID() local 815 hashAlg != SEC_OID_UNKNOWN && in VFY_VerifyDigestWithAlgorithmID() 816 hashCmp != hashAlg) { in VFY_VerifyDigestWithAlgorithmID() 862 SECOidTag encAlg, hashAlg; in VFY_VerifyData() local [all …]
|
/dports/www/firefox-esr/firefox-91.8.0/security/nss/lib/cryptohi/ |
H A D | secvfy.c | 495 cx->hashAlg = hashAlg; 502 rv = recoverPKCS1DigestInfo(hashAlg, &cx->hashAlg, 561 *hash = cx->hashAlg; 576 SECOidTag encAlg, hashAlg; 597 SECOidTag encAlg, hashAlg; 845 SECOidTag encAlg, hashAlg; 863 SECOidTag encAlg, hashAlg; 871 hashAlg != SEC_OID_UNKNOWN && 872 hashCmp != hashAlg) { 918 SECOidTag encAlg, hashAlg; [all …]
|
/dports/security/ca_root_nss/nss-3.71/nss/lib/cryptohi/ |
H A D | secvfy.c | 464 cx->hashAlg = hashAlg; in vfy_CreateContext() 471 rv = recoverPKCS1DigestInfo(hashAlg, &cx->hashAlg, in vfy_CreateContext() 526 *hash = cx->hashAlg; in vfy_CreateContext() 541 SECOidTag encAlg, hashAlg; in VFY_CreateContext() local 562 SECOidTag encAlg, hashAlg; in VFY_CreateContextWithAlgorithmID() local 795 SECOidTag encAlg, hashAlg; in VFY_VerifyDigest() local 813 SECOidTag encAlg, hashAlg; in VFY_VerifyDigestWithAlgorithmID() local 821 hashAlg != SEC_OID_UNKNOWN && in VFY_VerifyDigestWithAlgorithmID() 822 hashCmp != hashAlg) { in VFY_VerifyDigestWithAlgorithmID() 868 SECOidTag encAlg, hashAlg; in VFY_VerifyData() local [all …]
|
/dports/www/firefox/firefox-99.0/security/nss/lib/cryptohi/ |
H A D | secvfy.c | 495 cx->hashAlg = hashAlg; in vfy_CreateContext() 502 rv = recoverPKCS1DigestInfo(hashAlg, &cx->hashAlg, in vfy_CreateContext() 561 *hash = cx->hashAlg; in vfy_CreateContext() 576 SECOidTag encAlg, hashAlg; in VFY_CreateContext() local 597 SECOidTag encAlg, hashAlg; in VFY_CreateContextWithAlgorithmID() local 845 SECOidTag encAlg, hashAlg; in VFY_VerifyDigest() local 863 SECOidTag encAlg, hashAlg; in VFY_VerifyDigestWithAlgorithmID() local 871 hashAlg != SEC_OID_UNKNOWN && in VFY_VerifyDigestWithAlgorithmID() 872 hashCmp != hashAlg) { in VFY_VerifyDigestWithAlgorithmID() 918 SECOidTag encAlg, hashAlg; in VFY_VerifyData() local [all …]
|
/dports/security/nss/nss-3.76.1/nss/lib/cryptohi/ |
H A D | secvfy.c | 495 cx->hashAlg = hashAlg; in vfy_CreateContext() 502 rv = recoverPKCS1DigestInfo(hashAlg, &cx->hashAlg, in vfy_CreateContext() 561 *hash = cx->hashAlg; in vfy_CreateContext() 576 SECOidTag encAlg, hashAlg; in VFY_CreateContext() local 597 SECOidTag encAlg, hashAlg; in VFY_CreateContextWithAlgorithmID() local 845 SECOidTag encAlg, hashAlg; in VFY_VerifyDigest() local 863 SECOidTag encAlg, hashAlg; in VFY_VerifyDigestWithAlgorithmID() local 871 hashAlg != SEC_OID_UNKNOWN && in VFY_VerifyDigestWithAlgorithmID() 872 hashCmp != hashAlg) { in VFY_VerifyDigestWithAlgorithmID() 918 SECOidTag encAlg, hashAlg; in VFY_VerifyData() local [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/security/nss/lib/cryptohi/ |
H A D | secvfy.c | 495 cx->hashAlg = hashAlg; in vfy_CreateContext() 502 rv = recoverPKCS1DigestInfo(hashAlg, &cx->hashAlg, in vfy_CreateContext() 561 *hash = cx->hashAlg; in vfy_CreateContext() 576 SECOidTag encAlg, hashAlg; in VFY_CreateContext() local 597 SECOidTag encAlg, hashAlg; in VFY_CreateContextWithAlgorithmID() local 845 SECOidTag encAlg, hashAlg; in VFY_VerifyDigest() local 863 SECOidTag encAlg, hashAlg; in VFY_VerifyDigestWithAlgorithmID() local 871 hashAlg != SEC_OID_UNKNOWN && in VFY_VerifyDigestWithAlgorithmID() 872 hashCmp != hashAlg) { in VFY_VerifyDigestWithAlgorithmID() 918 SECOidTag encAlg, hashAlg; in VFY_VerifyData() local [all …]
|
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/java.base/share/classes/sun/security/ssl/ |
H A D | SSLMasterKeyDerivation.java | 95 HashAlg hashAlg; in deriveKey() local 106 hashAlg = H_NONE; in deriveKey() 112 hashAlg = cipherSuite.hashAlg; in deriveKey() 117 hashAlg = cipherSuite.hashAlg; in deriveKey() 120 hashAlg = H_NONE; in deriveKey() 137 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey() 144 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey()
|
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/src/java.base/share/classes/sun/security/ssl/ |
H A D | SSLMasterKeyDerivation.java | 95 HashAlg hashAlg; in deriveKey() local 106 hashAlg = H_NONE; in deriveKey() 112 hashAlg = cipherSuite.hashAlg; in deriveKey() 117 hashAlg = cipherSuite.hashAlg; in deriveKey() 120 hashAlg = H_NONE; in deriveKey() 137 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey() 144 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey()
|
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/java.base/share/classes/sun/security/ssl/ |
H A D | SSLMasterKeyDerivation.java | 95 HashAlg hashAlg; in deriveKey() local 106 hashAlg = H_NONE; in deriveKey() 112 hashAlg = cipherSuite.hashAlg; in deriveKey() 117 hashAlg = cipherSuite.hashAlg; in deriveKey() 120 hashAlg = H_NONE; in deriveKey() 137 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey() 144 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey()
|
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/src/java.base/share/classes/sun/security/ssl/ |
H A D | SSLMasterKeyDerivation.java | 95 HashAlg hashAlg; in deriveKey() local 106 hashAlg = H_NONE; in deriveKey() 112 hashAlg = cipherSuite.hashAlg; in deriveKey() 117 hashAlg = cipherSuite.hashAlg; in deriveKey() 120 hashAlg = H_NONE; in deriveKey() 137 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey() 144 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey()
|
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/src/java.base/share/classes/sun/security/ssl/ |
H A D | SSLMasterKeyDerivation.java | 95 HashAlg hashAlg; in deriveKey() local 106 hashAlg = H_NONE; in deriveKey() 112 hashAlg = cipherSuite.hashAlg; in deriveKey() 117 hashAlg = cipherSuite.hashAlg; in deriveKey() 120 hashAlg = H_NONE; in deriveKey() 137 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey() 144 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey()
|
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/src/java.base/share/classes/sun/security/ssl/ |
H A D | SSLMasterKeyDerivation.java | 95 HashAlg hashAlg; in deriveKey() local 106 hashAlg = H_NONE; in deriveKey() 112 hashAlg = cipherSuite.hashAlg; in deriveKey() 117 hashAlg = cipherSuite.hashAlg; in deriveKey() 120 hashAlg = H_NONE; in deriveKey() 137 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey() 144 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey()
|
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/src/java.base/share/classes/sun/security/ssl/ |
H A D | SSLMasterKeyDerivation.java | 95 HashAlg hashAlg; in deriveKey() local 106 hashAlg = H_NONE; in deriveKey() 112 hashAlg = cipherSuite.hashAlg; in deriveKey() 117 hashAlg = cipherSuite.hashAlg; in deriveKey() 120 hashAlg = H_NONE; in deriveKey() 137 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey() 144 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey()
|
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/src/java.base/share/classes/sun/security/ssl/ |
H A D | SSLMasterKeyDerivation.java | 95 HashAlg hashAlg; in deriveKey() local 106 hashAlg = H_NONE; in deriveKey() 112 hashAlg = cipherSuite.hashAlg; in deriveKey() 117 hashAlg = cipherSuite.hashAlg; in deriveKey() 120 hashAlg = H_NONE; in deriveKey() 137 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey() 144 hashAlg.name, hashAlg.hashLength, hashAlg.blockSize); in deriveKey()
|
/dports/java/bouncycastle15/crypto-169/core/src/main/java/org/bouncycastle/pqc/crypto/ntru/ |
H A D | NTRUSigningParameters.java | 29 public Digest hashAlg; field in NTRUSigningParameters 50 this.hashAlg = hashAlg; in NTRUSigningParameters() 78 this.hashAlg = hashAlg; in NTRUSigningParameters() 112 hashAlg = new SHA512Digest(); in NTRUSigningParameters() 116 hashAlg = new SHA256Digest(); in NTRUSigningParameters() 142 dos.writeUTF(hashAlg.getAlgorithmName()); in writeTo() 166 result = prime * result + ((hashAlg == null) ? 0 : hashAlg.getAlgorithmName().hashCode()); in hashCode() 227 if (hashAlg == null) in equals() 229 if (other.hashAlg != null) in equals() 234 else if (!hashAlg.getAlgorithmName().equals(other.hashAlg.getAlgorithmName())) in equals() [all …]
|
H A D | IndexGenerator.java | 20 private Digest hashAlg; field in IndexGenerator 39 hashAlg = params.hashAlg; in IndexGenerator() 41 hLen = hashAlg.getDigestSize(); // hash length in IndexGenerator() 101 hashAlg.update(seed, 0, seed.length); in appendHash() 103 putInt(hashAlg, counter); in appendHash() 105 hashAlg.doFinal(hash, 0); in appendHash() 110 private void putInt(Digest hashAlg, int counter) in putInt() argument 112 hashAlg.update((byte)(counter >> 24)); in putInt() 113 hashAlg.update((byte)(counter >> 16)); in putInt() 114 hashAlg.update((byte)(counter >> 8)); in putInt() [all …]
|