Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DMacTest.java348 macs[i].doFinal(); in testMac09()
353 macs[i].doFinal(new byte[10]); in testMac09()
358 macs[i].doFinal(new byte[10], 0); in testMac09()
365 macs[i].doFinal(new byte[1], 0); in testMac09()
391 macs[i].doFinal(null, 10); in testMac10()
396 macs[i].doFinal(byteA, -4); in testMac10()
401 macs[i].doFinal(byteA, 10); in testMac10()
406 macs[i].doFinal(new byte[1], 0); in testMac10()
410 byte[] res = macs[i].doFinal(); in testMac10()
412 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/ojluni/annotations/mmodule/javax/crypto/
DCipher.annotated.java95 public final byte[] doFinal() throws javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSiz… in doFinal() method in Cipher
97 public final int doFinal(byte[] output, int outputOffset) throws javax.crypto.BadPaddingException, … in doFinal() method in Cipher
99 public final byte[] doFinal(byte[] input) throws javax.crypto.BadPaddingException, javax.crypto.Ill… in doFinal() method in Cipher
101 public final byte[] doFinal(byte[] input, int inputOffset, int inputLen) throws javax.crypto.BadPad… in doFinal() method in Cipher
103 public final int doFinal(byte[] input, int inputOffset, int inputLen, byte[] output) throws javax.c… in doFinal() method in Cipher
105 public final int doFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffs… in doFinal() method in Cipher
107 public final int doFinal(java.nio.ByteBuffer input, java.nio.ByteBuffer output) throws javax.crypto… in doFinal() method in Cipher
DMac.annotated.java69 public final byte[] doFinal() throws java.lang.IllegalStateException { throw new RuntimeException("… in doFinal() method in Mac
71 public final void doFinal(byte[] output, int outOffset) throws java.lang.IllegalStateException, jav… in doFinal() method in Mac
73 public final byte[] doFinal(byte[] input) throws java.lang.IllegalStateException { throw new Runtim… in doFinal() method in Mac
/libcore/ojluni/src/main/java/javax/crypto/
DMac.java666 public final byte[] doFinal() throws IllegalStateException { in doFinal() method in Mac
702 public final void doFinal(byte[] output, int outOffset) in doFinal() method in Mac
714 byte[] mac = doFinal(); in doFinal()
739 public final byte[] doFinal(byte[] input) throws IllegalStateException in doFinal() method in Mac
746 return doFinal(); in doFinal()
DSealedObject.java170 this.encryptedContent = c.doFinal(content); in SealedObject()
293 byte[] content = c.doFinal(this.encryptedContent); in getObject()
423 byte[] content = c.doFinal(this.encryptedContent); in unseal()
DCipherInputStream.java130 ofinish = cipher.doFinal(obuffer, 0); in getMoreData()
331 cipher.doFinal(); in close()
DCipher.java1952 public final byte[] doFinal() in doFinal() method in Cipher
2010 public final int doFinal(byte[] output, int outputOffset) in doFinal() method in Cipher
2064 public final byte[] doFinal(byte[] input) in doFinal() method in Cipher
2121 public final byte[] doFinal(byte[] input, int inputOffset, int inputLen) in doFinal() method in Cipher
2193 public final int doFinal(byte[] input, int inputOffset, int inputLen, in doFinal() method in Cipher
2272 public final int doFinal(byte[] input, int inputOffset, int inputLen, in doFinal() method in Cipher
2352 public final int doFinal(ByteBuffer input, ByteBuffer output) in doFinal() method in Cipher
DEncryptedPrivateKeyInfo.java250 encoded = cipher.doFinal(encryptedData); in getKeySpec()
274 encoded = c.doFinal(encryptedData); in getKeySpecImpl()
DCipherOutputStream.java210 obuffer = cipher.doFinal(); in close()
/libcore/benchmarks/src/benchmarks/regression/
DCipherBenchmark.java136 cipherEncrypt.doFinal(DATA, 0, inputSize, output); in timeEncrypt()
142 cipherDecrypt.doFinal(DATA, 0, inputSize, output); in timeDecrypt()
/libcore/luni/src/test/java/tests/targets/security/
DKeyStorePkcs7FormatTest.java148 byte[] encrypted = cipher.doFinal(original); in keystoreIsReadableAndConsistent()
151 byte[] decrypted = cipher.doFinal(encrypted); in keystoreIsReadableAndConsistent()
/libcore/luni/src/test/java/tests/com/android/org/bouncycastle/crypto/digests/
DDigestTest.java74 int oldLength = oldDigest.doFinal(oldHash, 0); in doTestMessageDigest()
85 int newLength = newDigest.doFinal(newHash, 0); in doTestMessageDigest()
/libcore/luni/src/test/java/libcore/javax/crypto/spec/
DAlgorithmParametersTestPBES2.java213 byte[] encrypted = c.doFinal(plaintext); in test_encryptWithAlgorithmParameters()
218 byte[] decrypted = c.doFinal(encrypted); in test_encryptWithAlgorithmParameters()
/libcore/luni/src/test/java/libcore/javax/crypto/
DMacTest.java138 byte[] bcResult = mac.doFinal(plaintext); in test_PBEWITHHMACSHA_Variants()
DCipherOutputStreamTest.java64 byte[] encrypted = cipher.doFinal(unencrypted); in testDecryptCorruptGCM()
DCipherTest.java675 assertEquals(Arrays.toString(ciphertext), Arrays.toString(cipher.doFinal(plaintext))); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_withIV()
679 assertEquals(Arrays.toString(plaintext), Arrays.toString(cipher.doFinal(ciphertext))); in test_PBKDF2WITHHMACSHA1_SKFactory_and_PBEAESCBC_Cipher_withIV()
DCipherInputStreamTest.java321 byte[] encrypted = cipher.doFinal(unencrypted); in testDecryptCorruptGCM()
/libcore/ojluni/src/main/java/java/security/
DSignature.java1532 return cipher.doFinal(); in engineSign()
1543 byte[] out = cipher.doFinal(sigBytes); in engineVerify()

12