/external/boringssl/src/ssl/test/runner/ |
D | sign.go | 37 for _, sigAlg := range config.signSignatureAlgorithms() { 38 if !isSupportedSignatureAlgorithm(sigAlg, peerSigAlgs) { 42 signer, err := getSigner(version, key, config, sigAlg, false) 48 return sigAlg, nil 54 func signMessage(version uint16, key crypto.PrivateKey, config *Config, sigAlg signatureAlgorithm, … 62 signer, err := getSigner(version, key, config, sigAlg, false) 70 func verifyMessage(version uint16, key crypto.PublicKey, config *Config, sigAlg signatureAlgorithm,… 71 …if version >= VersionTLS12 && !isSupportedSignatureAlgorithm(sigAlg, config.verifySignatureAlgorit… 75 signer, err := getSigner(version, key, config, sigAlg, true) 275 func getSigner(version uint16, key interface{}, config *Config, sigAlg signatureAlgorithm, isVerify… [all …]
|
D | key_agreement.go | 66 var sigAlg signatureAlgorithm 68 …sigAlg, err = selectSignatureAlgorithm(ka.version, cert.PrivateKey, config, clientHello.signatureA… 74 sig, err := signMessage(ka.version, cert.PrivateKey, config, sigAlg, serverRSAParams) 88 k[0] = byte(sigAlg >> 8) 89 k[1] = byte(sigAlg) 492 var sigAlg signatureAlgorithm 495 …sigAlg, err = selectSignatureAlgorithm(ka.version, cert.PrivateKey, config, clientHello.signatureA… 501 sig, err := signMessage(ka.version, cert.PrivateKey, config, sigAlg, msg) 506 sigAlg = config.Bugs.SendSignatureAlgorithm 521 k[0] = byte(sigAlg >> 8) [all …]
|
D | handshake_messages.go | 517 for _, sigAlg := range m.signatureAlgorithms { 518 signatureAlgorithms.addU16(uint16(sigAlg)) 528 for _, sigAlg := range m.signatureAlgorithmsCert { 529 signatureAlgorithmsCert.addU16(uint16(sigAlg)) 640 for _, sigAlg := range m.signatureAlgorithms { 641 signatureSchemeList.addU16(uint16(sigAlg)) 2251 for _, sigAlg := range m.signatureAlgorithms { 2252 signatureAlgorithms.addU16(uint16(sigAlg)) 2258 for _, sigAlg := range m.signatureAlgorithmsCert { 2259 signatureAlgorithmsCert.addU16(uint16(sigAlg)) [all …]
|
D | common.go | 2185 func isSupportedSignatureAlgorithm(sigAlg signatureAlgorithm, sigAlgs []signatureAlgorithm) bool { 2187 if s == sigAlg {
|
D | handshake_server.go | 1880 var sigAlg signatureAlgorithm 1882 sigAlg = certVerify.signatureAlgorithm 1883 c.peerSignatureAlgorithm = sigAlg 1887 err = verifyMessage(c.vers, pub, c.config, sigAlg, hs.finishedHash.buffer, certVerify.signature)
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/netscape/ |
D | NetscapeCertRequest.java | 48 AlgorithmIdentifier sigAlg; field in NetscapeCertRequest 89 sigAlg = AlgorithmIdentifier.getInstance(spkac.getObjectAt(1)); in NetscapeCertRequest() 136 sigAlg = signing_alg; in NetscapeCertRequest() 166 return sigAlg; in getSigningAlgorithm() 171 sigAlg = value; in setSigningAlgorithm() 206 Signature sig = Signature.getInstance(sigAlg.getAlgorithm().getId()); in verify() 225 Signature sig = Signature.getInstance(sigAlg.getAlgorithm().getId()); in sign() 294 spkac.add(sigAlg); in toASN1Primitive()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/netscape/ |
D | NetscapeCertRequest.java | 50 AlgorithmIdentifier sigAlg; field in NetscapeCertRequest 91 sigAlg = AlgorithmIdentifier.getInstance(spkac.getObjectAt(1)); in NetscapeCertRequest() 138 sigAlg = signing_alg; in NetscapeCertRequest() 168 return sigAlg; in getSigningAlgorithm() 173 sigAlg = value; in setSigningAlgorithm() 208 Signature sig = Signature.getInstance(sigAlg.getAlgorithm().getId()); in verify() 227 Signature sig = Signature.getInstance(sigAlg.getAlgorithm().getId()); in sign() 296 spkac.add(sigAlg); in toASN1Primitive()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jce/netscape/ |
D | NetscapeCertRequest.java | 50 AlgorithmIdentifier sigAlg; field in NetscapeCertRequest 91 sigAlg = AlgorithmIdentifier.getInstance(spkac.getObjectAt(1)); in NetscapeCertRequest() 138 sigAlg = signing_alg; in NetscapeCertRequest() 168 return sigAlg; in getSigningAlgorithm() 173 sigAlg = value; in setSigningAlgorithm() 208 Signature sig = Signature.getInstance(sigAlg.getAlgorithm().getId()); in verify() 227 Signature sig = Signature.getInstance(sigAlg.getAlgorithm().getId()); in sign() 296 spkac.add(sigAlg); in toASN1Primitive()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLX509CRL.java | 227 String sigAlg = getSigAlgName(); in verifyInternal() local 228 if (sigAlg == null) { in verifyInternal() 229 sigAlg = getSigAlgOID(); in verifyInternal() 234 sig = Signature.getInstance(sigAlg); in verifyInternal() 236 sig = Signature.getInstance(sigAlg, sigProvider); in verifyInternal()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLX509CRL.java | 225 String sigAlg = getSigAlgName(); in verifyInternal() local 226 if (sigAlg == null) { in verifyInternal() 227 sigAlg = getSigAlgOID(); in verifyInternal() 232 sig = Signature.getInstance(sigAlg); in verifyInternal() 234 sig = Signature.getInstance(sigAlg, sigProvider); in verifyInternal()
|
/external/scapy/scapy/layers/tls/ |
D | cert.py | 246 sigAlg = tbsCert.signature 247 h = hash_by_oid[sigAlg.algorithm.val] 420 sigAlg = tbsCert.signature 421 h = h or hash_by_oid[sigAlg.algorithm.val] 425 c.signatureAlgorithm = sigAlg 436 sigAlg = tbsCert.signature 437 h = hash_by_oid[sigAlg.algorithm.val] 573 self.sigAlg = tbsCert.signature.algorithm.oidname 767 self.sigAlg = tbsCertList.signature.algorithm.oidname 832 print("sigAlg: " + self.sigAlg)
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/ |
D | JcaContentVerifierProviderBuilder.java | 210 AlgorithmIdentifier sigAlg = AlgorithmIdentifier.getInstance(keySeq.getObjectAt(i)); 213 sigs[i] = createSignature(sigAlg, (PublicKey)pubKeys.get(i)); 229 AlgorithmIdentifier sigAlg = AlgorithmIdentifier.getInstance(keySeq.getObjectAt(i)); 232 sigs[i] = createSignature(sigAlg, publicKey);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
D | X509CRLImpl.java | 268 AlgorithmIdentifier sigAlg = AlgorithmIdentifier.getInstance(keySeq.getObjectAt(i)); in doVerify() local 269 String sigName = X509SignatureUtil.getSignatureName(sigAlg); in doVerify() 279 sigAlg.getParameters(), in doVerify() 307 AlgorithmIdentifier sigAlg = AlgorithmIdentifier.getInstance(keySeq.getObjectAt(i)); in doVerify() local 308 String sigName = X509SignatureUtil.getSignatureName(sigAlg); in doVerify() 318 sigAlg.getParameters(), in doVerify()
|
D | X509CertificateImpl.java | 658 AlgorithmIdentifier sigAlg = AlgorithmIdentifier.getInstance(keySeq.getObjectAt(i)); in doVerify() local 659 String sigName = X509SignatureUtil.getSignatureName(sigAlg); in doVerify() 669 sigAlg.getParameters(), in doVerify() 697 AlgorithmIdentifier sigAlg = AlgorithmIdentifier.getInstance(keySeq.getObjectAt(i)); in doVerify() local 698 String sigName = X509SignatureUtil.getSignatureName(sigAlg); in doVerify() 708 sigAlg.getParameters(), in doVerify()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
D | X509CRLImpl.java | 269 AlgorithmIdentifier sigAlg = AlgorithmIdentifier.getInstance(keySeq.getObjectAt(i)); in doVerify() local 270 String sigName = X509SignatureUtil.getSignatureName(sigAlg); in doVerify() 280 sigAlg.getParameters(), in doVerify() 308 AlgorithmIdentifier sigAlg = AlgorithmIdentifier.getInstance(keySeq.getObjectAt(i)); in doVerify() local 309 String sigName = X509SignatureUtil.getSignatureName(sigAlg); in doVerify() 319 sigAlg.getParameters(), in doVerify()
|
D | X509CertificateImpl.java | 659 AlgorithmIdentifier sigAlg = AlgorithmIdentifier.getInstance(keySeq.getObjectAt(i)); in doVerify() local 660 String sigName = X509SignatureUtil.getSignatureName(sigAlg); in doVerify() 670 sigAlg.getParameters(), in doVerify() 698 AlgorithmIdentifier sigAlg = AlgorithmIdentifier.getInstance(keySeq.getObjectAt(i)); in doVerify() local 699 String sigName = X509SignatureUtil.getSignatureName(sigAlg); in doVerify() 709 sigAlg.getParameters(), in doVerify()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
D | X509CRLImpl.java | 269 AlgorithmIdentifier sigAlg = AlgorithmIdentifier.getInstance(keySeq.getObjectAt(i)); in doVerify() local 270 String sigName = X509SignatureUtil.getSignatureName(sigAlg); in doVerify() 280 sigAlg.getParameters(), in doVerify() 308 AlgorithmIdentifier sigAlg = AlgorithmIdentifier.getInstance(keySeq.getObjectAt(i)); in doVerify() local 309 String sigName = X509SignatureUtil.getSignatureName(sigAlg); in doVerify() 319 sigAlg.getParameters(), in doVerify()
|
D | X509CertificateImpl.java | 659 AlgorithmIdentifier sigAlg = AlgorithmIdentifier.getInstance(keySeq.getObjectAt(i)); in doVerify() local 660 String sigName = X509SignatureUtil.getSignatureName(sigAlg); in doVerify() 670 sigAlg.getParameters(), in doVerify() 698 AlgorithmIdentifier sigAlg = AlgorithmIdentifier.getInstance(keySeq.getObjectAt(i)); in doVerify() local 699 String sigName = X509SignatureUtil.getSignatureName(sigAlg); in doVerify() 709 sigAlg.getParameters(), in doVerify()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/ |
D | CryptUtil.c | 90 if((signature->sigAlg != TPM_ALG_HMAC) in CryptHMACVerifySignature() 99 && ((keyScheme->scheme != signature->sigAlg) in CryptHMACVerifySignature() 103 test.sigAlg = signature->sigAlg; in CryptHMACVerifySignature() 1126 if(auth->sigAlg == TPM_ALG_NULL) in CryptGetSignHashAlg() 1130 switch(auth->sigAlg) in CryptGetSignHashAlg() 1433 signature->sigAlg = signScheme->scheme; in CryptSign() 1437 if((signature->sigAlg == TPM_ALG_NULL) || (signKey == NULL)) in CryptSign() 1503 if(signature->sigAlg == TPM_ALG_NULL) in CryptValidateSignature()
|
D | CryptEccSignature.c | 525 TEST(signature->sigAlg); in CryptEccSign() 526 switch(signature->sigAlg) in CryptEccSign() 779 switch(signature->sigAlg) in CryptEccValidateSignature() 806 switch(signature->sigAlg) in CryptEccValidateSignature()
|
D | CryptRsa.c | 1218 TEST(sigOut->sigAlg); in CryptRsaSign() 1220 switch(sigOut->sigAlg) in CryptRsaSign() 1264 switch(sig->sigAlg) in CryptRsaValidateSignature() 1277 TEST(sig->sigAlg); in CryptRsaValidateSignature() 1283 switch(sig->sigAlg) in CryptRsaValidateSignature()
|
D | AlgorithmTests.c | 474 testSig.sigAlg = scheme; in TestRsaSignAndVerify() 495 if(testSig.sigAlg == TPM_ALG_RSASSA) in TestRsaSignAndVerify() 630 testSig.sigAlg = scheme; in TestEccSignAndVerify()
|
/external/tpm2-tss/src/tss2-mu/ |
D | tpmt-types.c | 561 TPMT_MARSHAL_2(TPMT_SIGNATURE, sigAlg, VAL, Tss2_MU_UINT16_Marshal, 562 signature, ADDR, sigAlg, Tss2_MU_TPMU_SIGNATURE_Marshal) 564 TPMT_UNMARSHAL_2(TPMT_SIGNATURE, sigAlg, Tss2_MU_UINT16_Unmarshal, 565 signature, sigAlg, Tss2_MU_TPMU_SIGNATURE_Unmarshal)
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Attestation/ |
D | Attest_spt.c | 145 signature->sigAlg = TPM_ALG_NULL; in SignAttestInfo()
|
/external/tpm2-tss/src/tss2-fapi/ |
D | fapi_crypto.c | 663 tpmSignature->sigAlg = TPM2_ALG_ECDSA; /**< only ECDSA is used by FAPI */ in ifapi_ecc_der_sig_to_tpm() 711 tpmSignature->sigAlg = TPM2_ALG_RSAPSS; in ifapi_der_sig_to_tpm() 717 tpmSignature->sigAlg = TPM2_ALG_RSASSA; in ifapi_der_sig_to_tpm()
|