Home
last modified time | relevance | path

Searched refs:doFinal (Results 1 – 24 of 24) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DMacTest.java339 macs[i].doFinal(); in testMac09()
344 macs[i].doFinal(new byte[10]); in testMac09()
349 macs[i].doFinal(new byte[10], 0); in testMac09()
356 macs[i].doFinal(new byte[1], 0); in testMac09()
382 macs[i].doFinal(null, 10); in testMac10()
387 macs[i].doFinal(byteA, -4); in testMac10()
392 macs[i].doFinal(byteA, 10); in testMac10()
397 macs[i].doFinal(new byte[1], 0); in testMac10()
401 byte[] res = macs[i].doFinal(); in testMac10()
403 macs[i].doFinal(new byte[res.length - 1], 0); in testMac10()
[all …]
DCipherTest.java355 byte[] output = c.doFinal(); in test_update$BII()
412 byte[] output = c.doFinal(); in test_doFinal()
433 c.doFinal(); in test_doFinal()
440 c.doFinal(); in test_doFinal()
447 int len = c.doFinal(b, 0, 16, b1, 0); in test_doFinal()
456 c.doFinal(); in test_doFinal()
518 c.doFinal(b, 0, 10, b1, 5); in testDoFinalbyteArrayintintbyteArrayint()
525 c.doFinal(b, 0, 10, b1, 5); in testDoFinalbyteArrayintintbyteArrayint()
532 int len = c.doFinal(b, 0, 16, b1, 0); in testDoFinalbyteArrayintintbyteArrayint()
538 c.doFinal(b1, 0, 24, new byte[42], 0); in testDoFinalbyteArrayintintbyteArrayint()
[all …]
DNullCipherTest.java147 assertNull("doFinal failed", c.doFinal()); in testDoFinal()
155 assertEquals("doFinal failed", 0, c.doFinal(r, 0)); in testDoFinalbyteArrayint()
164 r = c.doFinal(b); in testDoFinalbyteArray()
175 r = c.doFinal(b, 0, 5); in testDoFinalbyteArrayintint()
179 r = c.doFinal(b, 1, 3); in testDoFinalbyteArrayintint()
204 c.doFinal(b, 0, 5, r); in testDoFinalbyteArrayintintbyteArray()
239 c.doFinal(b, 0, 5, r, 0); in testDoFinalbyteArrayintintbyteArrayint()
DEncryptedPrivateKeyInfoTest.java1671 ct = c.doFinal(privateKeyInfo); in TestDataGenerator()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherSymmetricKeyThread.java57 cip.doFinal(input, 0, input.length, output); in crypt()
62 cip.doFinal(output, 0, outputSize, decrypted); in crypt()
65 cip.doFinal(input, 0, input.length, output); in crypt()
68 cip.doFinal(output, 0, outputSize, decrypted); in crypt()
DMacThread.java44 byte[] res = m.doFinal(src1); in test()
47 res = m.doFinal(src2); in test()
50 res = m.doFinal(src3); in test()
DCipherRSAThread.java43 cip.doFinal(input, 0, input.length, output); in crypt()
46 cip.doFinal(output, 0, outputSize, decrypted); in crypt()
DCipherPBEThread.java53 cip.doFinal(input, 0, input.length, output); in crypt()
56 cip.doFinal(output, 0, outputSize, decrypted); in crypt()
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherTest.java1339 c.doFinal(new byte[1]).length); in test_Cipher()
1486 byte[] cipherText = c.doFinal(getActualPlainText(algorithm)); in test_Cipher()
1490 byte[] cipherText2 = c.doFinal(getActualPlainText(algorithm)); in test_Cipher()
1498 byte[] decryptedPlainText = c.doFinal(cipherText); in test_Cipher()
1505 byte[] decryptedPlainText2 = c.doFinal(cipherText); in test_Cipher()
1622 byte[] cipherText = encryptCipher.doFinal(prePaddedPlainText); in testInputPKCS1Padding()
1625 byte[] cipherText2 = encryptCipher.doFinal(prePaddedPlainText); in testInputPKCS1Padding()
1631 byte[] plainText = decryptCipher.doFinal(cipherText); in testInputPKCS1Padding()
1636 byte[] plainText2 = decryptCipher.doFinal(cipherText); in testInputPKCS1Padding()
1655 byte[] cipherText = encryptCipher.doFinal(ORIGINAL_PLAIN_TEXT); in testOutputPKCS1Padding()
[all …]
/libcore/support/src/test/java/tests/security/
DCipherHelper.java45 byte[] encrypted = cipher.doFinal(plainData.getBytes()); in test()
48 byte[] decrypted = cipher.doFinal(encrypted); in test()
DAlgorithmParameterAsymmetricHelper.java49 byte[] bs = cipher.doFinal(plainData.getBytes()); in test()
52 byte[] decrypted = cipher.doFinal(bs); in test()
DAlgorithmParameterSymmetricHelper.java63 byte[] bs = cipher.doFinal(plainData.getBytes()); in test()
66 byte[] decrypted = cipher.doFinal(bs); in test()
/libcore/ojluni/src/main/java/javax/crypto/
DMac.java575 public final byte[] doFinal() throws IllegalStateException { in doFinal() method in Mac
611 public final void doFinal(byte[] output, int outOffset) in doFinal() method in Mac
623 byte[] mac = doFinal(); in doFinal()
648 public final byte[] doFinal(byte[] input) throws IllegalStateException in doFinal() method in Mac
655 return doFinal(); in doFinal()
DCipherInputStream.java107 obuffer = cipher.doFinal(); in getMoreData()
299 cipher.doFinal(); in close()
DSealedObject.java172 this.encryptedContent = c.doFinal(content); in SealedObject()
295 byte[] content = c.doFinal(this.encryptedContent); in getObject()
427 byte[] content = c.doFinal(this.encryptedContent); in unseal()
DCipherOutputStream.java202 obuffer = cipher.doFinal(); in close()
DCipher.java1934 public final byte[] doFinal() in doFinal() method in Cipher
1992 public final int doFinal(byte[] output, int outputOffset) in doFinal() method in Cipher
2046 public final byte[] doFinal(byte[] input) in doFinal() method in Cipher
2103 public final byte[] doFinal(byte[] input, int inputOffset, int inputLen) in doFinal() method in Cipher
2175 public final int doFinal(byte[] input, int inputOffset, int inputLen, in doFinal() method in Cipher
2254 public final int doFinal(byte[] input, int inputOffset, int inputLen, in doFinal() method in Cipher
2334 public final int doFinal(ByteBuffer input, ByteBuffer output) in doFinal() method in Cipher
DEncryptedPrivateKeyInfo.java250 encoded = cipher.doFinal((byte[])encryptedData); in getKeySpec()
287 encoded = c.doFinal(encryptedData); in getKeySpecImpl()
/libcore/benchmarks/src/benchmarks/regression/
DCipherBenchmark.java136 cipherEncrypt.doFinal(DATA, 0, inputSize, output); in timeEncrypt()
142 cipherDecrypt.doFinal(DATA, 0, inputSize, output); in timeDecrypt()
DDigestBenchmark.java63 digest.doFinal(new byte[digest.getDigestSize()], 0); in time()
/libcore/luni/src/test/java/com/android/org/bouncycastle/crypto/digests/
DDigestTest.java67 int oldLength = oldDigest.doFinal(oldHash, 0); in doTestMessageDigest()
78 int newLength = newDigest.doFinal(newHash, 0); in doTestMessageDigest()
/libcore/ojluni/src/main/java/sun/security/ssl/
DMAC.java252 return mac.doFinal(); in compute()
DCipherBox.java768 cipher.doFinal(); in dispose()
/libcore/ojluni/src/main/java/java/security/
DSignature.java1367 return cipher.doFinal(); in engineSign()
1378 byte[] out = cipher.doFinal(sigBytes); in engineVerify()