Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/javax/crypto/spec/
DAlgorithmParametersTestPBES2.java169 AlgorithmParameters ap = AlgorithmParameters.getInstance( in testGetEncoded_knownAnswers() local
171 ap.init(TEST_PBE_PARAMETER_SPEC); in testGetEncoded_knownAnswers()
174 Arrays.toString(ap.getEncoded())); in testGetEncoded_knownAnswers()
181 AlgorithmParameters ap = AlgorithmParameters.getInstance( in test_encodeAndDecode() local
183 ap.init(TEST_PBE_PARAMETER_SPEC); in test_encodeAndDecode()
186 ap2.init(ap.getEncoded()); in test_encodeAndDecode()
206 AlgorithmParameters ap = AlgorithmParameters.getInstance(algorithmName, "BC"); in test_encryptWithAlgorithmParameters() local
207 ap.init(TEST_PBE_PARAMETER_SPEC); in test_encryptWithAlgorithmParameters()
212 c.init(Cipher.ENCRYPT_MODE, key, ap); in test_encryptWithAlgorithmParameters()
217 c.init(Cipher.DECRYPT_MODE, key, ap); in test_encryptWithAlgorithmParameters()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DAlgorithmParametersTest.java77 AlgorithmParameters ap = new FakeAlgorithmParameters(null, p, null); in test_getAlgorithm() local
78 assertNull(ap.getAlgorithm()); in test_getAlgorithm()
81 ap = new FakeAlgorithmParameters(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/test/java/libcore/javax/crypto/
DMockCipherSpi.java81 public void checkAlgorithmParameters(AlgorithmParameters ap) in checkAlgorithmParameters() argument
83 if (!ap.getAlgorithm().equals("AES")) { in checkAlgorithmParameters()
91 public void checkAlgorithmParameters(AlgorithmParameters ap) in checkAlgorithmParameters() argument
93 if ((!ap.getAlgorithm().equals("DES"))) { in checkAlgorithmParameters()
195 public void checkAlgorithmParameters(AlgorithmParameters ap) in checkAlgorithmParameters() argument
/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/
DBase64Test.java919 int ap = 0; in checkRoundTrip_wrapInputStream() local
920 while ((b = b64is.read(actual, ap, actual.length - ap)) != -1) { in checkRoundTrip_wrapInputStream()
921 ap += b; in checkRoundTrip_wrapInputStream()
923 assertArrayPrefixEquals(actual, ap, plain); in checkRoundTrip_wrapInputStream()
928 ap = 0; in checkRoundTrip_wrapInputStream()
930 actual[ap++] = (byte) b; in checkRoundTrip_wrapInputStream()
932 assertArrayPrefixEquals(actual, ap, plain); in checkRoundTrip_wrapInputStream()
937 ap = 0; in checkRoundTrip_wrapInputStream()
941 b = b64is.read(actual, ap, l); in checkRoundTrip_wrapInputStream()
945 ap += b; in checkRoundTrip_wrapInputStream()
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java387 long ap = fieldValues.remove(AMPM_OF_DAY); in resolveTimeFields() local
390 … updateCheckConflict(AMPM_OF_DAY, HOUR_OF_DAY, Math.addExact(Math.multiplyExact(ap, 12), hap)); in resolveTimeFields()
392 AMPM_OF_DAY.checkValidValue(ap); in resolveTimeFields()
393 HOUR_OF_AMPM.checkValidValue(ap); in resolveTimeFields()
394 updateCheckConflict(AMPM_OF_DAY, HOUR_OF_DAY, ap * 12 + hap); in resolveTimeFields()
/libcore/ojluni/src/main/native/
DUNIXProcess_md.c534 va_list ap; in debugPrint() local
535 va_start(ap, format); in debugPrint()
536 vfprintf(tty, format, ap); in debugPrint()
537 va_end(ap); in debugPrint()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DOpTestCase.java545 AbstractPipeline ap = (AbstractPipeline) out; in exercise() local
546 boolean isOrdered = StreamOpFlag.ORDERED.isKnown(ap.getStreamFlags()); in exercise()
547 StreamShape shape = ap.getOutputShape(); in exercise()
551 Node<U> node = ap.evaluateToArrayNode(size -> (U[]) new Object[size]); in exercise()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DOpTestCase.java546 AbstractPipeline ap = (AbstractPipeline) out; in exercise() local
547 boolean isOrdered = StreamOpFlag.ORDERED.isKnown(ap.getStreamFlags()); in exercise()
548 StreamShape shape = ap.getOutputShape(); in exercise()
552 Node<U> node = ap.evaluateToArrayNode(size -> (U[]) new Object[size]); in exercise()
/libcore/luni/src/test/java/libcore/java/util/prefs/
DOldAbstractPreferencesTest.java186 AbstractPreferences ap = (AbstractPreferences) pref.node("New node"); in testClear() local
208 ap.clear(); in testClear()
989 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 …]