/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | MacTest.java | 348 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 …]
|
D | CipherTest.java | 355 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 …]
|
D | NullCipherTest.java | 147 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()
|
D | EncryptedPrivateKeyInfoTest.java | 1671 ct = c.doFinal(privateKeyInfo); in TestDataGenerator()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | CipherSymmetricKeyThread.java | 57 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()
|
D | MacThread.java | 44 byte[] res = m.doFinal(src1); in test() 47 res = m.doFinal(src2); in test() 50 res = m.doFinal(src3); in test()
|
D | CipherRSAThread.java | 43 cip.doFinal(input, 0, input.length, output); in crypt() 46 cip.doFinal(output, 0, outputSize, decrypted); in crypt()
|
D | CipherPBEThread.java | 53 cip.doFinal(input, 0, input.length, output); in crypt() 56 cip.doFinal(output, 0, outputSize, decrypted); in crypt()
|
/libcore/ojluni/annotations/mmodule/javax/crypto/ |
D | Cipher.annotated.java | 95 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
|
D | Mac.annotated.java | 69 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/ |
D | Mac.java | 666 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()
|
D | SealedObject.java | 170 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()
|
D | CipherInputStream.java | 130 ofinish = cipher.doFinal(obuffer, 0); in getMoreData() 331 cipher.doFinal(); in close()
|
D | Cipher.java | 1952 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
|
D | EncryptedPrivateKeyInfo.java | 250 encoded = cipher.doFinal(encryptedData); in getKeySpec() 274 encoded = c.doFinal(encryptedData); in getKeySpecImpl()
|
D | CipherOutputStream.java | 210 obuffer = cipher.doFinal(); in close()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CipherBenchmark.java | 136 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/ |
D | KeyStorePkcs7FormatTest.java | 148 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/ |
D | DigestTest.java | 74 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/ |
D | AlgorithmParametersTestPBES2.java | 213 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/ |
D | MacTest.java | 138 byte[] bcResult = mac.doFinal(plaintext); in test_PBEWITHHMACSHA_Variants()
|
D | CipherOutputStreamTest.java | 64 byte[] encrypted = cipher.doFinal(unencrypted); in testDecryptCorruptGCM()
|
D | CipherTest.java | 675 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()
|
D | CipherInputStreamTest.java | 321 byte[] encrypted = cipher.doFinal(unencrypted); in testDecryptCorruptGCM()
|
/libcore/ojluni/src/main/java/java/security/ |
D | Signature.java | 1532 return cipher.doFinal(); in engineSign() 1543 byte[] out = cipher.doFinal(sigBytes); in engineVerify()
|