Home
last modified time | relevance | path

Searched refs:signatureAlgorithm (Results 1 – 25 of 40) 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/common/src/main/java/org/conscrypt/ct/
DDigitallySigned.java64 private final SignatureAlgorithm signatureAlgorithm; field in DigitallySigned
68 SignatureAlgorithm signatureAlgorithm, in DigitallySigned() argument
71 this.signatureAlgorithm = signatureAlgorithm; in DigitallySigned()
76 int signatureAlgorithm, in DigitallySigned() argument
80 SignatureAlgorithm.valueOf(signatureAlgorithm), in DigitallySigned()
89 return signatureAlgorithm; in getSignatureAlgorithm()
100 return String.format("%swith%s", hashAlgorithm, signatureAlgorithm); in getAlgorithm()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ct/
DDigitallySigned.java72 private final SignatureAlgorithm signatureAlgorithm; field in DigitallySigned
76 SignatureAlgorithm signatureAlgorithm, in DigitallySigned() argument
79 this.signatureAlgorithm = signatureAlgorithm; in DigitallySigned()
84 int signatureAlgorithm, in DigitallySigned() argument
88 SignatureAlgorithm.valueOf(signatureAlgorithm), in DigitallySigned()
97 return signatureAlgorithm; in getSignatureAlgorithm()
108 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/boringssl/src/ssl/test/runner/
Dcommon.go186 type signatureAlgorithm uint16 type
190 signatureRSAPKCS1WithMD5 signatureAlgorithm = 0x0101
191 signatureRSAPKCS1WithSHA1 signatureAlgorithm = 0x0201
192 signatureRSAPKCS1WithSHA256 signatureAlgorithm = 0x0401
193 signatureRSAPKCS1WithSHA384 signatureAlgorithm = 0x0501
194 signatureRSAPKCS1WithSHA512 signatureAlgorithm = 0x0601
197 signatureECDSAWithSHA1 signatureAlgorithm = 0x0203
198 signatureECDSAWithP256AndSHA256 signatureAlgorithm = 0x0403
199 signatureECDSAWithP384AndSHA384 signatureAlgorithm = 0x0503
200 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.go66 var sigAlg signatureAlgorithm
237 func (ka *rsaKeyAgreement) peerSignatureAlgorithm() signatureAlgorithm {
482 peerSignatureAlgorithm signatureAlgorithm
492 var sigAlg signatureAlgorithm
557 var sigAlg signatureAlgorithm
562 sigAlg = signatureAlgorithm(sig[0])<<8 | signatureAlgorithm(sig[1])
698 func (ka *ecdheKeyAgreement) peerSignatureAlgorithm() signatureAlgorithm {
740 func (ka *nilKeyAgreement) peerSignatureAlgorithm() signatureAlgorithm {
870 func (ka *pskKeyAgreement) peerSignatureAlgorithm() signatureAlgorithm {
Dhandshake_messages.go278 signatureAlgorithms []signatureAlgorithm
279 signatureAlgorithmsCert []signatureAlgorithm
643 func parseSignatureAlgorithms(reader *byteReader, out *[]signatureAlgorithm, allowEmpty bool) bool { argument
651 *out = make([]signatureAlgorithm, 0, len(sigAlgs)/2)
657 *out = append(*out, signatureAlgorithm(v))
1624 expectedCertVerifyAlgo signatureAlgorithm
1626 algorithm signatureAlgorithm
1745 dc.expectedCertVerifyAlgo = signatureAlgorithm(expectedCertVerifyAlgo)
1746 dc.algorithm = signatureAlgorithm(algorithm)
1993 signatureAlgorithms []signatureAlgorithm
[all …]
Drunner.go260 expectedAlgo signatureAlgorithm
266 algo signatureAlgorithm
297 if expectedAlgo == signatureAlgorithm(0) {
521 expectedPeerSignatureAlgorithm signatureAlgorithm
8712 id signatureAlgorithm
8736 const fakeSigAlg1 signatureAlgorithm = 0x2a01
8737 const fakeSigAlg2 signatureAlgorithm = 0xff01
8750 var allAlgorithms []signatureAlgorithm
8805 VerifySignatureAlgorithms: []signatureAlgorithm{
8829 SignSignatureAlgorithms: []signatureAlgorithm{
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/cms/
DCMSAlgorithmProtection.java36 private final AlgorithmIdentifier signatureAlgorithm; field in CMSAlgorithmProtection
50 this.signatureAlgorithm = algorithmIdentifier; in CMSAlgorithmProtection()
55 this.signatureAlgorithm = null; in CMSAlgorithmProtection()
76 this.signatureAlgorithm = AlgorithmIdentifier.getInstance(tagged, false); in CMSAlgorithmProtection()
81 this.signatureAlgorithm = null; in CMSAlgorithmProtection()
119 return signatureAlgorithm; in getSignatureAlgorithm()
127 if (signatureAlgorithm != null) in toASN1Primitive()
129 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/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/
DAttributeCertificate.java18 AlgorithmIdentifier signatureAlgorithm; field in AttributeCertificate
41 AlgorithmIdentifier signatureAlgorithm, in AttributeCertificate() argument
45 this.signatureAlgorithm = signatureAlgorithm; in AttributeCertificate()
62 this.signatureAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(1)); in AttributeCertificate()
73 return signatureAlgorithm; in getSignatureAlgorithm()
96 v.add(signatureAlgorithm); in toASN1Primitive()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/
DJcaContentSignerBuilder.java33 private String signatureAlgorithm; field in JcaContentSignerBuilder
37 public JcaContentSignerBuilder(String signatureAlgorithm) in JcaContentSignerBuilder() argument
39 this.signatureAlgorithm = signatureAlgorithm; in JcaContentSignerBuilder()
40 this.sigAlgId = new DefaultSignatureAlgorithmIdentifierFinder().find(signatureAlgorithm); in JcaContentSignerBuilder()
44 public JcaContentSignerBuilder(String signatureAlgorithm, AlgorithmParameterSpec sigParamSpec) in JcaContentSignerBuilder() argument
46 this.signatureAlgorithm = signatureAlgorithm; in JcaContentSignerBuilder()
/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.java55 private String signatureAlgorithm; field in X509V3CertificateGenerator
173 String signatureAlgorithm) in setSignatureAlgorithm() argument
175 this.signatureAlgorithm = signatureAlgorithm; in setSignatureAlgorithm()
179 sigOID = X509Util.getAlgorithmOID(signatureAlgorithm); in setSignatureAlgorithm()
183 … throw new IllegalArgumentException("Unknown signature type requested: " + signatureAlgorithm); in setSignatureAlgorithm()
186 sigAlgId = X509Util.getSigAlgID(sigOID, signatureAlgorithm); in setSignatureAlgorithm()
439 … signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, key, random, tbsCert); in generate()
484 …signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, tbsCert… in generate()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/
DPKCS10CertificationRequest.java254 String signatureAlgorithm, in PKCS10CertificationRequest() argument
262 …this(signatureAlgorithm, subject, key, attributes, signingKey, BouncyCastleProvider.PROVIDER_NAME); in PKCS10CertificationRequest()
282 String signatureAlgorithm, in PKCS10CertificationRequest() argument
290 …this(signatureAlgorithm, convertName(subject), key, attributes, signingKey, BouncyCastleProvider.P… in PKCS10CertificationRequest()
297 String signatureAlgorithm, in PKCS10CertificationRequest() argument
306 this(signatureAlgorithm, convertName(subject), key, attributes, signingKey, provider); in PKCS10CertificationRequest()
313 String signatureAlgorithm, in PKCS10CertificationRequest() argument
322 String algorithmName = Strings.toUpperCase(signatureAlgorithm); in PKCS10CertificationRequest()
373 sig = Signature.getInstance(signatureAlgorithm); in PKCS10CertificationRequest()
377 sig = Signature.getInstance(signatureAlgorithm, provider); in PKCS10CertificationRequest()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/
DPKCS10CertificationRequest.java256 String signatureAlgorithm, in PKCS10CertificationRequest() argument
264 …this(signatureAlgorithm, subject, key, attributes, signingKey, BouncyCastleProvider.PROVIDER_NAME); in PKCS10CertificationRequest()
284 String signatureAlgorithm, in PKCS10CertificationRequest() argument
292 …this(signatureAlgorithm, convertName(subject), key, attributes, signingKey, BouncyCastleProvider.P… in PKCS10CertificationRequest()
299 String signatureAlgorithm, in PKCS10CertificationRequest() argument
308 this(signatureAlgorithm, convertName(subject), key, attributes, signingKey, provider); in PKCS10CertificationRequest()
315 String signatureAlgorithm, in PKCS10CertificationRequest() argument
324 String algorithmName = Strings.toUpperCase(signatureAlgorithm); in PKCS10CertificationRequest()
375 sig = Signature.getInstance(signatureAlgorithm); in PKCS10CertificationRequest()
379 sig = Signature.getInstance(signatureAlgorithm, provider); in PKCS10CertificationRequest()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/x509/
DX509V1CertificateGenerator.java53 private String signatureAlgorithm; field in X509V1CertificateGenerator
174 String signatureAlgorithm) in setSignatureAlgorithm() argument
176 this.signatureAlgorithm = signatureAlgorithm; in setSignatureAlgorithm()
180 sigOID = X509Util.getAlgorithmOID(signatureAlgorithm); in setSignatureAlgorithm()
187 sigAlgId = X509Util.getSigAlgID(sigOID, signatureAlgorithm); in setSignatureAlgorithm()
312 … signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, key, random, tbsCert); in generate()
352 …signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, tbsCert… in generate()
DX509V3CertificateGenerator.java58 private String signatureAlgorithm; field in X509V3CertificateGenerator
194 String signatureAlgorithm) in setSignatureAlgorithm() argument
196 this.signatureAlgorithm = signatureAlgorithm; in setSignatureAlgorithm()
200 sigOID = X509Util.getAlgorithmOID(signatureAlgorithm); in setSignatureAlgorithm()
204 … throw new IllegalArgumentException("Unknown signature type requested: " + signatureAlgorithm); in setSignatureAlgorithm()
207 sigAlgId = X509Util.getSigAlgID(sigOID, signatureAlgorithm); in setSignatureAlgorithm()
462 … signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, key, random, tbsCert); in generate()
507 …signature = X509Util.calculateSignature(sigOID, signatureAlgorithm, provider, key, random, tbsCert… in generate()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
DDefaultCMSSignatureEncryptionAlgorithmFinder.java44 public AlgorithmIdentifier findEncryptionAlgorithm(AlgorithmIdentifier signatureAlgorithm) in findEncryptionAlgorithm() argument
47 if (RSA_PKCS1d5.contains(signatureAlgorithm.getAlgorithm())) in findEncryptionAlgorithm()
52 return signatureAlgorithm; in findEncryptionAlgorithm()
DCMSSignatureEncryptionAlgorithmFinder.java16 AlgorithmIdentifier findEncryptionAlgorithm(AlgorithmIdentifier signatureAlgorithm); in findEncryptionAlgorithm() argument
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/java/security/
DTestKeyStore.java709 String signatureAlgorithm; in createCertificate() local
711 signatureAlgorithm = "sha256WithRSA"; in createCertificate()
713 signatureAlgorithm = "sha256WithDSA"; in createCertificate()
715 signatureAlgorithm = "sha256WithECDSA"; in createCertificate()
717 signatureAlgorithm = "sha256WithRSA"; in createCertificate()
758 x509cg.build(new JcaContentSignerBuilder(signatureAlgorithm).build(privateKey)); in createCertificate()
798 public static String signatureAlgorithm(String algorithm) { in signatureAlgorithm() method in TestKeyStore
824 public PrivateKeyEntry getPrivateKey(String keyAlgorithm, String signatureAlgorithm) { in getPrivateKey() argument
825 return privateKey(keyStore, keyPassword, keyAlgorithm, signatureAlgorithm); in getPrivateKey()
834 KeyStore keyStore, char[] keyPassword, String keyAlgorithm, String signatureAlgorithm) { in privateKey() argument
[all …]
/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/
DTestKeyStore.java706 String signatureAlgorithm; in createCertificate() local
708 signatureAlgorithm = "sha256WithRSA"; in createCertificate()
710 signatureAlgorithm = "sha256WithDSA"; in createCertificate()
712 signatureAlgorithm = "sha256WithECDSA"; in createCertificate()
714 signatureAlgorithm = "sha256WithRSA"; in createCertificate()
755 x509cg.build(new JcaContentSignerBuilder(signatureAlgorithm).build(privateKey)); in createCertificate()
795 public static String signatureAlgorithm(String algorithm) { in signatureAlgorithm() method in TestKeyStore
821 public PrivateKeyEntry getPrivateKey(String keyAlgorithm, String signatureAlgorithm) { in getPrivateKey() argument
822 return privateKey(keyStore, keyPassword, keyAlgorithm, signatureAlgorithm); in getPrivateKey()
831 KeyStore keyStore, char[] keyPassword, String keyAlgorithm, String signatureAlgorithm) { in privateKey() argument
[all …]
/external/scapy/test/
Dx509.uts103 spki.signatureAlgorithm.algorithm == ASN1_OID("rsaEncryption")
123 assert(type(x.signatureAlgorithm) is X509_AlgorithmIdentifier)
124 x.signatureAlgorithm.algorithm == ASN1_OID("sha1_with_rsa_signature")
189 assert(type(x.signatureAlgorithm) is X509_AlgorithmIdentifier)
190 x.signatureAlgorithm.algorithm == ASN1_OID("sha1_with_rsa_signature")
226 assert(responseBytes.signatureAlgorithm.algorithm == ASN1_OID("sha256WithRSAEncryption"))
227 assert(responseBytes.signatureAlgorithm.parameters == ASN1_NULL(0))

12