Home
last modified time | relevance | path

Searched refs:signatureAlgorithm (Results 1 – 25 of 29) sorted by relevance

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ocsp/
DSignature.java16 AlgorithmIdentifier signatureAlgorithm; field in Signature
21 AlgorithmIdentifier signatureAlgorithm, in Signature() argument
24 this.signatureAlgorithm = signatureAlgorithm; in Signature()
29 AlgorithmIdentifier signatureAlgorithm, in Signature() argument
33 this.signatureAlgorithm = signatureAlgorithm; in Signature()
41 signatureAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(0)); in Signature()
75 return signatureAlgorithm; in getSignatureAlgorithm()
101 v.add(signatureAlgorithm); in toASN1Primitive()
DBasicOCSPResponse.java17 private AlgorithmIdentifier signatureAlgorithm; field in BasicOCSPResponse
23 AlgorithmIdentifier signatureAlgorithm, in BasicOCSPResponse() argument
28 this.signatureAlgorithm = signatureAlgorithm; in BasicOCSPResponse()
37 this.signatureAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(1)); in BasicOCSPResponse()
75 return signatureAlgorithm; in getSignatureAlgorithm()
103 v.add(signatureAlgorithm); in toASN1Primitive()
/external/conscrypt/platform/src/main/java/org/conscrypt/ct/
DDigitallySigned.java66 private final SignatureAlgorithm signatureAlgorithm; field in DigitallySigned
70 SignatureAlgorithm signatureAlgorithm, in DigitallySigned() argument
73 this.signatureAlgorithm = signatureAlgorithm; in DigitallySigned()
78 int signatureAlgorithm, in DigitallySigned() argument
82 SignatureAlgorithm.valueOf(signatureAlgorithm), in DigitallySigned()
91 return signatureAlgorithm; in getSignatureAlgorithm()
102 return String.format("%swith%s", hashAlgorithm, signatureAlgorithm); in getAlgorithm()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/
DCMSAlgorithmProtection.java34 private final AlgorithmIdentifier signatureAlgorithm; field in CMSAlgorithmProtection
48 this.signatureAlgorithm = algorithmIdentifier; in CMSAlgorithmProtection()
53 this.signatureAlgorithm = null; in CMSAlgorithmProtection()
74 this.signatureAlgorithm = AlgorithmIdentifier.getInstance(tagged, false); in CMSAlgorithmProtection()
79 this.signatureAlgorithm = null; in CMSAlgorithmProtection()
117 return signatureAlgorithm; in getSignatureAlgorithm()
125 if (signatureAlgorithm != null) in toASN1Primitive()
127 v.add(new DERTaggedObject(false, 1, signatureAlgorithm)); in toASN1Primitive()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DAttributeCertificate.java14 AlgorithmIdentifier signatureAlgorithm; field in AttributeCertificate
37 AlgorithmIdentifier signatureAlgorithm, in AttributeCertificate() argument
41 this.signatureAlgorithm = signatureAlgorithm; in AttributeCertificate()
58 this.signatureAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(1)); in AttributeCertificate()
69 return signatureAlgorithm; in getSignatureAlgorithm()
92 v.add(signatureAlgorithm); in toASN1Primitive()
/external/boringssl/src/ssl/test/runner/
Dcommon.go184 type signatureAlgorithm uint16 type
188 signatureRSAPKCS1WithMD5 signatureAlgorithm = 0x0101
189 signatureRSAPKCS1WithSHA1 signatureAlgorithm = 0x0201
190 signatureRSAPKCS1WithSHA256 signatureAlgorithm = 0x0401
191 signatureRSAPKCS1WithSHA384 signatureAlgorithm = 0x0501
192 signatureRSAPKCS1WithSHA512 signatureAlgorithm = 0x0601
195 signatureECDSAWithSHA1 signatureAlgorithm = 0x0203
196 signatureECDSAWithP256AndSHA256 signatureAlgorithm = 0x0403
197 signatureECDSAWithP384AndSHA384 signatureAlgorithm = 0x0503
198 signatureECDSAWithP521AndSHA512 signatureAlgorithm = 0x0603
[all …]
Dsign.go30 …16, key crypto.PrivateKey, config *Config, peerSigAlgs []signatureAlgorithm) (signatureAlgorithm, … argument
35 peerSigAlgs = []signatureAlgorithm{signatureRSAPKCS1WithSHA1, signatureECDSAWithSHA1}
55 func signMessage(version uint16, key crypto.PrivateKey, config *Config, sigAlg signatureAlgorithm, … argument
71 func verifyMessage(version uint16, key crypto.PublicKey, config *Config, sigAlg signatureAlgorithm,… argument
276 func getSigner(version uint16, key interface{}, config *Config, sigAlg signatureAlgorithm, isVerify… argument
Dkey_agreement.go64 var sigAlg signatureAlgorithm
182 func (ka *rsaKeyAgreement) peerSignatureAlgorithm() signatureAlgorithm {
328 peerSignatureAlgorithm signatureAlgorithm
338 var sigAlg signatureAlgorithm
404 var sigAlg signatureAlgorithm
409 sigAlg = signatureAlgorithm(sig[0])<<8 | signatureAlgorithm(sig[1])
540 func (ka *ecdheKeyAgreement) peerSignatureAlgorithm() signatureAlgorithm {
582 func (ka *nilKeyAgreement) peerSignatureAlgorithm() signatureAlgorithm {
712 func (ka *pskKeyAgreement) peerSignatureAlgorithm() signatureAlgorithm {
Dhandshake_messages.go162 signatureAlgorithms []signatureAlgorithm
739 m.signatureAlgorithms = make([]signatureAlgorithm, n)
741 m.signatureAlgorithms[i] = signatureAlgorithm(d[0])<<8 | signatureAlgorithm(d[1])
1858 signatureAlgorithms []signatureAlgorithm
1941 m.signatureAlgorithms = make([]signatureAlgorithm, numSigAlgs)
1943 m.signatureAlgorithms[i] = signatureAlgorithm(data[0])<<8 | signatureAlgorithm(data[1])
1998 signatureAlgorithm signatureAlgorithm member
2020 y[0] = byte(m.signatureAlgorithm >> 8)
2021 y[1] = byte(m.signatureAlgorithm)
2047 m.signatureAlgorithm = signatureAlgorithm(data[0])<<8 | signatureAlgorithm(data[1])
[all …]
Drunner.go360 expectedPeerSignatureAlgorithm signatureAlgorithm
7520 id signatureAlgorithm
7544 const fakeSigAlg1 signatureAlgorithm = 0x2a01
7545 const fakeSigAlg2 signatureAlgorithm = 0xff01
7558 var allAlgorithms []signatureAlgorithm
7617 VerifySignatureAlgorithms: []signatureAlgorithm{
7641 SignSignatureAlgorithms: []signatureAlgorithm{
7673 VerifySignatureAlgorithms: []signatureAlgorithm{
7698 SignSignatureAlgorithms: []signatureAlgorithm{
7728 SignSignatureAlgorithms: []signatureAlgorithm{
[all …]
Dhandshake_client.go843 c.peerSignatureAlgorithm = certVerifyMsg.signatureAlgorithm
845 …age(c.vers, getCertificatePublicKey(leaf), c.config, certVerifyMsg.signatureAlgorithm, input, cert…
954 …certVerify.signatureAlgorithm, err = selectSignatureAlgorithm(c.vers, privKey, c.config, certReq.s…
961 …certVerify.signature, err = signMessage(c.vers, privKey, c.config, certVerify.signatureAlgorithm, …
967 certVerify.signatureAlgorithm = c.config.Bugs.SendSignatureAlgorithm
1165 …certVerify.signatureAlgorithm, err = selectSignatureAlgorithm(c.vers, privKey, c.config, certReq.s…
1173 …certVerify.signature, err = signMessage(c.vers, privKey, c.config, certVerify.signatureAlgorithm, …
1175 certVerify.signatureAlgorithm = c.config.Bugs.SendSignatureAlgorithm
Dhandshake_server.go849 …certVerify.signatureAlgorithm, err = selectSignatureAlgorithm(c.vers, privKey, config, hs.clientHe…
856 …certVerify.signature, err = signMessage(c.vers, privKey, c.config, certVerify.signatureAlgorithm, …
863 certVerify.signatureAlgorithm = config.Bugs.SendSignatureAlgorithm
990 c.peerSignatureAlgorithm = certVerify.signatureAlgorithm
992 …if err := verifyMessage(c.vers, pub, config, certVerify.signatureAlgorithm, input, certVerify.sign…
1640 var sigAlg signatureAlgorithm
1642 sigAlg = certVerify.signatureAlgorithm
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
DX509V1CertificateGenerator.java50 private String signatureAlgorithm; field in X509V1CertificateGenerator
163 String signatureAlgorithm) in setSignatureAlgorithm() argument
165 this.signatureAlgorithm = signatureAlgorithm; in setSignatureAlgorithm()
169 sigOID = X509Util.getAlgorithmOID(signatureAlgorithm); in setSignatureAlgorithm()
176 sigAlgId = X509Util.getSigAlgID(sigOID, signatureAlgorithm); in setSignatureAlgorithm()
301 … signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, key, random, tbsCert); in generate()
340 …signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, tbsCert… in generate()
DX509V3CertificateGenerator.java56 private String signatureAlgorithm; field in X509V3CertificateGenerator
174 String signatureAlgorithm) in setSignatureAlgorithm() argument
176 this.signatureAlgorithm = signatureAlgorithm; in setSignatureAlgorithm()
180 sigOID = X509Util.getAlgorithmOID(signatureAlgorithm); in setSignatureAlgorithm()
184 … throw new IllegalArgumentException("Unknown signature type requested: " + signatureAlgorithm); in setSignatureAlgorithm()
187 sigAlgId = X509Util.getSigAlgID(sigOID, signatureAlgorithm); in setSignatureAlgorithm()
440 … signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, key, random, tbsCert); in generate()
485 …signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, tbsCert… in generate()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/
DJcaContentSignerBuilder.java26 private String signatureAlgorithm; field in JcaContentSignerBuilder
29 public JcaContentSignerBuilder(String signatureAlgorithm) in JcaContentSignerBuilder() argument
31 this.signatureAlgorithm = signatureAlgorithm; in JcaContentSignerBuilder()
32 this.sigAlgId = new DefaultSignatureAlgorithmIdentifierFinder().find(signatureAlgorithm); in JcaContentSignerBuilder()
DOperatorHelper.java313 String signatureAlgorithm = (String)oids.get(sigAlgId.getAlgorithm()); in createSignature()
315 sig = helper.createSignature(signatureAlgorithm); in createSignature()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/
DPKCS10CertificationRequest.java257 String signatureAlgorithm, in PKCS10CertificationRequest() argument
265 …this(signatureAlgorithm, subject, key, attributes, signingKey, BouncyCastleProvider.PROVIDER_NAME); in PKCS10CertificationRequest()
285 String signatureAlgorithm, in PKCS10CertificationRequest() argument
293 …this(signatureAlgorithm, convertName(subject), key, attributes, signingKey, BouncyCastleProvider.P… in PKCS10CertificationRequest()
300 String signatureAlgorithm, in PKCS10CertificationRequest() argument
309 this(signatureAlgorithm, convertName(subject), key, attributes, signingKey, provider); in PKCS10CertificationRequest()
316 String signatureAlgorithm, in PKCS10CertificationRequest() argument
325 String algorithmName = Strings.toUpperCase(signatureAlgorithm); in PKCS10CertificationRequest()
376 sig = Signature.getInstance(signatureAlgorithm); in PKCS10CertificationRequest()
380 sig = Signature.getInstance(signatureAlgorithm, provider); in PKCS10CertificationRequest()
[all …]
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
DDefaultCMSSignatureEncryptionAlgorithmFinder.java42 public AlgorithmIdentifier findEncryptionAlgorithm(AlgorithmIdentifier signatureAlgorithm) in findEncryptionAlgorithm() argument
45 if (RSA_PKCS1d5.contains(signatureAlgorithm.getAlgorithm())) in findEncryptionAlgorithm()
50 return signatureAlgorithm; in findEncryptionAlgorithm()
DCMSSignatureEncryptionAlgorithmFinder.java16 AlgorithmIdentifier findEncryptionAlgorithm(AlgorithmIdentifier signatureAlgorithm); in findEncryptionAlgorithm() argument
/external/conscrypt/testing/src/main/java/libcore/java/security/
DTestKeyStore.java689 String signatureAlgorithm; in createCertificate() local
691 signatureAlgorithm = "sha1WithRSA"; in createCertificate()
693 signatureAlgorithm = "sha1WithDSA"; in createCertificate()
695 signatureAlgorithm = "sha1WithECDSA"; in createCertificate()
697 signatureAlgorithm = "sha1WithRSA"; in createCertificate()
738 x509cg.build(new JcaContentSignerBuilder(signatureAlgorithm).build(privateKey)); in createCertificate()
776 public static String signatureAlgorithm(String algorithm) { in signatureAlgorithm() method in TestKeyStore
802 public PrivateKeyEntry getPrivateKey(String keyAlgorithm, String signatureAlgorithm) { in getPrivateKey() argument
803 return privateKey(keyStore, keyPassword, keyAlgorithm, signatureAlgorithm); in getPrivateKey()
812 KeyStore keyStore, char[] keyPassword, String keyAlgorithm, String signatureAlgorithm) { in privateKey() argument
[all …]
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/
DDefaultSignatureAlgorithmIdentifierFinder.java199 private static AlgorithmIdentifier generate(String signatureAlgorithm) in generate() argument
205 String algorithmName = Strings.toUpperCase(signatureAlgorithm); in generate()
/external/curl/lib/
Dx509asn1.h104 curl_asn1Element signatureAlgorithm; member
Dx509asn1.c704 beg = Curl_getASN1Element(&cert->signatureAlgorithm, beg, end); in Curl_parseX509()
722 beg = Curl_getASN1Element(&cert->signatureAlgorithm, beg, end); in Curl_parseX509()
949 ccp = dumpAlgo(&param, cert.signatureAlgorithm.beg, in Curl_extract_certinfo()
950 cert.signatureAlgorithm.end); in Curl_extract_certinfo()
/external/wpa_supplicant_8/src/crypto/
Dtls_openssl_ocsp.c164 X509_ALGOR *signatureAlgorithm; member
212 ASN1_SIMPLE(BasicOCSPResponse, signatureAlgorithm, X509_ALGOR),
634 basic->signatureAlgorithm, basic->signature, in check_ocsp_resp()
/external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/
DKeyManagerFactoryTest.java261 assertTrue(sigAlgName.contains(TestKeyStore.signatureAlgorithm(keyType))); in test_X509KeyManager_alias()

12