/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/ |
D | SignatureTest.java | 1605 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSA_Key_Success() local 1608 verify(sig, pubKey, Vector1Data, SHA1withRSA_Vector1Signature); in testVerify_SHA1withRSA_Key_Success() 1615 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA256withRSA_Key_Success() local 1618 verify(sig, pubKey, Vector2Data, SHA256withRSA_Vector2Signature); in testVerify_SHA256withRSA_Key_Success() 1625 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA384withRSA_Key_Success() local 1628 verify(sig, pubKey, Vector2Data, SHA384withRSA_Vector2Signature); in testVerify_SHA384withRSA_Key_Success() 1635 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA512withRSA_Key_Success() local 1638 verify(sig, pubKey, Vector2Data, SHA512withRSA_Vector2Signature); in testVerify_SHA512withRSA_Key_Success() 1645 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_MD5withRSA_Key_Success() local 1648 verify(sig, pubKey, Vector2Data, MD5withRSA_Vector2Signature); in testVerify_MD5withRSA_Key_Success() [all …]
|
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/ |
D | SignatureTest.java | 1600 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSA_Key_Success() local 1603 verify(sig, pubKey, Vector1Data, SHA1withRSA_Vector1Signature); in testVerify_SHA1withRSA_Key_Success() 1610 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA256withRSA_Key_Success() local 1613 verify(sig, pubKey, Vector2Data, SHA256withRSA_Vector2Signature); in testVerify_SHA256withRSA_Key_Success() 1620 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA384withRSA_Key_Success() local 1623 verify(sig, pubKey, Vector2Data, SHA384withRSA_Vector2Signature); in testVerify_SHA384withRSA_Key_Success() 1630 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA512withRSA_Key_Success() local 1633 verify(sig, pubKey, Vector2Data, SHA512withRSA_Vector2Signature); in testVerify_SHA512withRSA_Key_Success() 1640 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_MD5withRSA_Key_Success() local 1643 verify(sig, pubKey, Vector2Data, MD5withRSA_Vector2Signature); in testVerify_MD5withRSA_Key_Success() [all …]
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Asymmetric/ |
D | ECC_Encrypt.c | 50 OBJECT *pubKey = HandleToObject(in->keyHandle); in TPM2_ECC_Encrypt() local 52 if (pubKey->publicArea.type != TPM_ALG_ECC) in TPM2_ECC_Encrypt() 55 if(!CryptEccSelectScheme(pubKey, &in->inScheme)) in TPM2_ECC_Encrypt() 58 return CryptEccEncrypt(pubKey, &in->inScheme, &in->plainText, in TPM2_ECC_Encrypt()
|
/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_platform/bcprov/src/main/java/com/android/internal/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/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/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLECPublicKey.java | 59 OpenSSLECPointContext pubKey = OpenSSLECPointContext.getInstance(group, in OpenSSLECPublicKey() local 62 pubKey.getNativeRef(), null)); in OpenSSLECPublicKey() 72 OpenSSLECPointContext pubKey = OpenSSLECPointContext.getInstance(group, in getInstance() local 75 pubKey.getNativeRef(), null)); in getInstance() 102 final OpenSSLECPointContext pubKey = new OpenSSLECPointContext(group, in getPublicKey() local 105 return pubKey.getECPoint(); in getPublicKey()
|
D | OpenSSLRSAKeyPairGenerator.java | 57 PublicKey pubKey = new OpenSSLRSAPublicKey(key); in generateKeyPair() local 59 return new KeyPair(pubKey, privKey); in generateKeyPair()
|
/external/conscrypt/common/src/main/java/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 | 53 PublicKey pubKey = new OpenSSLRSAPublicKey(key); in generateKeyPair() local 55 return new KeyPair(pubKey, privKey); in generateKeyPair()
|
/external/tpm2-tss/src/tss2-fapi/api/ |
D | Fapi_ExportKey.c | 277 IFAPI_OBJECT *pubKey = &command->pub_key; in Fapi_ExportKey_Finish() local 280 pubKey->misc.ext_pub_key.certificate = NULL; in Fapi_ExportKey_Finish() 299 pubKey->objectType = IFAPI_EXT_PUB_KEY_OBJ; in Fapi_ExportKey_Finish() 300 pubKey->misc.ext_pub_key.public = commandObject.misc.key.public; in Fapi_ExportKey_Finish() 303 r = ifapi_pub_pem_key_from_tpm(&pubKey->misc.ext_pub_key.public, in Fapi_ExportKey_Finish() 304 &pubKey->misc.ext_pub_key.pem_ext_public, in Fapi_ExportKey_Finish() 308 r = ifapi_json_IFAPI_OBJECT_serialize(pubKey, &jsoOut); in Fapi_ExportKey_Finish() 461 SAFE_FREE(pubKey->misc.ext_pub_key.pem_ext_public); in Fapi_ExportKey_Finish() 462 SAFE_FREE(pubKey->misc.ext_pub_key.certificate); in Fapi_ExportKey_Finish()
|
/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/repackaged_platform/bcprov/src/main/java/com/android/internal/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 | 188 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); in generateKeyPair() local 189 return new KeyPair(pubKey, in generateKeyPair() 190 new BCECPrivateKey(algorithm, priv, pubKey, p, configuration)); in generateKeyPair() 201 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); in generateKeyPair() local 203 … 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_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | KeyPairGeneratorSpi.java | 195 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); in generateKeyPair() local 196 return new KeyPair(pubKey, in generateKeyPair() 197 new BCECPrivateKey(algorithm, priv, pubKey, p, configuration)); in generateKeyPair() 208 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); in generateKeyPair() local 210 … 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/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | KeyPairGeneratorSpi.java | 195 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); in generateKeyPair() local 196 return new KeyPair(pubKey, in generateKeyPair() 197 new BCECPrivateKey(algorithm, priv, pubKey, p, configuration)); in generateKeyPair() 208 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); in generateKeyPair() local 210 … 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/bcpkix/src/main/java/org/bouncycastle/pkix/jcajce/ |
D | RevocationUtilities.java | 555 PublicKey pubKey = cert.getPublicKey(); in getNextWorkingKey() local 556 if (!(pubKey instanceof DSAPublicKey)) in getNextWorkingKey() 558 return pubKey; in getNextWorkingKey() 560 DSAPublicKey dsaPubKey = (DSAPublicKey)pubKey; in getNextWorkingKey() 568 pubKey = parentCert.getPublicKey(); in getNextWorkingKey() 569 if (!(pubKey instanceof DSAPublicKey)) in getNextWorkingKey() 574 DSAPublicKey prevDSAPubKey = (DSAPublicKey)pubKey; in getNextWorkingKey()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPublicKey.java | 75 …org.bouncycastle.asn1.pkcs.RSAPublicKey pubKey = org.bouncycastle.asn1.pkcs.RSAPublicKey.getInsta… in populateFromPublicKeyInfo() local 78 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo() 79 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()
|