/external/conscrypt/src/main/java/org/conscrypt/ct/ |
D | CTLogInfo.java | 34 private final PublicKey publicKey; field in CTLogInfo 38 public CTLogInfo(PublicKey publicKey, String description, String url) { in CTLogInfo() argument 41 .digest(publicKey.getEncoded()); in CTLogInfo() 47 this.publicKey = publicKey; in CTLogInfo() 60 return publicKey; in getPublicKey() 82 this.publicKey.equals(that.publicKey) && in equals() 90 hash = hash * 31 + publicKey.hashCode(); in hashCode() 125 signature.initVerify(publicKey); in verifySingleSCT()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/ |
D | CertificateFactory_ImplTest.java | 210 private static PublicKey publicKey; field in CertificateFactory_ImplTest 219 publicKey = keyFactory.generatePublic(publicKeySpec); 222 publicKey = null; 226 publicKey = null; 269 if (publicKey != null) { in testGenerateCRLs() 272 ((X509CRL) i.next()).verify(publicKey); in testGenerateCRLs() 314 if (publicKey != null) { in testGenerateBase64CRL() 316 crl.verify(publicKey); in testGenerateBase64CRL() 343 if (publicKey != null) { in verifyCRLs() 346 ((X509CRL) it.next()).verify(publicKey); in verifyCRLs() [all …]
|
/external/conscrypt/src/platform/java/org/conscrypt/ |
D | TrustedCertificateIndex.java | 110 PublicKey publicKey; in findByIssuerAndSignature() local 114 publicKey = caCert.getPublicKey(); in findByIssuerAndSignature() 116 publicKey = anchor.getCAPublicKey(); in findByIssuerAndSignature() 118 cert.verify(publicKey); in findByIssuerAndSignature() 184 PublicKey publicKey; in findAllByIssuerAndSignature() local 187 publicKey = caCert.getPublicKey(); in findAllByIssuerAndSignature() 189 publicKey = anchor.getCAPublicKey(); in findAllByIssuerAndSignature() 191 if (publicKey == null) { in findAllByIssuerAndSignature() 194 cert.verify(publicKey); in findAllByIssuerAndSignature()
|
/external/oauth/core/src/main/java/net/oauth/signature/ |
D | RSA_SHA1.java | 90 private PublicKey publicKey = null; field in RSA_SHA1 117 publicKey = (PublicKey)publicKeyObject; in initialize() 119 publicKey = getPublicKeyFromPem((String)publicKeyObject); in initialize() 121 publicKey = getPublicKeyFromDer((byte[])publicKeyObject); in initialize() 132 publicKey = ((X509Certificate) certObject).getPublicKey(); in initialize() 134 publicKey = getPublicKeyFromPemCert((String)certObject); in initialize() 136 publicKey = getPublicKeyFromDerCert((byte[])certObject); in initialize() 229 if (publicKey == null) { in verify() 235 verifier.initVerify(publicKey); in verify()
|
/external/tpm2/ |
D | CpriRSA.c | 47 pAssert(key != NULL && key->privateKey != NULL && key->publicKey != NULL); in RsaPrivateExponent() 62 pAssert(key->publicKey->size <= MAX_RSA_KEY_BYTES); in RsaPrivateExponent() 63 if( BN_bin2bn(key->publicKey->buffer, key->publicKey->size, bnN) == NULL in RsaPrivateExponent() 104 fill = key->publicKey->size - BN_num_bytes(bnD); in RsaPrivateExponent() 109 key->privateKey->size = key->publicKey->size; in RsaPrivateExponent() 135 TPM2B *publicKey, // IN/OUT: an input if only one prime is in _cpri__TestKeyRSA() argument 152 pAssert(publicKey != NULL && prime1 != NULL); in _cpri__TestKeyRSA() 155 && publicKey->size <= MAX_RSA_KEY_BYTES); in _cpri__TestKeyRSA() 157 if(publicKey->size/2 != prime1->size) in _cpri__TestKeyRSA() 191 if(BN_num_bits(bnN) != (publicKey->size * 8)) in _cpri__TestKeyRSA() [all …]
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/ |
D | JcaContentVerifierProviderBuilder.java | 114 public ContentVerifierProvider build(final PublicKey publicKey) in build() argument 132 SignatureOutputStream stream = createSignatureStream(algorithm, publicKey); in build() 134 Signature rawSig = createRawSig(algorithm, publicKey); in build() 148 public ContentVerifierProvider build(SubjectPublicKeyInfo publicKey) 151 return this.build(helper.convertPublicKey(publicKey)); 154 …ate SignatureOutputStream createSignatureStream(AlgorithmIdentifier algorithm, PublicKey publicKey) 161 sig.initVerify(publicKey); 171 private Signature createRawSig(AlgorithmIdentifier algorithm, PublicKey publicKey) 180 rawSig.initVerify(publicKey);
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/jcajce/ |
D | JcaSimpleSignerInfoVerifierBuilder.java | 56 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() argument 59 return new JcaContentVerifierProviderBuilder().build(publicKey); in createContentVerifierProvider() 91 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() argument 94 … return new JcaContentVerifierProviderBuilder().setProvider(providerName).build(publicKey); in createContentVerifierProvider() 126 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() argument 129 return new JcaContentVerifierProviderBuilder().setProvider(provider).build(publicKey); in createContentVerifierProvider()
|
D | JcaSignerInfoVerifierBuilder.java | 86 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() argument 89 return new JcaContentVerifierProviderBuilder().build(publicKey); in createContentVerifierProvider() 121 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() argument 124 … return new JcaContentVerifierProviderBuilder().setProvider(providerName).build(publicKey); in createContentVerifierProvider() 156 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() argument 159 return new JcaContentVerifierProviderBuilder().setProvider(provider).build(publicKey); in createContentVerifierProvider()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
D | DSASigner.java | 62 PublicKey publicKey) in engineInitVerify() argument 67 if (publicKey instanceof DSAKey) in engineInitVerify() 69 param = DSAUtil.generatePublicKeyParameter(publicKey); in engineInitVerify() 75 byte[] bytes = publicKey.getEncoded(); in engineInitVerify() 77 publicKey = new BCDSAPublicKey(SubjectPublicKeyInfo.getInstance(bytes)); in engineInitVerify() 79 if (publicKey instanceof DSAKey) in engineInitVerify() 81 param = DSAUtil.generatePublicKeyParameter(publicKey); in engineInitVerify()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/ |
D | ECPrivateKey.java | 94 DERBitString publicKey, in ECPrivateKey() argument 97 this(key.bitLength(), key, publicKey, parameters); in ECPrivateKey() 111 DERBitString publicKey, in ECPrivateKey() argument 126 if (publicKey != null) in ECPrivateKey() 128 v.add(new DERTaggedObject(true, 1, publicKey)); in ECPrivateKey()
|
D | ECPrivateKeyStructure.java | 57 DERBitString publicKey, in ECPrivateKeyStructure() argument 72 if (publicKey != null) in ECPrivateKeyStructure() 74 v.add(new DERTaggedObject(true, 1, publicKey)); in ECPrivateKeyStructure()
|
/external/conscrypt/src/main/java/org/conscrypt/ |
D | OpenSSLSignatureRawRSA.java | 106 protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { in engineInitVerify() argument 107 if (publicKey instanceof OpenSSLRSAPublicKey) { in engineInitVerify() 108 OpenSSLRSAPublicKey rsaPublicKey = (OpenSSLRSAPublicKey) publicKey; in engineInitVerify() 110 } else if (publicKey instanceof RSAPublicKey) { in engineInitVerify() 111 RSAPublicKey rsaPublicKey = (RSAPublicKey) publicKey; in engineInitVerify()
|
D | OpenSSLKey.java | 133 PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException { in fromPrivateKeyForTLSStackOnly() argument 144 return wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey); in fromPrivateKeyForTLSStackOnly() 212 PublicKey publicKey) throws InvalidKeyException { in wrapJCAPrivateKeyForTLSStackOnly() argument 215 return OpenSSLRSAPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey); in wrapJCAPrivateKeyForTLSStackOnly() 217 return OpenSSLECPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey); in wrapJCAPrivateKeyForTLSStackOnly()
|
D | OpenSSLECPrivateKey.java | 82 PublicKey publicKey) throws InvalidKeyException { in wrapJCAPrivateKeyForTLSStackOnly() argument 86 } else if (publicKey instanceof ECKey) { in wrapJCAPrivateKeyForTLSStackOnly() 87 params = ((ECKey) publicKey).getParams(); in wrapJCAPrivateKeyForTLSStackOnly() 91 + ", public: " + publicKey); in wrapJCAPrivateKeyForTLSStackOnly()
|
D | OpenSSLRSAPrivateKey.java | 111 PublicKey publicKey) throws InvalidKeyException { in wrapJCAPrivateKeyForTLSStackOnly() argument 115 } else if (publicKey instanceof RSAKey) { in wrapJCAPrivateKeyForTLSStackOnly() 116 modulus = ((RSAKey) publicKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly() 120 + ", public: " + publicKey); in wrapJCAPrivateKeyForTLSStackOnly()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
D | SubjectPublicKeyInfo.java | 52 ASN1Encodable publicKey) in SubjectPublicKeyInfo() argument 55 this.keyData = new DERBitString(publicKey); in SubjectPublicKeyInfo() 61 byte[] publicKey) in SubjectPublicKeyInfo() argument 63 this.keyData = new DERBitString(publicKey); in SubjectPublicKeyInfo()
|
/external/conscrypt/src/test/java/org/conscrypt/ |
D | OpenSSLKeyTest.java | 53 OpenSSLRSAPublicKey publicKey = (OpenSSLRSAPublicKey)key.getPublicKey(); in test_fromPublicKeyPemInputStream() local 54 assertEquals(RSA_MODULUS, publicKey.getModulus()); in test_fromPublicKeyPemInputStream() 55 assertEquals(RSA_PUBLIC_EXPONENT, publicKey.getPublicExponent()); in test_fromPublicKeyPemInputStream()
|
/external/boringssl/src/crypto/ec/ |
D | ec_asn1.c | 137 ASN1_BIT_STRING *publicKey; member 157 ASN1_EXP_OPT(EC_PRIVATEKEY, publicKey, ASN1_BIT_STRING, 1), 344 if (priv_key->publicKey) { in d2i_ECPrivateKey() 348 pub_oct = M_ASN1_STRING_data(priv_key->publicKey); in d2i_ECPrivateKey() 349 pub_oct_len = M_ASN1_STRING_length(priv_key->publicKey); in d2i_ECPrivateKey() 438 priv_key->publicKey = M_ASN1_BIT_STRING_new(); in i2d_ECPrivateKey() 439 if (priv_key->publicKey == NULL) { in i2d_ECPrivateKey() 463 priv_key->publicKey->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07); in i2d_ECPrivateKey() 464 priv_key->publicKey->flags |= ASN1_STRING_FLAG_BITS_LEFT; in i2d_ECPrivateKey() 465 if (!M_ASN1_BIT_STRING_set(priv_key->publicKey, buffer, buf_len)) { in i2d_ECPrivateKey()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
D | JCEECPrivateKey.java | 52 private DERBitString publicKey; field in JCEECPrivateKey 109 this.publicKey = key.publicKey; in JCEECPrivateKey() 140 publicKey = getPublicKeyDetails(pubKey); in JCEECPrivateKey() 179 publicKey = getPublicKeyDetails(pubKey); in JCEECPrivateKey() 268 this.publicKey = ec.getPublicKey(); in populateFromPrivKeyInfo() 327 if (publicKey != null) in getEncoded() 329 keyStructure = new ECPrivateKeyStructure(this.getS(), publicKey, params); in getEncoded()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | BCECPrivateKey.java | 51 private transient DERBitString publicKey; field in BCECPrivateKey 115 this.publicKey = key.publicKey; in BCECPrivateKey() 149 publicKey = getPublicKeyDetails(pubKey); in BCECPrivateKey() 184 publicKey = getPublicKeyDetails(pubKey); in BCECPrivateKey() 229 this.publicKey = ec.getPublicKey(); in populateFromPrivKeyInfo() 293 if (publicKey != null) in getEncoded() 295 …cture = new org.bouncycastle.asn1.sec.ECPrivateKey(orderBitLength, this.getS(), publicKey, params); in getEncoded()
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/ssl/ |
D | CsrUtil.java | 107 public static X509Certificate[] issueX509V3Certificate(String name, PublicKey publicKey, in issueX509V3Certificate() argument 117 …return issueX509V3Certificate(name, publicKey, rootCert, rootPair, notBefore, notAfter, serialNumb… in issueX509V3Certificate() 121 static X509Certificate[] issueX509V3Certificate(String name, PublicKey publicKey, in issueX509V3Certificate() argument 134 certGen.setPublicKey(publicKey); in issueX509V3Certificate() 142 SubjectKeyIdentifier.getInstance(publicKey.getEncoded())); in issueX509V3Certificate()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | DigestSignatureSpi.java | 79 PublicKey publicKey) in engineInitVerify() argument 82 if (!(publicKey instanceof RSAPublicKey)) in engineInitVerify() 84 …throw new InvalidKeyException("Supplied key (" + getType(publicKey) + ") is not a RSAPublicKey ins… in engineInitVerify() 87 CipherParameters param = RSAUtil.generatePublicKeyParameter((RSAPublicKey)publicKey); in engineInitVerify()
|
/external/boringssl/src/ssl/test/runner/ |
D | key_agreement.go | 257 generateKeypair(rand io.Reader) (publicKey []byte, err error) 270 func (e *ellipticECDHCurve) generateKeypair(rand io.Reader) (publicKey []byte, err error) { 297 func (e *x25519ECDHCurve) generateKeypair(rand io.Reader) (publicKey []byte, err error) { 555 publicKey, err := ka.curve.generateKeypair(config.rand()) 561 serverECDHParams := make([]byte, 1+2+1+len(publicKey)) 568 serverECDHParams[3] = byte(len(publicKey)) 569 copy(serverECDHParams[4:], publicKey) 613 publicKey, err := ka.curve.generateKeypair(config.rand()) 623 ckx.ciphertext = make([]byte, 1+len(publicKey)) 624 ckx.ciphertext[0] = byte(len(publicKey)) [all …]
|
/external/apache-harmony/x-net/src/test/impl/java/org/apache/harmony/xnet/tests/provider/jsse/ |
D | DigitalSignatureTest.java | 82 final PublicKey publicKey = keyFactory in test_Sign() local 91 return publicKey; in test_Sign()
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/ |
D | KeyPairTest.java | 48 PublicKeyStub publicKey = new PublicKeyStub("publicAlgorithm", in setUp() local 51 keyPair = new KeyPair(publicKey, privateKey); in setUp()
|