/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
D | SignerInfoGenerator.java | 33 private final ContentSigner signer; field in SignerInfoGenerator 43 ContentSigner signer, in SignerInfoGenerator() argument 48 this(signerIdentifier, signer, digesterProvider, sigEncAlgFinder, false); in SignerInfoGenerator() 53 ContentSigner signer, in SignerInfoGenerator() argument 60 this.signer = signer; in SignerInfoGenerator() 64 … this.digester = digesterProvider.get(digAlgFinder.find(signer.getAlgorithmIdentifier())); in SignerInfoGenerator() 91 this.signer = original.signer; in SignerInfoGenerator() 100 ContentSigner signer, in SignerInfoGenerator() argument 108 this.signer = signer; in SignerInfoGenerator() 112 … this.digester = digesterProvider.get(digAlgFinder.find(signer.getAlgorithmIdentifier())); in SignerInfoGenerator() [all …]
|
D | CMSSignedDataGenerator.java | 129 SignerInformation signer = (SignerInformation)it.next(); in generate() local 130 digestAlgs.add(CMSSignedHelper.INSTANCE.fixAlgID(signer.getDigestAlgorithmID())); in generate() 133 signerInfos.add(signer.toASN1Structure()); in generate() 226 public SignerInformationStore generateCounterSigners(SignerInformation signer) in generateCounterSigners() argument 229 …return this.generate(new CMSProcessableByteArray(null, signer.getSignature()), false).getSignerInf… in generateCounterSigners()
|
D | SignerInformationStore.java | 46 SignerInformation signer = (SignerInformation)it.next(); in SignerInformationStore() local 47 SignerId sid = signer.getSID(); in SignerInformationStore() 56 list.add(signer); in SignerInformationStore()
|
/external/python/oauth2client/tests/ |
D | test_jwt.py | 54 self.signer = crypt.OpenSSLSigner 72 signer = self.signer.from_string(private_key, 74 signature = signer.sign('foo') 96 signer = self.signer.from_string(private_key) 100 return crypt.make_signed_jwt(signer, { 171 signer = self.signer.from_string(private_key) 174 jwt = crypt.make_signed_jwt(signer, { 181 jwt = crypt.make_signed_jwt(signer, { 188 jwt = crypt.make_signed_jwt(signer, { 196 jwt = crypt.make_signed_jwt(signer, { [all …]
|
D | test__pure_python_crypt.py | 53 signer = crypt.RsaSigner.from_string(self._load_private_key_bytes()) 54 actual_signature = signer.sign(to_sign) 62 signer = crypt.RsaSigner.from_string(self._load_private_key_bytes()) 63 actual_signature = signer.sign(to_sign) 138 signer = crypt.RsaSigner.from_string(key_bytes) 139 self.assertIsInstance(signer, crypt.RsaSigner) 140 self.assertIsInstance(signer._key, rsa.key.PrivateKey) 144 signer = crypt.RsaSigner.from_string(key_bytes) 145 self.assertIsInstance(signer, crypt.RsaSigner) 146 self.assertIsInstance(signer._key, rsa.key.PrivateKey) [all …]
|
D | test_service_account.py | 54 self.signer = crypt.Signer.from_string(self.private_key) 57 self.signer, 63 signer = object() 65 'name@email.com', signer) 66 self.assertEqual(creds._signer, signer) 225 signer = object() 228 signer, 243 signer = object() 246 'name@email.com', signer) 254 signer = object() [all …]
|
/external/python/asn1crypto/tests/ |
D | test_cms.py | 390 signer = signed_data['signer_infos'][0] 394 signer['version'].native 415 signer['sid'].native 422 signer['digest_algorithm'].native 425 signed_attrs = signer['signed_attrs'] 462 signer['signature_algorithm'].native 477 signer['signature'].native 528 signer = signed_data['signer_infos'][0] 532 signer['version'].native 553 signer['sid'].native [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | DSABase.java | 19 protected DSAExt signer; field in DSABase 24 DSAExt signer, in DSABase() argument 28 this.signer = signer; in DSABase() 56 BigInteger[] sig = signer.generateSignature(hash); in engineSign() 58 return encoding.encode(signer.getOrder(), sig[0], sig[1]); in engineSign() 76 sig = encoding.decode(signer.getOrder(), sigBytes); in engineVerify() 83 return signer.verifySignature(hash, sig[0], sig[1]); in engineVerify()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | DSABase.java | 23 protected DSAExt signer; field in DSABase 28 DSAExt signer, in DSABase() argument 32 this.signer = signer; in DSABase() 60 BigInteger[] sig = signer.generateSignature(hash); in engineSign() 62 return encoding.encode(signer.getOrder(), sig[0], sig[1]); in engineSign() 80 sig = encoding.decode(signer.getOrder(), sigBytes); in engineVerify() 87 return signer.verifySignature(hash, sig[0], sig[1]); in engineVerify()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
D | DSASigner.java | 36 private DSAExt signer; field in DSASigner 42 DSAExt signer) in DSASigner() argument 45 this.signer = signer; in DSASigner() 55 signer.init(false, param); in engineInitVerify() 83 signer.init(true, param); in engineInitSign() 111 BigInteger[] sig = signer.generateSignature(hash); in engineSign() 113 return encoding.encode(signer.getOrder(), sig[0], sig[1]); in engineSign() 133 sig = encoding.decode(signer.getOrder(), sigBytes); in engineVerify() 140 return signer.verifySignature(hash, sig[0], sig[1]); in engineVerify()
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/ |
D | CertUtils.java | 51 static X509CertificateHolder generateFullCert(ContentSigner signer, TBSCertificate tbsCert) in generateFullCert() argument 55 …w X509CertificateHolder(generateStructure(tbsCert, signer.getAlgorithmIdentifier(), generateSig(si… in generateFullCert() 63 …static X509AttributeCertificateHolder generateFullAttrCert(ContentSigner signer, AttributeCertific… in generateFullAttrCert() argument 67 …eCertificateHolder(generateAttrStructure(attrInfo, signer.getAlgorithmIdentifier(), generateSig(si… in generateFullAttrCert() 75 static X509CRLHolder generateFullCRL(ContentSigner signer, TBSCertList tbsCertList) in generateFullCRL() argument 79 …ew X509CRLHolder(generateCRLStructure(tbsCertList, signer.getAlgorithmIdentifier(), generateSig(si… in generateFullCRL() 87 private static byte[] generateSig(ContentSigner signer, ASN1Encodable tbsObj) in generateSig() argument 90 OutputStream sOut = signer.getOutputStream(); in generateSig() 97 return signer.getSignature(); in generateSig()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
D | DSASigner.java | 40 private DSAExt signer; field in DSASigner 46 DSAExt signer) in DSASigner() argument 49 this.signer = signer; in DSASigner() 59 signer.init(false, param); in engineInitVerify() 87 signer.init(true, param); in engineInitSign() 115 BigInteger[] sig = signer.generateSignature(hash); in engineSign() 117 return encoding.encode(signer.getOrder(), sig[0], sig[1]); in engineSign() 137 sig = encoding.decode(signer.getOrder(), sigBytes); in engineVerify() 144 return signer.verifySignature(hash, sig[0], sig[1]); in engineVerify()
|
/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
D | DsaTest.java | 808 Signature signer = Signature.getInstance(algorithm); in testBasic() local 810 signer.initSign(priv); in testBasic() 811 signer.update(messageBytes); in testBasic() 812 byte[] signature = signer.sign(); in testBasic() 932 Signature signer = Signature.getInstance("SHA1WithDSA"); in testDsaBias() local 933 signer.initSign(priv); in testDsaBias() 937 signer.update(messageBytes); in testDsaBias() 938 byte[] signature = signer.sign(); in testDsaBias() 982 Signature signer = Signature.getInstance("DSA"); in testBiasSha1WithDSA() local 986 signer.initSign(priv); in testBiasSha1WithDSA() [all …]
|
D | EcdsaTest.java | 689 Signature signer = Signature.getInstance(algorithm); in testBasic() local 691 signer.initSign(priv); in testBasic() 692 signer.update(messageBytes); in testBasic() 693 byte[] signature = signer.sign(); in testBasic() 749 Signature signer = Signature.getInstance(algorithm); in testBias() local 750 signer.initSign(priv); in testBias() 754 signer.update(messageBytes); in testBias() 755 byte[] signature = signer.sign(); in testBias() 765 signer.getProvider().getName() in testBias()
|
D | RsaSignatureTest.java | 1090 Signature signer = Signature.getInstance(algorithm); in testBasic() local 1092 signer.initSign(priv); in testBasic() 1093 signer.update(messageBytes); in testBasic() 1094 byte[] signature = signer.sign(); in testBasic()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | SignatureSpi.java | 32 SignatureSpi(Digest digest, DSAExt signer, DSAEncoding encoding) in SignatureSpi() argument 34 super(digest, signer, encoding); in SignatureSpi() 43 signer.init(false, param); in engineInitVerify() 56 signer.init(true, new ParametersWithRandom(param, appRandom)); in engineInitSign() 60 signer.init(true, param); in engineInitSign()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | SignatureSpi.java | 36 SignatureSpi(Digest digest, DSAExt signer, DSAEncoding encoding) in SignatureSpi() argument 38 super(digest, signer, encoding); in SignatureSpi() 47 signer.init(false, param); in engineInitVerify() 60 signer.init(true, new ParametersWithRandom(param, appRandom)); in engineInitSign() 64 signer.init(true, param); in engineInitSign()
|
/external/python/oauth2client/oauth2client/ |
D | service_account.py | 98 signer, argument 112 self._signer = signer 186 signer = crypt.Signer.from_string(private_key_pkcs8_pem) 187 credentials = cls(service_account_email, signer, scopes=scopes, 291 signer = crypt.Signer.from_string(private_key_pkcs12, 293 credentials = cls(service_account_email, signer, scopes=scopes, 444 signer = crypt.Signer.from_string(private_key_pkcs8_pem) 451 signer = crypt.Signer.from_string(pkcs12_val, password) 455 signer, 565 signer, argument [all …]
|
/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/ |
D | TestKeyStore.java | 220 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts() 228 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts() 234 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts() 241 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts() 251 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts() 258 .signer(INTERMEDIATE_CA_EC.getPrivateKey("EC", "RSA")) in initCerts() 264 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts() 276 .signer(rootCa2.getPrivateKey("RSA", "RSA")) in initCerts() 383 private PrivateKeyEntry signer; field in TestKeyStore.Builder 445 public Builder signer(PrivateKeyEntry signer) { in signer() method in TestKeyStore.Builder [all …]
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/java/security/ |
D | TestKeyStore.java | 222 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts() 230 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts() 236 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts() 243 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts() 253 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts() 260 .signer(INTERMEDIATE_CA_EC.getPrivateKey("EC", "RSA")) in initCerts() 266 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts() 278 .signer(rootCa2.getPrivateKey("RSA", "RSA")) in initCerts() 386 private PrivateKeyEntry signer; field in TestKeyStore.Builder 448 public Builder signer(PrivateKeyEntry signer) { in signer() argument [all …]
|
/external/wpa_supplicant_8/src/tls/ |
D | tlsv1_client_ocsp.c | 50 static int ocsp_responder_id_match(struct x509_certificate *signer, in ocsp_responder_id_match() argument 55 const u8 *addr[1] = { signer->public_key }; in ocsp_responder_id_match() 56 size_t len[1] = { signer->public_key_len }; in ocsp_responder_id_match() 63 return x509_name_compare(&signer->subject, name) == 0; in ocsp_responder_id_match() 365 struct x509_certificate *issuer, *signer; in tls_process_basic_ocsp_response() local 626 signer = issuer; in tls_process_basic_ocsp_response() 628 for (signer = certs; signer; signer = signer->next) { in tls_process_basic_ocsp_response() 629 if (!ocsp_responder_id_match(signer, &name, key_hash) || in tls_process_basic_ocsp_response() 632 !(signer->ext_key_usage & in tls_process_basic_ocsp_response() 634 x509_certificate_check_signature(issuer, signer) < in tls_process_basic_ocsp_response() [all …]
|
/external/boringssl/src/ssl/test/runner/ |
D | sign.go | 23 type signer interface { interface 42 signer, err := getSigner(version, key, config, sigAlg, false) 47 if signer.supportsKey(key) { 62 signer, err := getSigner(version, key, config, sigAlg, false) 67 return signer.signMessage(key, config, msg) 75 signer, err := getSigner(version, key, config, sigAlg, true) 80 return signer.verifyMessage(key, msg, sig) 275 …int16, key interface{}, config *Config, sigAlg signatureAlgorithm, isVerify bool) (signer, error) {
|
/external/wpa_supplicant_8/src/crypto/ |
D | tls_openssl_ocsp.c | 506 X509 *signer, *tmp_cert; in check_ocsp_resp() local 616 signer = ocsp_find_signer(certs, rd->responderID); in check_ocsp_resp() 617 if (!signer) in check_ocsp_resp() 618 signer = ocsp_find_signer(untrusted, rd->responderID); in check_ocsp_resp() 621 if (!signer) { in check_ocsp_resp() 627 skey = X509_get_pubkey(signer); in check_ocsp_resp() 641 X509_NAME_oneline(X509_get_subject_name(signer), buf, sizeof(buf)); in check_ocsp_resp() 646 if (!X509_STORE_CTX_init(&ctx, store, signer, untrusted)) in check_ocsp_resp() 664 X509_check_purpose(signer, -1, 0); in check_ocsp_resp() 665 if ((signer->ex_flags & EXFLAG_XKUSAGE) && in check_ocsp_resp() [all …]
|
/external/libchrome/crypto/ |
D | signature_creator_unittest.cc | 31 std::unique_ptr<crypto::SignatureCreator> signer( in TEST() local 34 ASSERT_TRUE(signer.get()); in TEST() 37 ASSERT_TRUE(signer->Update(reinterpret_cast<const uint8_t*>(data.c_str()), in TEST() 41 ASSERT_TRUE(signer->Final(&signature)); in TEST()
|
/external/oauth/core/src/main/java/net/oauth/signature/ |
D | RSA_SHA1.java | 221 Signature signer = Signature.getInstance("SHA1withRSA"); in sign() local 222 signer.initSign(privateKey); in sign() 223 signer.update(message); in sign() 224 return signer.sign(); in sign()
|