Searched refs:keyPair (Results 1 – 9 of 9) sorted by relevance
/libcore/luni/src/test/java/libcore/java/security/ |
D | OldKeyPairGeneratorTestDH.java | 30 KeyPair keyPair = generator.generateKeyPair(); in testKeyPairGenerator() local 32 assertNotNull("no keypair generated", keyPair); in testKeyPairGenerator() 33 assertNotNull("no public key generated", keyPair.getPublic()); in testKeyPairGenerator() 34 assertNotNull("no private key generated", keyPair.getPrivate()); in testKeyPairGenerator() 36 new KeyAgreementHelper("DH").test(keyPair); in testKeyPairGenerator()
|
D | KeyAgreementHelper.java | 33 public void test(KeyPair keyPair) throws Exception { in test() argument 34 test(keyPair.getPrivate(), keyPair.getPublic()); in test()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyPairGenerator4Test.java | 90 KeyPairGenerator keyPair = KeyPairGenerator.getInstance("DSA"); in test_initializeI() local 91 keyPair.initialize(1024); in test_initializeI() 99 KeyPairGenerator keyPair = KeyPairGenerator.getInstance("DSA"); in test_initializeILjava_security_SecureRandom() local 100 keyPair.initialize(1024, new SecureRandom()); in test_initializeILjava_security_SecureRandom() 116 KeyPairGenerator keyPair = KeyPairGenerator.getInstance("DSA"); in test_initializeLjava_security_spec_AlgorithmParameterSpec() local 117 keyPair.initialize(new DSAParameterSpec(params.getP(), params.getQ(), in test_initializeLjava_security_spec_AlgorithmParameterSpec() 134 KeyPairGenerator keyPair = KeyPairGenerator.getInstance("DSA"); in test_initializeLjava_security_spec_AlgorithmParameterSpecLjava_security_SecureRandom() local 135 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 | 47 private KeyPair keyPair; field in KeyStore3Test 83 Key key = keyPair.getPrivate(); in test_setKeyEntry_key_is_private() 105 Key key = keyPair.getPublic(); in test_setKeyEntry_key_is_public() 147 keyPair = keyPairGenerator.generateKeyPair(); in setUp()
|
D | KeyStore2Test.java | 63 KeyPair keyPair = keyPairGenerator.genKeyPair(); in getPrivateKey() local 64 PRIVATE_KEY = keyPair.getPrivate(); in getPrivateKey()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SignatureBenchmark.java | 72 KeyPair keyPair = KEY_PAIRS.get(keyAlgorithm); in setUp() local 73 if (keyPair == null) { in setUp() 75 keyPair = generator.generateKeyPair(); in setUp() 76 KEY_PAIRS.put(keyAlgorithm, keyPair); in setUp() 78 this.privateKey = keyPair.getPrivate(); in setUp() 79 this.publicKey = keyPair.getPublic(); in setUp() 84 signer.initSign(keyPair.getPrivate()); in setUp()
|
D | KeyPairGeneratorBenchmark.java | 59 KeyPair keyPair = generator.generateKeyPair(); in time() local
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
D | DSAPrivateKeyTest.java | 36 KeyPair keyPair = keyGen.generateKeyPair(); in test_getX() local 37 DSAPrivateKey key = (DSAPrivateKey) keyPair.getPrivate(); in test_getX()
|