Home
last modified time | relevance | path

Searched refs:ap (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DAlgorithmParametersTest.java77 AlgorithmParameters ap = new DummyAlgorithmParameters(null, p, null); in test_getAlgorithm() local
78 assertNull(ap.getAlgorithm()); in test_getAlgorithm()
81 ap = new DummyAlgorithmParameters(null, p, "AAA"); in test_getAlgorithm()
82 assertEquals("AAA", ap.getAlgorithm()); in test_getAlgorithm()
175 AlgorithmParameters ap = AlgorithmParameters.getInstance("ABC"); in test_getInstanceLjava_lang_String() local
176 checkUnititialized(ap); in test_getInstanceLjava_lang_String()
177 ap.init(new MyAlgorithmParameterSpec()); in test_getInstanceLjava_lang_String()
178 checkAP(ap, p); in test_getInstanceLjava_lang_String()
185 AlgorithmParameters ap = AlgorithmParameters.getInstance(str[i]); in test_getInstanceLjava_lang_String() local
201 AlgorithmParameters ap = AlgorithmParameters.getInstance("ABC", "MyProvider"); in test_getInstanceLjava_lang_StringLjava_lang_String() local
[all …]
DAlgorithmParameterGenerator1Test.java316 AlgorithmParameters ap = apg.generateParameters(); in testAlgorithmParameterGenerator10() local
317 assertEquals("Incorrect algorithm", ap.getAlgorithm().toUpperCase(), in testAlgorithmParameterGenerator10()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java266 AlgorithmParameterSpec ap = new IvParameterSpec(IV); in test_initWithAlgorithmParameterSpec() local
269 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap); in test_initWithAlgorithmParameterSpec()
275 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap); in test_initWithAlgorithmParameterSpec()
281 ap = new RSAKeyGenParameterSpec(10, new BigInteger("10")); in test_initWithAlgorithmParameterSpec()
283 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_DES, ap); in test_initWithAlgorithmParameterSpec()
295 AlgorithmParameterSpec ap = new IvParameterSpec(IV); in test_initWithKeyAlgorithmParameterSpecSecureRandom() local
298 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap, new SecureRandom()); in test_initWithKeyAlgorithmParameterSpecSecureRandom()
304 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap, new SecureRandom()); in test_initWithKeyAlgorithmParameterSpecSecureRandom()
310 ap = new RSAKeyGenParameterSpec(10, new BigInteger("10")); in test_initWithKeyAlgorithmParameterSpecSecureRandom()
313 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_DES, ap, new SecureRandom()); in test_initWithKeyAlgorithmParameterSpecSecureRandom()
[all …]
DEncryptedPrivateKeyInfoTest.java207 if (g.ap() == null) { in test_getAlgName()
210 epki = new EncryptedPrivateKeyInfo(g.ap(), g.ct()); in test_getAlgName()
552 AlgorithmParameters ap = null; in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray1() local
557 ap = AlgorithmParameters in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray1()
560 ap.init(EncryptedPrivateKeyInfoData.getParametersEncoding( in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray1()
563 new EncryptedPrivateKeyInfo(ap, in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray1()
572 ap = new Mock_AlgorithmParameters(null, null, "Wrong alg name"); in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray1()
575 new EncryptedPrivateKeyInfo(ap, in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray1()
609 AlgorithmParameters ap = AlgorithmParameters.getInstance("DSA"); in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray2() local
611 ap.init(EncryptedPrivateKeyInfoData.getParametersEncoding("DSA")); in testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray2()
[all …]
/libcore/luni/src/main/java/javax/crypto/
DSealedObject.java109 AlgorithmParameters ap = c.getParameters(); in SealedObject() local
110 this.encodedParams = (ap == null) ? null : ap.getEncoded(); in SealedObject()
111 this.paramsAlg = (ap == null) ? null : ap.getAlgorithm(); in SealedObject()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DKeyAgreementThread.java71 AlgorithmParameters ap = apg.generateParameters(); in test() local
72 DHParameterSpec ps = ap.getParameterSpec(DHParameterSpec.class); in test()
/libcore/luni/src/test/java/libcore/java/util/prefs/
DOldAbstractPreferencesTest.java179 AbstractPreferences ap = (AbstractPreferences) pref.node("New node"); in testClear() local
201 ap.clear(); in testClear()
976 AbstractPreferences ap = (AbstractPreferences) pref.node("New node"); in testExportNode() local
/libcore/luni/src/test/resources/
Dmath_tests.csv146 tan,0x1.200000000007ap-22,0x1.2p-22
147 tan,-0x1.200000000007ap-22,-0x1.2p-22
463 tan,0x1.999999f0fb38cp-13,0x1.999999999999ap-13
464 tan,-0x1.999999f0fb38cp-13,-0x1.999999999999ap-13
465 tan,0x1.99999af720174p-12,0x1.999999999999ap-12
466 tan,-0x1.99999af720174p-12,-0x1.999999999999ap-12
469 tan,0x1.99999f0fb3a1p-11,0x1.999999999999ap-11
470 tan,-0x1.99999f0fb3a1p-11,-0x1.999999999999ap-11
491 tan,0x1.39c0d6dea66fbp-5,0x1.399999999999ap-5
492 tan,-0x1.39c0d6dea66fbp-5,-0x1.399999999999ap-5
[all …]