/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | KeyPairGenerator4Test.java | 92 KeyPairGenerator keyPair = KeyPairGenerator.getInstance("DSA"); in test_initializeI() local 93 keyPair.initialize(1024); in test_initializeI() 101 KeyPairGenerator keyPair = KeyPairGenerator.getInstance("DSA"); in test_initializeILjava_security_SecureRandom() local 102 keyPair.initialize(1024, new SecureRandom()); in test_initializeILjava_security_SecureRandom() 118 KeyPairGenerator keyPair = KeyPairGenerator.getInstance("DSA"); in test_initializeLjava_security_spec_AlgorithmParameterSpec() local 119 keyPair.initialize(new DSAParameterSpec(params.getP(), params.getQ(), in test_initializeLjava_security_spec_AlgorithmParameterSpec() 136 KeyPairGenerator keyPair = KeyPairGenerator.getInstance("DSA"); in test_initializeLjava_security_spec_AlgorithmParameterSpecLjava_security_SecureRandom() local 137 keyPair.initialize(new DSAParameterSpec(params.getP(), params.getQ(), in test_initializeLjava_security_spec_AlgorithmParameterSpecLjava_security_SecureRandom()
|
D | KeyStorePrivateKeyEntryTest.java | 68 KeyPair keyPair = keyPairGenerator.generateKeyPair(); in testGetCertificateChain() local 69 PrivateKey privateKey = keyPair.getPrivate(); in testGetCertificateChain()
|
D | KeyStore3Test.java | 50 private KeyPair keyPair; field in KeyStore3Test 56 keyPair = keyPairGenerator.generateKeyPair(); in KeyStore3Test() 118 Key key = keyPair.getPrivate(); in test_setKeyEntry_key_is_private() 140 Key key = keyPair.getPublic(); in test_setKeyEntry_key_is_public()
|
D | KeyStore2Test.java | 60 KeyPair keyPair = keyPairGenerator.genKeyPair(); 61 privateKey = keyPair.getPrivate();
|
/external/okhttp/src/test/java/com/squareup/okhttp/internal/ |
D | SslContextBuilder.java | 67 KeyPair keyPair = generateKeyPair(); in build() local 68 X509Certificate certificate = selfSignedCertificate(keyPair); in build() 73 keyStore.setKeyEntry("private", keyPair.getPrivate(), password, certificateChain); in build() 100 private X509Certificate selfSignedCertificate(KeyPair keyPair) throws GeneralSecurityException { in selfSignedCertificate() argument 109 generator.setPublicKey(keyPair.getPublic()); in selfSignedCertificate() 111 return generator.generateX509Certificate(keyPair.getPrivate(), "BC"); in selfSignedCertificate()
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/ |
D | KeyPairTest.java | 43 private KeyPair keyPair; field in KeyPairTest 51 keyPair = new KeyPair(publicKey, privateKey); in setUp() 59 SerializationTest.verifyGolden(this, keyPair, comparator); in testSerializationCompatibility() 67 SerializationTest.verifySelf(keyPair, comparator); in testSerializationSelf()
|
/external/chromium_org/net/third_party/nss/ssl/ |
D | ssl3ecc.c | 501 ECDHEKeyPair *keyPair = &gECDHEKeyPairs[0]; in ssl3_ShutdownECDHECurves() local 503 for (i=0; i < ec_pastLastName; i++, keyPair++) { in ssl3_ShutdownECDHECurves() 504 if (keyPair->pair) { in ssl3_ShutdownECDHECurves() 505 ssl3_FreeKeyPair(keyPair->pair); in ssl3_ShutdownECDHECurves() 529 ssl3KeyPair * keyPair = NULL; in ssl3_CreateECDHEphemeralKeyPair() local 544 if (!privKey || !pubKey || !(keyPair = ssl3_NewKeyPair(privKey, pubKey))) { in ssl3_CreateECDHEphemeralKeyPair() 556 gECDHEKeyPairs[ec_curve].pair = keyPair; in ssl3_CreateECDHEphemeralKeyPair() 572 ssl3KeyPair * keyPair = NULL; in ssl3_CreateECDHEphemeralKeys() local 592 keyPair = gECDHEKeyPairs[ec_curve].pair; in ssl3_CreateECDHEphemeralKeys() 593 PORT_Assert(keyPair != NULL); in ssl3_CreateECDHEphemeralKeys() [all …]
|
D | sslsecur.c | 742 ssl3KeyPair *keyPair, SSLKEAType kea) in ssl_ConfigSecureServer() argument 761 sc->serverKeyBits = SECKEY_PublicKeyStrengthInBits(keyPair->pubKey); in ssl_ConfigSecureServer() 782 if (keyPair) { in ssl_ConfigSecureServer() 783 SECKEY_CacheStaticFlags(keyPair->privKey); in ssl_ConfigSecureServer() 784 sc->serverKeyPair = ssl3_GetKeyPairRef(keyPair); in ssl_ConfigSecureServer() 830 ssl3KeyPair *keyPair = NULL; in SSL_ConfigSecureServerWithCertChain() local 891 keyPair = ssl3_NewKeyPair(keyCopy, pubKey); in SSL_ConfigSecureServerWithCertChain() 892 if (keyPair == NULL) { in SSL_ConfigSecureServerWithCertChain() 899 keyPair, kea) == SECFailure) { in SSL_ConfigSecureServerWithCertChain() 911 if (keyPair) { in SSL_ConfigSecureServerWithCertChain() [all …]
|
D | sslimpl.h | 1824 ssl3KeyPair *keyPair, SSLKEAType kea); 1874 extern ssl3KeyPair * ssl3_GetKeyPairRef(ssl3KeyPair * keyPair); 1877 extern void ssl3_FreeKeyPair(ssl3KeyPair * keyPair);
|
D | ssl3con.c | 12341 ssl3_GetKeyPairRef(ssl3KeyPair * keyPair) in ssl3_GetKeyPairRef() argument 12343 PR_ATOMIC_INCREMENT(&keyPair->refCount); in ssl3_GetKeyPairRef() 12344 return keyPair; in ssl3_GetKeyPairRef() 12348 ssl3_FreeKeyPair(ssl3KeyPair * keyPair) in ssl3_FreeKeyPair() argument 12350 PRInt32 newCount = PR_ATOMIC_DECREMENT(&keyPair->refCount); in ssl3_FreeKeyPair() 12352 if (keyPair->privKey) in ssl3_FreeKeyPair() 12353 SECKEY_DestroyPrivateKey(keyPair->privKey); in ssl3_FreeKeyPair() 12354 if (keyPair->pubKey) in ssl3_FreeKeyPair() 12355 SECKEY_DestroyPublicKey( keyPair->pubKey); in ssl3_FreeKeyPair() 12356 PORT_Free(keyPair); in ssl3_FreeKeyPair()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/ |
D | DSAKeyFactoryImplTest.java | 60 static KeyPair keyPair; field in DSAKeyFactoryImplTest 108 keyPair = kpGen.generateKeyPair(); 110 publicKey = (DSAPublicKey) keyPair.getPublic(); 111 privateKey = (DSAPrivateKey) keyPair.getPrivate();
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/cert/ |
D | X509CRLImplTest.java | 182 KeyPair keyPair = keyGen.genKeyPair(); 183 publicKey = keyPair.getPublic(); 184 privateKey = keyPair.getPrivate();
|
D | X509CertImplTest.java | 181 KeyPair keyPair = keyGen.genKeyPair(); 182 publicKey = keyPair.getPublic(); 183 privateKey = keyPair.getPrivate();
|
D | X509CertFactoryPerfTest.java | 155 KeyPair keyPair = keyGen.genKeyPair(); 156 publicKey = keyPair.getPublic(); 157 privateKey = keyPair.getPrivate();
|