/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/ |
D | HeldCertificate.java | 20 import java.security.KeyPair; 40 public final KeyPair keyPair; 42 public HeldCertificate(X509Certificate certificate, KeyPair keyPair) { in HeldCertificate() 55 private KeyPair keyPair; 73 public Builder keyPair(KeyPair keyPair) { in keyPair() 98 KeyPair heldKeyPair = keyPair != null in build() 106 KeyPair signedByKeyPair; in build() 138 public KeyPair generateKeyPair() throws GeneralSecurityException { in generateKeyPair()
|
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/ |
D | KeyFactoryTestEC.java | 18 import java.security.KeyPair; 57 protected void check(KeyPair keyPair) throws Exception { in check() 62 protected List<KeyPair> getKeys() throws NoSuchAlgorithmException, InvalidKeySpecException { in getKeys() 64 new KeyPair( in getKeys() 68 new KeyPair( in getKeys() 72 new KeyPair( in getKeys()
|
D | KeyFactoryTestXDH.java | 18 import java.security.KeyPair; 38 protected void check(KeyPair keyPair) throws Exception { in check() 49 protected List<KeyPair> getKeys() throws NoSuchAlgorithmException, InvalidKeySpecException { in getKeys() 51 new KeyPair( in getKeys() 55 new KeyPair( in getKeys()
|
D | KeyFactoryTestRSACustom.java | 18 import java.security.KeyPair; 40 protected void check(KeyPair keyPair) throws Exception { in check() 52 protected List<KeyPair> getKeys() throws NoSuchAlgorithmException, InvalidKeySpecException { in getKeys() 54 new KeyPair( in getKeys()
|
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/ |
D | KeyFactoryTestEC.java | 19 import java.security.KeyPair; 61 protected void check(KeyPair keyPair) throws Exception { in check() 66 protected List<KeyPair> getKeys() throws NoSuchAlgorithmException, InvalidKeySpecException { in getKeys() 68 new KeyPair(DefaultKeys.getPublicKey("EC"), DefaultKeys.getPrivateKey("EC")), in getKeys() 69 new KeyPair(new TestPublicKey(DefaultKeys.getPublicKey("EC")), in getKeys() 71 new KeyPair(new TestECPublicKey((ECPublicKey) DefaultKeys.getPublicKey("EC")), in getKeys()
|
D | KeyFactoryTestXDH.java | 19 import java.security.KeyPair; 42 protected void check(KeyPair keyPair) throws Exception { in check() 53 protected List<KeyPair> getKeys() throws NoSuchAlgorithmException, InvalidKeySpecException { in getKeys() 55 new KeyPair( in getKeys() 59 new KeyPair( in getKeys()
|
D | KeyFactoryTestRSACustom.java | 19 import java.security.KeyPair; 44 protected void check(KeyPair keyPair) throws Exception { in check() 56 protected List<KeyPair> getKeys() throws NoSuchAlgorithmException, InvalidKeySpecException { in getKeys() 58 new KeyPair( in getKeys()
|
/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/ |
D | AbstractKeyFactoryTest.java | 19 import java.security.KeyPair; 60 for (KeyPair pair : getKeys()) { in testKeyFactory() 67 check(new KeyPair(publicKey, privateKey)); in testKeyFactory() 83 check(new KeyPair((PublicKey) factory.translateKey(publicKey2), in testKeyFactory() 96 protected void check(KeyPair keyPair) throws Exception {} in check() 98 protected List<KeyPair> getKeys() throws NoSuchAlgorithmException, InvalidKeySpecException { in getKeys() 100 new KeyPair( in getKeys()
|
D | AbstractKeyPairGeneratorTest.java | 21 import java.security.KeyPair; 29 private final TestHelper<KeyPair> helper; 33 protected AbstractKeyPairGeneratorTest(String algorithmName, TestHelper<KeyPair> helper) { in AbstractKeyPairGeneratorTest() 51 KeyPair keyPair = generator.generateKeyPair(); in testKeyPairGenerator()
|
D | CipherAsymmetricCryptHelper.java | 19 import java.security.KeyPair; 22 public class CipherAsymmetricCryptHelper extends CipherHelper<KeyPair> { 32 public void test(KeyPair keyPair) throws Exception { in test()
|
D | KeyAgreementHelper.java | 21 import java.security.KeyPair; 26 public class KeyAgreementHelper extends TestHelper<KeyPair> { 34 @Override public void test(KeyPair keyPair) throws Exception { in test()
|
D | SignatureHelper.java | 21 import java.security.KeyPair; 26 public class SignatureHelper extends TestHelper<KeyPair> { 36 public void test(KeyPair keyPair) throws Exception { in test()
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/java/security/ |
D | AbstractKeyFactoryTest.java | 20 import java.security.KeyPair; 64 for (KeyPair pair : getKeys()) { in testKeyFactory() 71 check(new KeyPair(publicKey, privateKey)); in testKeyFactory() 91 check(new KeyPair( in testKeyFactory() 106 protected void check(KeyPair keyPair) throws Exception {} in check() 108 protected List<KeyPair> getKeys() throws NoSuchAlgorithmException, InvalidKeySpecException { in getKeys() 109 return Arrays.asList(new KeyPair( in getKeys()
|
D | AbstractKeyPairGeneratorTest.java | 22 import java.security.KeyPair; 33 private final TestHelper<KeyPair> helper; 37 protected AbstractKeyPairGeneratorTest(String algorithmName, TestHelper<KeyPair> helper) { in AbstractKeyPairGeneratorTest() 55 KeyPair keyPair = generator.generateKeyPair(); in testKeyPairGenerator()
|
D | CipherAsymmetricCryptHelper.java | 20 import java.security.KeyPair; 26 public class CipherAsymmetricCryptHelper extends CipherHelper<KeyPair> { 36 public void test(KeyPair keyPair) throws Exception { in test()
|
D | KeyAgreementHelper.java | 22 import java.security.KeyPair; 30 public class KeyAgreementHelper extends TestHelper<KeyPair> { 38 @Override public void test(KeyPair keyPair) throws Exception { in test()
|
D | SignatureHelper.java | 22 import java.security.KeyPair; 30 public class SignatureHelper extends TestHelper<KeyPair> { 40 public void test(KeyPair keyPair) throws Exception { in test()
|
/external/ukey2/src/main/javatest/com/google/security/cryptauth/lib/securegcm/ |
D | KeyEncodingTest.java | 19 import java.security.KeyPair; 45 private KeyPair userKeyPair; 98 KeyPair clientKeyPair = EnrollmentCryptoOps.generateEnrollmentKeyAgreementKeyPair(isLegacy); in testKeyAgreementPublicKeyEncoding() 106 KeyPair clientKeyPair = EnrollmentCryptoOps.generateEnrollmentKeyAgreementKeyPair(isLegacy); in testKeyAgreementPrivateKeyEncoding() 128 KeyPair keyPair = PublicKeyProtoUtil.generateEcP256KeyPair(); in testSigningPublicKeyEncoding() 136 KeyPair keyPair = PublicKeyProtoUtil.generateEcP256KeyPair(); in testSigningPrivateKeyEncoding() 144 KeyPair keyPair = PublicKeyProtoUtil.generateEcP256KeyPair(); in testDeviceSyncPublicKeyEncoding()
|
D | TransportCryptoOpsTest.java | 21 import java.security.KeyPair; 73 KeyPair userKeyPair = PublicKeyProtoUtil.generateEcP256KeyPair(); in testClientMessage() 78 KeyPair userKeyPair = PublicKeyProtoUtil.generateRSA2048KeyPair(); in testClientMessageWithLegacyCrypto() 82 private void doTestClientMessageWith(KeyPair userKeyPair) throws Exception { in doTestClientMessageWith()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLXDHKeyPairGenerator.java | 21 import java.security.KeyPair; 40 public KeyPair generateKeyPair() { in generateKeyPair() 46 …return new KeyPair(new OpenSSLX25519PublicKey(publicKeyBytes), new OpenSSLX25519PrivateKey(private… in generateKeyPair()
|
D | OpenSSLRSAKeyPairGenerator.java | 22 import java.security.KeyPair; 52 public KeyPair generateKeyPair() { in generateKeyPair() 59 return new KeyPair(pubKey, privKey); in generateKeyPair()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLXDHKeyPairGenerator.java | 20 import java.security.KeyPair; 38 public KeyPair generateKeyPair() { in generateKeyPair() 44 …return new KeyPair(new OpenSSLX25519PublicKey(publicKeyBytes), new OpenSSLX25519PrivateKey(private… in generateKeyPair()
|
D | OpenSSLRSAKeyPairGenerator.java | 21 import java.security.KeyPair; 48 public KeyPair generateKeyPair() { in generateKeyPair() 55 return new KeyPair(pubKey, privKey); in generateKeyPair()
|
/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
D | DhTest.java | 24 import java.security.KeyPair; 200 KeyPair keyPairA = keyGen.generateKeyPair(); in testDh() 201 KeyPair keyPairB = keyGen.generateKeyPair(); in testDh() 251 public void testKeyPair(KeyPair keyPair, int expectedKeySize) throws Exception { in testKeyPair() 329 KeyPair keyPair = keyGen.generateKeyPair(); in testKeyPairGenerator() 338 KeyPair keyPairA = keyGen.generateKeyPair(); in testDHDistinctParameters() 341 KeyPair keyPairB = keyGen.generateKeyPair(); in testDHDistinctParameters()
|
D | EciesTest.java | 21 import java.security.KeyPair; 77 KeyPair keyPair = kf.generateKeyPair(); in testEciesBasic() 140 KeyPair keyPair = kf.generateKeyPair(); in testKeyGeneration() 169 KeyPair keyPair = kf.generateKeyPair(); in testExceptions() 206 KeyPair keyPair = kf.generateKeyPair(); in testModifyPoint() 246 KeyPair keyPair = kf.generateKeyPair(); in testNotEcb() 284 KeyPair keyPair = kf.generateKeyPair(); in testIsAlias()
|