/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | MacTest.java | 339 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 …]
|
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/luni/src/test/java/libcore/javax/crypto/ |
D | CipherTest.java | 1339 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/ |
D | CipherHelper.java | 45 byte[] encrypted = cipher.doFinal(plainData.getBytes()); in test() 48 byte[] decrypted = cipher.doFinal(encrypted); in test()
|
D | AlgorithmParameterAsymmetricHelper.java | 49 byte[] bs = cipher.doFinal(plainData.getBytes()); in test() 52 byte[] decrypted = cipher.doFinal(bs); in test()
|
D | AlgorithmParameterSymmetricHelper.java | 63 byte[] bs = cipher.doFinal(plainData.getBytes()); in test() 66 byte[] decrypted = cipher.doFinal(bs); in test()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | Mac.java | 575 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()
|
D | CipherInputStream.java | 107 obuffer = cipher.doFinal(); in getMoreData() 299 cipher.doFinal(); in close()
|
D | SealedObject.java | 172 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()
|
D | CipherOutputStream.java | 202 obuffer = cipher.doFinal(); in close()
|
D | Cipher.java | 1934 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
|
D | EncryptedPrivateKeyInfo.java | 250 encoded = cipher.doFinal((byte[])encryptedData); in getKeySpec() 287 encoded = c.doFinal(encryptedData); in getKeySpecImpl()
|
/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()
|
D | DigestBenchmark.java | 63 digest.doFinal(new byte[digest.getDigestSize()], 0); in time()
|
/libcore/luni/src/test/java/com/android/org/bouncycastle/crypto/digests/ |
D | DigestTest.java | 67 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/ |
D | MAC.java | 252 return mac.doFinal(); in compute()
|
D | CipherBox.java | 768 cipher.doFinal(); in dispose()
|
/libcore/ojluni/src/main/java/java/security/ |
D | Signature.java | 1367 return cipher.doFinal(); in engineSign() 1378 byte[] out = cipher.doFinal(sigBytes); in engineVerify()
|