/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | IdentityScope2Test.java | 32 static PublicKey pubKey; field in IdentityScope2Test 35 pubKey = KeyPairGenerator.getInstance("DSA").genKeyPair().getPublic(); 144 id.setPublicKey(pubKey); in test_addIdentityLjava_security_Identity() 148 id2.setPublicKey(pubKey); in test_addIdentityLjava_security_Identity() 163 id.setPublicKey(pubKey); in test_removeIdentityLjava_security_Identity() 181 id.setPublicKey(pubKey); in test_identities() 194 id.setPublicKey(pubKey); in test_getIdentityLjava_security_Principal() 210 id.setPublicKey(pubKey); in test_getIdentityLjava_security_PublicKey() 212 Identity returnedId = sub.getIdentity(pubKey); in test_getIdentityLjava_security_PublicKey() 224 id.setPublicKey(pubKey); in test_getIdentityLjava_lang_String() [all …]
|
D | Identity2Test.java | 37 static PublicKey pubKey; field in Identity2Test 40 pubKey = KeyPairGenerator.getInstance("DSA").genKeyPair().getPublic(); 185 sub.setPublicKey(pubKey); in test_getPublicKey() 187 assertEquals("Wrong PublicKey returned", pubKey, returnedPubKey); in test_getPublicKey()
|
/external/dropbear/libtomcrypt/testprof/ |
D | rsa_test.c | 128 rsa_key key, privKey, pubKey; in rsa_test() local 288 DO(rsa_import(tmp, len2, &pubKey)); in rsa_test() 299 rsa_free(&pubKey); in rsa_test() 315 rsa_free(&pubKey); in rsa_test() 323 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &pubKey)); in rsa_test() 326 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 0, &stat2, &pubKey)); in rsa_test() 331 rsa_free(&pubKey); in rsa_test() 339 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 8, &stat, &pubKey)); in rsa_test() 342 DO(rsa_verify_hash(out, len, in, 20, hash_idx, 8, &stat2, &pubKey)); in rsa_test() 347 rsa_free(&pubKey); in rsa_test() [all …]
|
D | katja_test.c | 8 katja_key key, privKey, pubKey; in katja_test() local 149 DO(katja_import(tmp, len2, &pubKey)); in katja_test() 160 katja_free(&pubKey); in katja_test() 176 katja_free(&pubKey); in katja_test() 184 DO(katja_verify_hash(out, len, in, 20, hash_idx, 0, &stat, &pubKey)); in katja_test() 187 DO(katja_verify_hash(out, len, in, 20, hash_idx, 0, &stat2, &pubKey)); in katja_test() 192 katja_free(&pubKey); in katja_test() 200 DO(katja_verify_hash(out, len, in, 20, hash_idx, 8, &stat, &pubKey)); in katja_test() 203 DO(katja_verify_hash(out, len, in, 20, hash_idx, 8, &stat2, &pubKey)); in katja_test() 208 katja_free(&pubKey); in katja_test() [all …]
|
D | ecc_test.c | 113 ecc_key usera, userb, pubKey, privKey; in ecc_tests() local 193 DO(ecc_import(buf[0], x, &pubKey)); in ecc_tests() 202 …t_key (buf[0], 32, buf[1], &y, &yarrow_prng, find_prng ("yarrow"), find_hash ("sha256"), &pubKey)); in ecc_tests() 222 DO(ecc_verify_hash (buf[1], x, buf[0], 16, &stat, &pubKey)); in ecc_tests() 230 ecc_free (&pubKey); in ecc_tests()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/extension/ |
D | SubjectKeyIdentifierStructure.java | 32 PublicKey pubKey) in fromPublicKey() argument 37 SubjectPublicKeyInfo info = SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()); in fromPublicKey() 48 PublicKey pubKey) in SubjectKeyIdentifierStructure() argument 51 super(fromPublicKey(pubKey)); in SubjectKeyIdentifierStructure()
|
D | AuthorityKeyIdentifierStructure.java | 109 PublicKey pubKey) in fromKey() argument 115 … (ASN1Sequence)new ASN1InputStream(pubKey.getEncoded()).readObject()); in fromKey() 147 PublicKey pubKey) in AuthorityKeyIdentifierStructure() argument 150 super(fromKey(pubKey)); in AuthorityKeyIdentifierStructure()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/ |
D | DSAKeyFactoryImplTest.java | 307 DSAPublicKey pubKey; in testGeneratePublicKeySpec04() local 318 pubKey = new DSAPublicKey () { in testGeneratePublicKeySpec04() 329 ks = kf.getKeySpec(pubKey, X509EncodedKeySpec.class); in testGeneratePublicKeySpec04() 331 pubKey = (DSAPublicKey) kf.generatePublic((KeySpec)ks); in testGeneratePublicKeySpec04() 348 DSAPublicKey pubKey; in testGeneratePublicKeySpec05() local 360 pubKey = new DSAPublicKey () { in testGeneratePublicKeySpec05() 371 ks = kf.getKeySpec(pubKey, X509EncodedKeySpec.class); in testGeneratePublicKeySpec05() 372 pubKey = (DSAPublicKey) kf.generatePublic((KeySpec)ks); in testGeneratePublicKeySpec05() 374 String alg = pubKey.getAlgorithm(); in testGeneratePublicKeySpec05() 667 DSAPublicKey pubKey = new DSAPublicKey () { in testGetKeySpec06() local [all …]
|
/external/chromium_org/net/third_party/nss/ssl/ |
D | ssl3ecc.c | 57 ss->serverCerts[type].serverKeyPair->pubKey : NULL) 287 SECKEYPublicKey *pubKey = NULL; /* Ephemeral ECDH key */ in ssl3_SendECDHClientKeyExchange() local 303 &pubKey, ss->pkcs11PinArg); in ssl3_SendECDHClientKeyExchange() 304 if (!privKey || !pubKey) { in ssl3_SendECDHClientKeyExchange() 310 pubKey->u.ec.publicValue.data, in ssl3_SendECDHClientKeyExchange() 311 pubKey->u.ec.publicValue.len)); in ssl3_SendECDHClientKeyExchange() 345 pubKey->u.ec.publicValue.len + 1); in ssl3_SendECDHClientKeyExchange() 351 pubKey->u.ec.publicValue.data, in ssl3_SendECDHClientKeyExchange() 352 pubKey->u.ec.publicValue.len, 1); in ssl3_SendECDHClientKeyExchange() 353 SECKEY_DestroyPublicKey(pubKey); in ssl3_SendECDHClientKeyExchange() [all …]
|
D | sslsecur.c | 761 sc->serverKeyBits = SECKEY_PublicKeyStrengthInBits(keyPair->pubKey); in ssl_ConfigSecureServer() 829 SECKEYPublicKey *pubKey = NULL; in SSL_ConfigSecureServerWithCertChain() local 859 pubKey = CERT_ExtractPublicKey(cert); in SSL_ConfigSecureServerWithCertChain() 860 if (!pubKey) in SSL_ConfigSecureServerWithCertChain() 891 keyPair = ssl3_NewKeyPair(keyCopy, pubKey); in SSL_ConfigSecureServerWithCertChain() 896 pubKey = NULL; /* adopted by serverKeyPair */ in SSL_ConfigSecureServerWithCertChain() 914 if (pubKey) { in SSL_ConfigSecureServerWithCertChain() 915 SECKEY_DestroyPublicKey(pubKey); in SSL_ConfigSecureServerWithCertChain() 916 pubKey = NULL; in SSL_ConfigSecureServerWithCertChain()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | KeyPairGeneratorSpi.java | 264 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); in generateKeyPair() local 265 return new KeyPair(pubKey, in generateKeyPair() 266 new BCECPrivateKey(algorithm, priv, pubKey, p, configuration)); in generateKeyPair() 277 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); in generateKeyPair() local 279 … return new KeyPair(pubKey, new BCECPrivateKey(algorithm, priv, pubKey, p, configuration)); in generateKeyPair()
|
D | KeyAgreementSpi.java | 117 CipherParameters pubKey; in engineDoPhase() local 146 pubKey = ECUtil.generatePublicKeyParameter((PublicKey)key); in engineDoPhase() 151 result = agreement.calculateAgreement(pubKey); in engineDoPhase()
|
D | BCECPrivateKey.java | 126 BCECPublicKey pubKey, in BCECPrivateKey() argument 153 publicKey = getPublicKeyDetails(pubKey); in BCECPrivateKey() 159 BCECPublicKey pubKey, in BCECPrivateKey() argument 194 publicKey = getPublicKeyDetails(pubKey); in BCECPrivateKey()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
D | JCERSAPublicKey.java | 51 … RSAPublicKeyStructure pubKey = new RSAPublicKeyStructure((ASN1Sequence)info.parsePublicKey()); in JCERSAPublicKey() local 53 this.modulus = pubKey.getModulus(); in JCERSAPublicKey() 54 this.publicExponent = pubKey.getPublicExponent(); in JCERSAPublicKey()
|
D | JCEECPrivateKey.java | 115 JCEECPublicKey pubKey, in JCEECPrivateKey() argument 140 publicKey = getPublicKeyDetails(pubKey); in JCEECPrivateKey() 146 JCEECPublicKey pubKey, in JCEECPrivateKey() argument 179 publicKey = getPublicKeyDetails(pubKey); in JCEECPrivateKey()
|
D | CertPathValidatorUtilities.java | 1327 PublicKey pubKey = cert.getPublicKey(); in getNextWorkingKey() local 1328 if (!(pubKey instanceof DSAPublicKey)) in getNextWorkingKey() 1330 return pubKey; in getNextWorkingKey() 1332 DSAPublicKey dsaPubKey = (DSAPublicKey)pubKey; in getNextWorkingKey() 1340 pubKey = parentCert.getPublicKey(); in getNextWorkingKey() 1341 if (!(pubKey instanceof DSAPublicKey)) in getNextWorkingKey() 1346 DSAPublicKey prevDSAPubKey = (DSAPublicKey)pubKey; in getNextWorkingKey()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
D | KeyAgreementSpi.java | 80 DHPublicKey pubKey = (DHPublicKey)key; in engineDoPhase() local 82 if (!pubKey.getParams().getG().equals(g) || !pubKey.getParams().getP().equals(p)) in engineDoPhase() 97 return new BCDHPublicKey(result, pubKey.getParams()); in engineDoPhase()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPublicKey.java | 49 …org.bouncycastle.asn1.pkcs.RSAPublicKey pubKey = org.bouncycastle.asn1.pkcs.RSAPublicKey.getInsta… in BCRSAPublicKey() local 51 this.modulus = pubKey.getModulus(); in BCRSAPublicKey() 52 this.publicExponent = pubKey.getPublicExponent(); in BCRSAPublicKey()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/agreement/ |
D | ECDHBasicAgreement.java | 42 CipherParameters pubKey) in calculateAgreement() argument 44 ECPublicKeyParameters pub = (ECPublicKeyParameters)pubKey; in calculateAgreement()
|
D | DHBasicAgreement.java | 60 CipherParameters pubKey) in calculateAgreement() argument 62 DHPublicKeyParameters pub = (DHPublicKeyParameters)pubKey; in calculateAgreement()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | ECUtil.java | 132 java.security.interfaces.ECPublicKey pubKey = (java.security.interfaces.ECPublicKey)key; in generatePublicKeyParameter() local 133 ECParameterSpec s = EC5Util.convertSpec(pubKey.getParams(), false); in generatePublicKeyParameter() 135 EC5Util.convertPoint(pubKey.getParams(), pubKey.getW(), false), in generatePublicKeyParameter()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/ |
D | PublicKeyFactory.java | 97 RSAPublicKey pubKey = RSAPublicKey.getInstance(keyInfo.parsePublicKey()); in createKey() local 99 return new RSAKeyParameters(false, pubKey.getModulus(), pubKey.getPublicExponent()); in createKey()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
D | BasicAgreement.java | 25 BigInteger calculateAgreement(CipherParameters pubKey); in calculateAgreement() argument
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/jcajce/ |
D | JcaSimpleSignerInfoVerifierBuilder.java | 48 public SignerInformationVerifier build(PublicKey pubKey) in build() argument 51 …gnatureAlgorithmIdentifierFinder(), helper.createContentVerifierProvider(pubKey), helper.createDig… in build()
|
D | JcaSignerInfoVerifierBuilder.java | 78 public SignerInformationVerifier build(PublicKey pubKey) in build() argument 81 …ifier(sigAlgNameGen, sigAlgIDFinder, helper.createContentVerifierProvider(pubKey), digestProvider); in build()
|