Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DBlockCipherTestBase.java149 doFinal(getKatPlaintext()); in testGetParameters()
154 doFinal(getKatCiphertext()); in testGetParameters()
362 byte[] ciphertext = doFinal(new byte[getBlockSize()]); in testGetIV()
369 doFinal(ciphertext); in testGetIV()
394 byte[] ciphertext = doFinal(plaintext); in testIvGeneratedAndUsedWhenEncryptingWithoutExplicitIv()
397 byte[] decryptedPlaintext = mCipher.doFinal(ciphertext); in testIvGeneratedAndUsedWhenEncryptingWithoutExplicitIv()
411 byte[] ciphertext = mCipher.doFinal(getKatPlaintext()); in testGeneratedIvSurvivesReset()
422 assertEquals(ciphertext, mCipher.doFinal(getKatPlaintext())); in testGeneratedIvSurvivesReset()
430 assertEquals(ciphertext, mCipher.doFinal(getKatPlaintext())); in testGeneratedIvSurvivesReset()
490 mCipher.doFinal(getKatPlaintext()); in testReinitializingInDecryptModeDoesNotUsePreviouslyUsedIv()
[all …]
DRSACipherTest.java61 MoreAsserts.assertEquals(expectedOutput, cipher.doFinal(input)); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
64 MoreAsserts.assertEquals(expectedOutput, cipher.doFinal(input)); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
91 byte[] ciphertext = cipher.doFinal(plaintext); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus()
93 MoreAsserts.assertEquals(plaintext, cipher.doFinal(ciphertext)); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus()
118 byte[] ciphertext = cipher.doFinal(plaintext); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus()
147 byte[] ciphertext = cipher.doFinal(plaintext); in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus()
179 byte[] ciphertext = cipher.doFinal(plaintext); in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus()
211 byte[] plaintext = cipher.doFinal(ciphertext); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
237 byte[] ciphertext = cipher.doFinal(plaintext); in testNoPaddingWithZeroMessage()
245 MoreAsserts.assertEquals(expectedPlaintext, cipher.doFinal(ciphertext)); in testNoPaddingWithZeroMessage()
DAESGCMCipherTestBase.java155 assertEquals(expectedOutput, doFinal(input)); in assertKatTransformWithAadProvidedInOneGo()
159 assertEquals(expectedOutput, doFinal(input)); in assertKatTransformWithAadProvidedInOneGo()
163 assertEquals(expectedOutput, doFinal(input)); in assertKatTransformWithAadProvidedInOneGo()
176 assertEquals(expectedOutput, doFinal(input)); in assertKatTransformWithAadProvidedInChunks()
186 doFinal(ciphertext); in testCiphertextBitflipDetectedWhenDecrypting()
200 doFinal(ciphertext); in testAadBitflipDetectedWhenDecrypting()
DImportWrappedKeyTest.java121 byte[] encrypted = c.doFinal("hello, world".getBytes()); in testKeyStore_ImportWrappedKey()
126 assertEquals(new String(c.doFinal(encrypted)), "hello, world"); in testKeyStore_ImportWrappedKey()
185 byte[] encrypted = c.doFinal("hello, world".getBytes()); in testKeyStore_ImportWrappedKey_3DES()
190 assertEquals(new String(c.doFinal(encrypted)), "hello, world"); in testKeyStore_ImportWrappedKey_3DES()
222 byte[] encrypted = c.doFinal("hello, world".getBytes()); in testKeyStore_ImportWrappedKey_3DES_StrongBox()
227 assertEquals(new String(c.doFinal(encrypted)), "hello, world"); in testKeyStore_ImportWrappedKey_3DES_StrongBox()
263 byte[] encrypted = c.doFinal("hello, world".getBytes()); in testKeyStore_ImportWrappedKey_AES_StrongBox()
268 assertEquals(new String(c.doFinal(encrypted)), "hello, world"); in testKeyStore_ImportWrappedKey_AES_StrongBox()
326 byte[] encryptedEphemeralKeys = pkCipher.doFinal(aesKeyBytes); in wrapKey()
336 byte[] encryptedSecureKey = cipher.doFinal(keyMaterial); in wrapKey()
DDesCipherPerformanceTest.java109 mCipher.doFinal(getMessage()); in measure()
129 mEncryptedMessage = mCipher.doFinal(getMessage()); in initialSetUp()
140 mCipher.doFinal(mEncryptedMessage); in measure()
DAesCipherPerformanceTest.java117 mCipher.doFinal(getMessage()); in measure()
137 mEncryptedMessage = mCipher.doFinal(getMessage()); in initialSetUp()
148 mCipher.doFinal(mEncryptedMessage); in measure()
DRsaCipherPerformanceTest.java125 mCipher.doFinal(getMessage()); in measure()
145 mEncryptedMessage = mCipher.doFinal(getMessage()); in initialSetUp()
156 mCipher.doFinal(mEncryptedMessage); in measure()
DCipherTest.java415 byte[] ciphertext = cipher.doFinal(plaintext); in testEmptyPlaintextEncryptsAndDecrypts()
428 byte[] actualPlaintext = cipher.doFinal(ciphertext); in testEmptyPlaintextEncryptsAndDecrypts()
466 byte[] ciphertext = cipher.doFinal(plaintext); in testEncryptsAndDecryptsInterrupted()
479 byte[] actualPlaintext = cipher.doFinal(ciphertext); in testEncryptsAndDecryptsInterrupted()
497 byte[] actualPlaintext = cipher.doFinal(ciphertext); in isDecryptValid()
568 byte[] ciphertext = cipher.doFinal(plaintext); in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired()
622 byte[] ciphertext = cipher.doFinal(plaintext); in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()
635 byte[] actualPlaintext = cipher.doFinal(ciphertext); in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()
711 byte[] ciphertext = cipher.doFinal(plaintext); in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
746 byte[] actualPlaintext = cipher.doFinal(ciphertext); in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore()
[all …]
DMacTest.java236 byte[] macBytes = mac.doFinal(); in testMacGeneratedForEmptyMessage()
258 byte[] macBytes = mac.doFinal(message); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
280 byte[] macBytes = mac.doFinal(message); in testMacGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
304 byte[] macBytes = mac.doFinal(message); in testMacGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore()
475 byte[] mac2 = m.doFinal(message); in assertMacVerifiesOneShot()
491 byte[] mac2 = m.doFinal(message); in assertMacDoesNotVerifyOneShot()
509 byte[] mac2 = m.doFinal(); in assertMacVerifiesFedOneByteAtATime()
534 byte[] mac2 = m.doFinal(); in assertMacVerifiesFedUsingFixedSizeChunks()
DHmacMacPerformanceTest.java104 mMac.doFinal(); in measure()
DAndroidKeyStoreTest.java1930 encrypt.doFinal(plainText); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
2271 byte[] ciphertext = cipher.doFinal(plaintext); in testKeyStore_LargeNumberOfKeysSupported_AES()
2275 MoreAsserts.assertEquals(plaintext, cipher.doFinal(ciphertext)); in testKeyStore_LargeNumberOfKeysSupported_AES()
2279 ciphertext = cipher.doFinal(plaintext); in testKeyStore_LargeNumberOfKeysSupported_AES()
2283 MoreAsserts.assertEquals(plaintext, cipher.doFinal(ciphertext)); in testKeyStore_LargeNumberOfKeysSupported_AES()
2362 mac.doFinal(message)); in testKeyStore_LargeNumberOfKeysSupported_HMAC()
2369 mac.doFinal(message)); in testKeyStore_LargeNumberOfKeysSupported_HMAC()
DAESCipherNistCavpKatTest.java294 byte[] actualOutput = cipher.doFinal(input); in runKatTest()
/cts/tests/tests/identity/src/android/security/identity/cts/
DEphemeralKeyTest.java191 messageCiphertext = cipher.doFinal(messagePlaintext); // This includes the auth tag in encryptMessageToHolder()
215 plaintext = cipher.doFinal(messageCiphertext); in decryptMessageFromHolder()
DUtil.java685 mac = m.doFinal(); in coseMac0()
1062 byte[] prk = mac.doFinal(ikm); in computeHkdf()
1072 digest = mac.doFinal(); in computeHkdf()
DUserAuthTest.java141 byte[] cipherText = cipher.doFinal(clearText); in checkAuthBoundKey()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DAuthenticationBoundKeyTestActivity.java257 cipher.doFinal(SECRET_BYTE_ARRAY); in tryEncryptWithLockscreenKey()
295 cipher.doFinal(SECRET_BYTE_ARRAY); in tryEncryptWithFingerprintKey()
/cts/tests/tests/net/ipsec/src/android/net/ipsec/ike/cts/
DPacketUtils.java370 return sha256HMAC.doFinal(authenticatedSection); in getIcv()
402 byte[] encrypted = cipher.doFinal(getByteArrayFromBuffer(paddedPayload)); in getCiphertext()
/cts/tests/tests/net/src/android/net/cts/
DPacketUtils.java364 return sha256HMAC.doFinal(authenticatedSection); in getIcv()
396 byte[] encrypted = cipher.doFinal(getByteArrayFromBuffer(paddedPayload)); in getCiphertext()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DScreenLockBoundKeysTest.java154 cipher.doFinal(SECRET_BYTE_ARRAY); in tryEncrypt()
DFingerprintBoundKeysTest.java237 mCipher.doFinal(SECRET_BYTE_ARRAY); in encryptInternal()