Home
last modified time | relevance | path

Searched refs:privKey (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyAgreementTest.java75 private static PrivateKey privKey = null; field in KeyAgreementTest
91 privKey = tkp.getPrivate(); in createKeys()
325 kAgs[i].init(privKey); in testGenerateSecret03()
328 kAgs[i].init(privKey); in testGenerateSecret03()
332 kAgs[i].init(privKey); in testGenerateSecret03()
349 DHParameterSpec dhPs = ((DHPrivateKey) privKey).getParams(); in testDoPhase()
361 kAgs[i].init(privKey); in testDoPhase()
364 kAgs[i].doPhase(privKey, false); in testDoPhase()
370 kAgs[i].doPhase(privKey, true); in testDoPhase()
375 kAgs[i].init(privKey, dhPs); in testDoPhase()
[all …]
/libcore/luni/src/test/java/libcore/java/security/
DSignatureTest.java929 PrivateKey privKey = kf.generatePrivate(privKeySpec); in testVerify_SHA1withRSA_Key_InitSignThenInitVerify_Success() local
934 sig.initSign(privKey); in testVerify_SHA1withRSA_Key_InitSignThenInitVerify_Success()
980 final PrivateKey privKey; in testSign_SHA1withRSA_CrtKeyWithPublicExponent_Success() local
982 privKey = kf.generatePrivate(keySpec); in testSign_SHA1withRSA_CrtKeyWithPublicExponent_Success()
993 sig.initSign(privKey); in testSign_SHA1withRSA_CrtKeyWithPublicExponent_Success()
1015 final PrivateKey privKey; in testSign_SHA1withRSA_CrtKey_NoPrivateExponent_Failure() local
1017 privKey = kf.generatePrivate(keySpec); in testSign_SHA1withRSA_CrtKey_NoPrivateExponent_Failure()
1027 sig.initSign(privKey); in testSign_SHA1withRSA_CrtKey_NoPrivateExponent_Failure()
1039 final PrivateKey privKey; in testSign_SHA1withRSA_CrtKey_NoModulus_Failure() local
1041 privKey = kf.generatePrivate(keySpec); in testSign_SHA1withRSA_CrtKey_NoModulus_Failure()
[all …]
DKeyPairGeneratorTest.java321 PrivateKey privKey = kf.generatePrivate(spec); in test_KeyWithAllKeyFactories() local
322 assertNotNull(k.getAlgorithm() + ", provider=" + p.getName(), privKey); in test_KeyWithAllKeyFactories() local
329 assertECPrivateKeyEquals((ECPrivateKey) k, (ECPrivateKey) privKey); in test_KeyWithAllKeyFactories()
333 Arrays.toString(privKey.getEncoded())); in test_KeyWithAllKeyFactories()
428 DSAPrivateKey privKey = (DSAPrivateKey) pair.getPrivate(); in testDSAGeneratorWithParams() local
431 DSAParams actualParams = privKey.getParams(); in testDSAGeneratorWithParams()
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherTest.java1796 final PrivateKey privKey = kf.generatePrivate(keySpec); in testRSA_ECB_NoPadding_Private_OnlyDoFinal_Success() local
1805 c.init(Cipher.ENCRYPT_MODE, privKey); in testRSA_ECB_NoPadding_Private_OnlyDoFinal_Success()
1810 c.init(Cipher.DECRYPT_MODE, privKey); in testRSA_ECB_NoPadding_Private_OnlyDoFinal_Success()
1827 final PrivateKey privKey = kf.generatePrivate(keySpec); in testRSA_ECB_NoPadding_Private_UpdateThenEmptyDoFinal_Success() local
1836 c.init(Cipher.ENCRYPT_MODE, privKey); in testRSA_ECB_NoPadding_Private_UpdateThenEmptyDoFinal_Success()
1842 c.init(Cipher.DECRYPT_MODE, privKey); in testRSA_ECB_NoPadding_Private_UpdateThenEmptyDoFinal_Success()
1862 final PrivateKey privKey = kf.generatePrivate(keySpec); in testRSA_ECB_NoPadding_Private_SingleByteUpdateThenEmptyDoFinal_Success() local
1871 c.init(Cipher.ENCRYPT_MODE, privKey); in testRSA_ECB_NoPadding_Private_SingleByteUpdateThenEmptyDoFinal_Success()
1880 c.init(Cipher.DECRYPT_MODE, privKey); in testRSA_ECB_NoPadding_Private_SingleByteUpdateThenEmptyDoFinal_Success()
1899 final PrivateKey privKey = kf.generatePrivate(keySpec); in testRSA_ECB_NoPadding_Private_OnlyDoFinalWithOffset_Success() local
[all …]