/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/ |
D | SignatureTest.java | 1570 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSA_Key_Success() local 1573 sig.initVerify(pubKey); in testVerify_SHA1withRSA_Key_Success() 1584 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA256withRSA_Key_Success() local 1587 sig.initVerify(pubKey); in testVerify_SHA256withRSA_Key_Success() 1598 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA384withRSA_Key_Success() local 1601 sig.initVerify(pubKey); in testVerify_SHA384withRSA_Key_Success() 1612 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA512withRSA_Key_Success() local 1615 sig.initVerify(pubKey); in testVerify_SHA512withRSA_Key_Success() 1626 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_MD5withRSA_Key_Success() local 1629 sig.initVerify(pubKey); in testVerify_MD5withRSA_Key_Success() [all …]
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/ |
D | SignatureTest.java | 1574 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSA_Key_Success() local 1577 sig.initVerify(pubKey); in testVerify_SHA1withRSA_Key_Success() 1588 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA256withRSA_Key_Success() local 1591 sig.initVerify(pubKey); in testVerify_SHA256withRSA_Key_Success() 1602 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA384withRSA_Key_Success() local 1605 sig.initVerify(pubKey); in testVerify_SHA384withRSA_Key_Success() 1616 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA512withRSA_Key_Success() local 1619 sig.initVerify(pubKey); in testVerify_SHA512withRSA_Key_Success() 1630 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_MD5withRSA_Key_Success() local 1633 sig.initVerify(pubKey); in testVerify_MD5withRSA_Key_Success() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
D | KeyAgreementSpi.java | 156 DHPublicKey pubKey = (DHPublicKey)key; in engineDoPhase() local 158 if (!pubKey.getParams().getG().equals(g) || !pubKey.getParams().getP().equals(p)) in engineDoPhase() 221 return new BCDHPublicKey(res, pubKey.getParams()); in engineDoPhase() 417 private DHPublicKeyParameters generatePublicKeyParameter(PublicKey pubKey) in generatePublicKeyParameter() argument 420 if (pubKey instanceof DHPublicKey) in generatePublicKeyParameter() 422 if (pubKey instanceof BCDHPublicKey) in generatePublicKeyParameter() 424 return ((BCDHPublicKey)pubKey).engineGetKeyParameters(); in generatePublicKeyParameter() 428 DHPublicKey pub = (DHPublicKey)pubKey; in generatePublicKeyParameter()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
D | KeyAgreementSpi.java | 158 DHPublicKey pubKey = (DHPublicKey)key; in engineDoPhase() local 160 if (!pubKey.getParams().getG().equals(g) || !pubKey.getParams().getP().equals(p)) in engineDoPhase() 223 return new BCDHPublicKey(res, pubKey.getParams()); in engineDoPhase() 419 private DHPublicKeyParameters generatePublicKeyParameter(PublicKey pubKey) in generatePublicKeyParameter() argument 422 if (pubKey instanceof DHPublicKey) in generatePublicKeyParameter() 424 if (pubKey instanceof BCDHPublicKey) in generatePublicKeyParameter() 426 return ((BCDHPublicKey)pubKey).engineGetKeyParameters(); in generatePublicKeyParameter() 430 DHPublicKey pub = (DHPublicKey)pubKey; in generatePublicKeyParameter()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLECPublicKey.java | 57 OpenSSLECPointContext pubKey = OpenSSLECPointContext.getInstance(group, in OpenSSLECPublicKey() local 60 pubKey.getNativeRef(), null)); in OpenSSLECPublicKey() 70 OpenSSLECPointContext pubKey = OpenSSLECPointContext.getInstance(group, in getInstance() local 73 pubKey.getNativeRef(), null)); in getInstance() 100 final OpenSSLECPointContext pubKey = new OpenSSLECPointContext(group, in getPublicKey() local 103 return pubKey.getECPoint(); in getPublicKey()
|
D | OpenSSLRSAKeyPairGenerator.java | 53 PublicKey pubKey = new OpenSSLRSAPublicKey(key); in generateKeyPair() local 55 return new KeyPair(pubKey, privKey); in generateKeyPair()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLECPublicKey.java | 58 OpenSSLECPointContext pubKey = OpenSSLECPointContext.getInstance(group, in OpenSSLECPublicKey() local 61 pubKey.getNativeRef(), null)); in OpenSSLECPublicKey() 71 OpenSSLECPointContext pubKey = OpenSSLECPointContext.getInstance(group, in getInstance() local 74 pubKey.getNativeRef(), null)); in getInstance() 101 final OpenSSLECPointContext pubKey = new OpenSSLECPointContext(group, in getPublicKey() local 104 return pubKey.getECPoint(); in getPublicKey()
|
D | OpenSSLRSAKeyPairGenerator.java | 59 PublicKey pubKey = new OpenSSLRSAPublicKey(key); in generateKeyPair() local 61 return new KeyPair(pubKey, privKey); in generateKeyPair()
|
/external/boringssl/src/ssl/test/runner/ed25519/ |
D | ed25519_test.go | 119 pubKey, _ := hex.DecodeString(parts[1]) 126 if l := len(pubKey); l != PublicKeySize { 132 copy(priv[32:], pubKey) 139 if !Verify(pubKey, msg, sig2) { 148 if pubKey2 := priv2.Public().(PublicKey); !bytes.Equal(pubKey, pubKey2) { 149 …t.Errorf("recreating key pair gave different public key on line %d: %x vs %x", lineNo, pubKey, pub…
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/extension/ |
D | AuthorityKeyIdentifierStructure.java | 105 PublicKey pubKey) in fromKey() argument 110 SubjectPublicKeyInfo info = SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()); in fromKey() 142 PublicKey pubKey) in AuthorityKeyIdentifierStructure() argument 145 super(fromKey(pubKey)); in AuthorityKeyIdentifierStructure()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/x509/extension/ |
D | AuthorityKeyIdentifierStructure.java | 107 PublicKey pubKey) in fromKey() argument 112 SubjectPublicKeyInfo info = SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()); in fromKey() 144 PublicKey pubKey) in AuthorityKeyIdentifierStructure() argument 147 super(fromKey(pubKey)); in AuthorityKeyIdentifierStructure()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | KeyPairGeneratorSpi.java | 178 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); in generateKeyPair() local 179 return new KeyPair(pubKey, in generateKeyPair() 180 new BCECPrivateKey(algorithm, priv, pubKey, p, configuration)); in generateKeyPair() 191 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); in generateKeyPair() local 193 … return new KeyPair(pubKey, new BCECPrivateKey(algorithm, priv, pubKey, p, configuration)); in generateKeyPair()
|
D | KeyAgreementSpi.java | 118 CipherParameters pubKey; in engineDoPhase() local 162 pubKey = ECUtils.generatePublicKeyParameter((PublicKey)key); in engineDoPhase() 173 result = bigIntToBytes(((BasicAgreement)agreement).calculateAgreement(pubKey)); in engineDoPhase()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | KeyPairGeneratorSpi.java | 185 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); in generateKeyPair() local 186 return new KeyPair(pubKey, in generateKeyPair() 187 new BCECPrivateKey(algorithm, priv, pubKey, p, configuration)); in generateKeyPair() 198 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); in generateKeyPair() local 200 … return new KeyPair(pubKey, new BCECPrivateKey(algorithm, priv, pubKey, p, configuration)); in generateKeyPair()
|
D | KeyAgreementSpi.java | 120 CipherParameters pubKey; in engineDoPhase() local 164 pubKey = ECUtils.generatePublicKeyParameter((PublicKey)key); in engineDoPhase() 175 result = bigIntToBytes(((BasicAgreement)agreement).calculateAgreement(pubKey)); in engineDoPhase()
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/ocsp/jcajce/ |
D | JcaRespID.java | 21 public JcaRespID(PublicKey pubKey, DigestCalculator digCalc) in JcaRespID() argument 24 super(SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()), digCalc); in JcaRespID()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPublicKey.java | 63 …org.bouncycastle.asn1.pkcs.RSAPublicKey pubKey = org.bouncycastle.asn1.pkcs.RSAPublicKey.getInsta… in populateFromPublicKeyInfo() local 66 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo() 67 this.publicExponent = pubKey.getPublicExponent(); in populateFromPublicKeyInfo()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPublicKey.java | 67 …com.android.org.bouncycastle.asn1.pkcs.RSAPublicKey pubKey = com.android.org.bouncycastle.asn1.pk… in populateFromPublicKeyInfo() local 70 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo() 71 this.publicExponent = pubKey.getPublicExponent(); in populateFromPublicKeyInfo()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/agreement/ |
D | ECDHBasicAgreement.java | 45 CipherParameters pubKey) in calculateAgreement() argument 47 ECPublicKeyParameters pub = (ECPublicKeyParameters)pubKey; in calculateAgreement()
|
D | DHBasicAgreement.java | 62 CipherParameters pubKey) in calculateAgreement() argument 64 DHPublicKeyParameters pub = (DHPublicKeyParameters)pubKey; in calculateAgreement()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/agreement/ |
D | DHBasicAgreement.java | 64 CipherParameters pubKey) in calculateAgreement() argument 66 DHPublicKeyParameters pub = (DHPublicKeyParameters)pubKey; in calculateAgreement()
|
D | ECDHBasicAgreement.java | 47 CipherParameters pubKey) in calculateAgreement() argument 49 ECPublicKeyParameters pub = (ECPublicKeyParameters)pubKey; in calculateAgreement()
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/cert/ |
D | CertificateFactoryTest.java | 666 PublicKey pubKey = keyPair.getPublic(); in generateCertificate() local 672 certGen.setPublicKey(pubKey); in generateCertificate() 680 new AuthorityKeyIdentifier(generatePublicKeyDigest(pubKey))); in generateCertificate() 684 new SubjectKeyIdentifier(generatePublicKeyDigest(pubKey))); in generateCertificate() 699 private static byte[] generatePublicKeyDigest(PublicKey pubKey) { in generatePublicKeyDigest() argument 700 SubjectPublicKeyInfo spki = SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()); in generatePublicKeyDigest()
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/cert/ |
D | CertificateFactoryTest.java | 673 PublicKey pubKey = keyPair.getPublic(); in generateCertificate() local 679 certGen.setPublicKey(pubKey); in generateCertificate() 687 new AuthorityKeyIdentifier(generatePublicKeyDigest(pubKey))); in generateCertificate() 691 new SubjectKeyIdentifier(generatePublicKeyDigest(pubKey))); in generateCertificate() 706 private static byte[] generatePublicKeyDigest(PublicKey pubKey) { in generatePublicKeyDigest() argument 707 SubjectPublicKeyInfo spki = SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()); in generatePublicKeyDigest()
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/pkix/jcajce/ |
D | RevocationUtilities.java | 918 PublicKey pubKey = cert.getPublicKey(); in getNextWorkingKey() local 919 if (!(pubKey instanceof DSAPublicKey)) in getNextWorkingKey() 921 return pubKey; in getNextWorkingKey() 923 DSAPublicKey dsaPubKey = (DSAPublicKey)pubKey; in getNextWorkingKey() 931 pubKey = parentCert.getPublicKey(); in getNextWorkingKey() 932 if (!(pubKey instanceof DSAPublicKey)) in getNextWorkingKey() 937 DSAPublicKey prevDSAPubKey = (DSAPublicKey)pubKey; in getNextWorkingKey()
|