Home
last modified time | relevance | path

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

12345678

/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/crypto/
DAeadCipherTest.java118 assertEquals(Arrays.toString(c1.doFinal()), Arrays.toString(c2.doFinal())); in testUpdateAAD_Twice()
150 byte[] c1Final = c1.doFinal(); in testUpdateAAD_ByteBuffer()
151 byte[] c2Final = c2.doFinal(); in testUpdateAAD_ByteBuffer()
152 byte[] c3Final = c3.doFinal(); in testUpdateAAD_ByteBuffer()
193 byte[] c1Final = c1.doFinal(); in testUpdateAAD_ByteBuffer_MultipleUpdates()
194 byte[] c2Final = c2.doFinal(); in testUpdateAAD_ByteBuffer_MultipleUpdates()
195 byte[] c3Final = c3.doFinal(); in testUpdateAAD_ByteBuffer_MultipleUpdates()
235 byte[] c1Final = c1.doFinal(); in testUpdateAAD_ByteBuffer_MixedCalls()
236 byte[] c2Final = c2.doFinal(); in testUpdateAAD_ByteBuffer_MixedCalls()
237 byte[] c3Final = c3.doFinal(); in testUpdateAAD_ByteBuffer_MixedCalls()
[all …]
DCipherTest.java1220 c.doFinal(new byte[1]).length); in test_Cipher()
1329 byte[] cipherText = c.doFinal(getActualPlainText(algorithm)); in test_Cipher()
1331 byte[] cipherText2 = c.doFinal(getActualPlainText(algorithm)); in test_Cipher()
1339 byte[] decryptedPlainText = c.doFinal(cipherText); in test_Cipher()
1346 byte[] decryptedPlainText2 = c.doFinal(cipherText); in test_Cipher()
1535 c.doFinal(text, 0, text.length, output); in test_Cipher_ShortBufferException()
1554 c.doFinal(text, 0, text.length, new byte[0]); in test_Cipher_aborted_doFinal()
1559 byte[] cipherText = c.doFinal(text); in test_Cipher_aborted_doFinal()
1564 byte[] plainText = c.doFinal(cipherText); in test_Cipher_aborted_doFinal()
1599 byte[] cipherText = encryptCipher.doFinal(prePaddedPlainText); in testInputPKCS1Padding()
[all …]
DCipherBasicsTest.java144 ciphertext, cipher.doFinal(plaintext)); in testBasicEncryption()
154 plaintext, cipher.doFinal(ciphertext)); in testBasicEncryption()
178 combinedOutput, cipher.doFinal(plaintext)); in arrayBasedAssessment()
189 plaintext, cipher.doFinal(combinedOutput)); in arrayBasedAssessment()
289 cipher.doFinal(plaintext, outputbuffer); in sharedBufferBasedAssessment()
306 cipher.doFinal(combinedOutput, outputbuffer); in sharedBufferBasedAssessment()
351 cipher.doFinal(plaintext, outputbuffer); in bufferBasedAssessment()
379 cipher.doFinal(combinedOutput, outputbuffer); in bufferBasedAssessment()
452 int ctSize = cipher.doFinal(inputRO, output); in testByteBufferShiftedAlias()
468 cipher.doFinal(inputRO, output); in testByteBufferShiftedAlias()
/external/conscrypt/common/src/test/java/org/conscrypt/javax/crypto/
DAeadCipherTest.java114 assertEquals(Arrays.toString(c1.doFinal()), Arrays.toString(c2.doFinal())); in testUpdateAAD_Twice()
146 byte[] c1Final = c1.doFinal(); in testUpdateAAD_ByteBuffer()
147 byte[] c2Final = c2.doFinal(); in testUpdateAAD_ByteBuffer()
148 byte[] c3Final = c3.doFinal(); in testUpdateAAD_ByteBuffer()
189 byte[] c1Final = c1.doFinal(); in testUpdateAAD_ByteBuffer_MultipleUpdates()
190 byte[] c2Final = c2.doFinal(); in testUpdateAAD_ByteBuffer_MultipleUpdates()
191 byte[] c3Final = c3.doFinal(); in testUpdateAAD_ByteBuffer_MultipleUpdates()
231 byte[] c1Final = c1.doFinal(); in testUpdateAAD_ByteBuffer_MixedCalls()
232 byte[] c2Final = c2.doFinal(); in testUpdateAAD_ByteBuffer_MixedCalls()
233 byte[] c3Final = c3.doFinal(); in testUpdateAAD_ByteBuffer_MixedCalls()
[all …]
DCipherTest.java1220 c.doFinal(new byte[1]).length); in test_Cipher()
1329 byte[] cipherText = c.doFinal(getActualPlainText(algorithm)); in test_Cipher()
1331 byte[] cipherText2 = c.doFinal(getActualPlainText(algorithm)); in test_Cipher()
1339 byte[] decryptedPlainText = c.doFinal(cipherText); in test_Cipher()
1346 byte[] decryptedPlainText2 = c.doFinal(cipherText); in test_Cipher()
1535 c.doFinal(text, 0, text.length, output); in test_Cipher_ShortBufferException()
1554 c.doFinal(text, 0, text.length, new byte[0]); in test_Cipher_aborted_doFinal()
1559 byte[] cipherText = c.doFinal(text); in test_Cipher_aborted_doFinal()
1564 byte[] plainText = c.doFinal(cipherText); in test_Cipher_aborted_doFinal()
1599 byte[] cipherText = encryptCipher.doFinal(prePaddedPlainText); in testInputPKCS1Padding()
[all …]
DCipherBasicsTest.java143 ciphertext, cipher.doFinal(plaintext)); in testBasicEncryption()
153 plaintext, cipher.doFinal(ciphertext)); in testBasicEncryption()
179 combinedOutput, cipher.doFinal(plaintext)); in arrayBasedAssessment()
192 plaintext, cipher.doFinal(combinedOutput)); in arrayBasedAssessment()
291 cipher.doFinal(plaintext, outputbuffer); in sharedBufferBasedAssessment()
309 cipher.doFinal(combinedOutput, outputbuffer); in sharedBufferBasedAssessment()
355 cipher.doFinal(plaintext, outputbuffer); in bufferBasedAssessment()
383 cipher.doFinal(combinedOutput, outputbuffer); in bufferBasedAssessment()
457 int ctSize = cipher.doFinal(inputRO, output); in testByteBufferShiftedAlias()
473 cipher.doFinal(inputRO, output); in testByteBufferShiftedAlias()
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DAesGcmTest.java153 byte[] ct = cipher.doFinal(test.pt); in testVectors()
180 byte[] c1 = cipher.doFinal(); in testLateUpdateAAD()
206 byte[] ct1 = cipher.doFinal(test.pt); in testIvReuse()
208 byte[] ct2 = cipher.doFinal(test.pt); in testIvReuse()
231 cipher.doFinal(ptBuffer, ctBuffer); in testByteBuffer()
240 cipher.doFinal(ctBuffer, decrypted); in testByteBuffer()
258 cipher.doFinal(ptBuffer, ctBuffer); in testByteBufferAlias()
266 cipher.doFinal(ctBuffer, decrypted); in testByteBufferAlias()
280 cipher.doFinal(ptBuffer, ctBuffer); in testReadOnlyByteBuffer()
290 cipher.doFinal(ctBuffer, decrypted); in testReadOnlyByteBuffer()
[all …]
DEciesTest.java83 byte[] ciphertext = ecies.doFinal(message); in testEciesBasic()
86 byte[] decrypted = ecies.doFinal(ciphertext); in testEciesBasic()
174 byte[] ciphertext = ecies.doFinal(message); in testExceptions()
184 ecies.doFinal(corrupt); in testExceptions()
212 byte[] ciphertext = ecies.doFinal(message); in testModifyPoint()
216 ecies.doFinal(ciphertext); in testModifyPoint()
250 byte[] ciphertext = ecies.doFinal(message); in testNotEcb()
287 byte[] ciphertext = eciesA.doFinal(message); in testIsAlias()
289 byte[] decrypted = eciesB.doFinal(ciphertext); in testIsAlias()
DDhiesTest.java95 byte[] ciphertext = dhies.doFinal(message); in testDhiesBasic()
98 byte[] decrypted = dhies.doFinal(ciphertext); in testDhiesBasic()
123 byte[] ciphertext = dhies.doFinal(message); in testDhiesCorrupt()
129 dhies.doFinal(corrupt); in testDhiesCorrupt()
159 byte[] ciphertext = dhies.doFinal(message); in testNotEcb()
/external/okio/okio/src/jvmTest/kotlin/okio/
DCipherSourceTest.kt42 val expectedEncryptedData = cipherFactory.encrypt.doFinal(data) in encrypt()
56 val expectedEncryptedData = cipherFactory.encrypt.doFinal(data) in encryptEmpty()
70 val expectedEncryptedData = cipherFactory.encrypt.doFinal(data) in encryptLarge()
84 val expectedEncryptedData = cipherFactory.encrypt.doFinal(data) in encryptSingleByteSource()
101 val expectedEncryptedData = cipherFactory.encrypt.doFinal(data) in encryptPaddingRequired()
110 val encryptedData = cipherFactory.encrypt.doFinal(expectedData) in decrypt()
124 val encryptedData = cipherFactory.encrypt.doFinal(expectedData) in decryptEmpty()
138 val encryptedData = cipherFactory.encrypt.doFinal(expectedData) in decryptLarge()
152 val encryptedData = cipherFactory.encrypt.doFinal(expectedData) in decryptSingleByteSource()
171 val encryptedData = cipherFactory.encrypt.doFinal(expectedData) in decryptPaddingRequired()
DCipherSinkTest.kt43 val expectedEncryptedData = cipherFactory.encrypt.doFinal(data) in <lambda>()
58 val expectedEncryptedData = cipherFactory.encrypt.doFinal(data) in <lambda>()
73 val expectedEncryptedData = cipherFactory.encrypt.doFinal(data) in <lambda>()
93 val expectedEncryptedData = cipherFactory.encrypt.doFinal(data) in <lambda>()
111 val expectedEncryptedData = cipherFactory.encrypt.doFinal(data) in <lambda>()
120 val encryptedData = cipherFactory.encrypt.doFinal(expectedData) in <lambda>()
135 val encryptedData = cipherFactory.encrypt.doFinal(expectedData) in <lambda>()
150 val encryptedData = cipherFactory.encrypt.doFinal(expectedData) in <lambda>()
165 val encryptedData = cipherFactory.encrypt.doFinal(expectedData) in <lambda>()
187 val encryptedData = cipherFactory.encrypt.doFinal(expectedData) in <lambda>()
/external/wycheproof/keystore-cts/java/com/google/security/wycheproof/testcases/
DAesGcmTest.java270 byte[] ct = cipher.doFinal(test.pt); in testVectors()
303 res = cipher.doFinal(empty); in testEncryptWithEmptyArrays()
337 res = cipher.doFinal(empty); in testDecryptWithEmptyArrays()
359 cipher.doFinal(empty); in testDecryptWithEmptyArrays()
398 byte[] c1 = cipher.doFinal(); in testLateUpdateAAD()
433 byte[] ct1 = cipher.doFinal(test.pt); in testIvReuse()
435 byte[] ct2 = cipher.doFinal(test.pt); in testIvReuse()
495 cipher.doFinal(ptBuffer, ctBuffer); in testByteBuffer()
505 cipher.doFinal(ctBuffer, decrypted); in testByteBuffer()
532 cipher.doFinal(ptBuffer, ctBuffer); in testByteBufferAlias()
[all …]
/external/guava/guava-tests/test/com/google/common/hash/
DMacHashFunctionTest.java100 HashCode.fromBytes(mac.doFinal()), in testMultipleUpdates()
115 HashCode.fromBytes(mac.doFinal("!!!".getBytes(UTF_8))), in testMultipleUpdatesDoFinal()
181 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); in testEmptyInputs()
190 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); in testEmptyInputs_mixedAlgorithms()
201 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); in testKnownInputs()
202 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal(input.getBytes(UTF_8))).toString()); in testKnownInputs()
214 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); in testKnownInputs_mixedAlgorithms()
215 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal(input.getBytes(UTF_8))).toString()); in testKnownInputs_mixedAlgorithms()
283 assertEquals(HashCode.fromBytes(mac.doFinal()), hashFunc.hashBytes(input)); in assertMacHashing()
284 assertEquals(HashCode.fromBytes(mac.doFinal(input)), hashFunc.hashBytes(input)); in assertMacHashing()
/external/guava/android/guava-tests/test/com/google/common/hash/
DMacHashFunctionTest.java100 HashCode.fromBytes(mac.doFinal()), in testMultipleUpdates()
115 HashCode.fromBytes(mac.doFinal("!!!".getBytes(UTF_8))), in testMultipleUpdatesDoFinal()
181 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); in testEmptyInputs()
190 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); in testEmptyInputs_mixedAlgorithms()
201 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); in testKnownInputs()
202 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal(input.getBytes(UTF_8))).toString()); in testKnownInputs()
214 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); in testKnownInputs_mixedAlgorithms()
215 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal(input.getBytes(UTF_8))).toString()); in testKnownInputs_mixedAlgorithms()
283 assertEquals(HashCode.fromBytes(mac.doFinal()), hashFunc.hashBytes(input)); in assertMacHashing()
284 assertEquals(HashCode.fromBytes(mac.doFinal(input)), hashFunc.hashBytes(input)); in assertMacHashing()
/external/libese/ready_se/google/keymint/KM300/Applet/AndroidSEProviderLib/src/com/android/javacard/seprovider/
DKMRsaOAEPEncoding.java108 public short doFinal( in doFinal() method in KMRsaOAEPEncoding
111 short len = cipher.doFinal(inBuff, inOffset, inLength, outBuff, outOffset); in doFinal()
157 md.doFinal( in maskGenerationFunction1()
168 md.doFinal( in maskGenerationFunction1()
241 md.doFinal(tmpArray, (short) 0, (short) 0, tmpArray, (short) 0); in rsaOAEPDecode()
/external/libese/ready_se/google/keymint/KM200/Applet/AndroidSEProviderLib/src/com/android/javacard/seprovider/
DKMRsaOAEPEncoding.java108 public short doFinal( in doFinal() method in KMRsaOAEPEncoding
111 short len = cipher.doFinal(inBuff, inOffset, inLength, outBuff, outOffset); in doFinal()
157 md.doFinal( in maskGenerationFunction1()
168 md.doFinal( in maskGenerationFunction1()
241 md.doFinal(tmpArray, (short) 0, (short) 0, tmpArray, (short) 0); in rsaOAEPDecode()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/
DHMac.java126 digest.doFinal(inputPad, 0); in init()
179 public int doFinal( in doFinal() method in HMac
183 digest.doFinal(outputBuf, blockLength); in doFinal()
195 int len = digest.doFinal(out, outOff); in doFinal()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/macs/
DHMac.java128 digest.doFinal(inputPad, 0); in init()
181 public int doFinal( in doFinal() method in HMac
185 digest.doFinal(outputBuf, blockLength); in doFinal()
197 int len = digest.doFinal(out, outOff); in doFinal()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLMac.java133 final byte[] output = doFinal(); in engineDoFinal()
138 protected abstract byte[] doFinal(); in doFinal() method in OpenSSLMac
184 protected byte[] doFinal() { in doFinal() method in OpenSSLMac.Hmac
270 protected byte[] doFinal() { in doFinal() method in OpenSSLMac.AesCmac
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLMac.java131 final byte[] output = doFinal(); in engineDoFinal()
136 protected abstract byte[] doFinal(); in doFinal() method in OpenSSLMac
179 protected byte[] doFinal() { in doFinal() method in OpenSSLMac.Hmac
245 protected byte[] doFinal() { in doFinal() method in OpenSSLMac.AesCmac
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/macs/
DHMac.java128 digest.doFinal(inputPad, 0); in init()
181 public int doFinal( in doFinal() method in HMac
185 digest.doFinal(outputBuf, blockLength); in doFinal()
197 int len = digest.doFinal(out, outOff); in doFinal()
/external/okio/okio/src/jvmMain/kotlin/okio/
DCipherSource.kt51 doFinal() in refill()
87 private fun doFinal() { in doFinal() method in okio.CipherSource
94 val ciphered = cipher.doFinal(s.data, s.pos) in doFinal()
DCipherSink.kt92 var thrown = doFinal() in flush()
103 private fun doFinal(): Throwable? { in doFinal() method in okio.CipherSink
114 val ciphered = cipher.doFinal(s.data, s.limit) in doFinal()
/external/conscrypt/common/src/test/java/org/conscrypt/
DMacTest.java207 mac.doFinal(message); in uninitializedMacThrows()
214 mac.doFinal(); in uninitializedMacThrows()
327 return mac.doFinal(); in generateMacUsingUpdate()
333 return mac.doFinal(message); in generateMacUsingFinal()
347 return mac.doFinal(); in generateMac()
361 mac.doFinal(otherMessage); in generateReusingMac()
368 return mac.doFinal(); in generateReusingMac()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/
DMacTest.java213 mac.doFinal(message); in uninitializedMacThrows()
220 mac.doFinal(); in uninitializedMacThrows()
336 return mac.doFinal(); in generateMacUsingUpdate()
342 return mac.doFinal(message); in generateMacUsingFinal()
356 return mac.doFinal(); in generateMac()
370 mac.doFinal(otherMessage); in generateReusingMac()
377 return mac.doFinal(); in generateReusingMac()

12345678