/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | BlockCipherTestBase.java | 149 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 …]
|
D | RSACipherTest.java | 61 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()
|
D | AESGCMCipherTestBase.java | 155 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()
|
D | ImportWrappedKeyTest.java | 121 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()
|
D | DesCipherPerformanceTest.java | 109 mCipher.doFinal(getMessage()); in measure() 129 mEncryptedMessage = mCipher.doFinal(getMessage()); in initialSetUp() 140 mCipher.doFinal(mEncryptedMessage); in measure()
|
D | AesCipherPerformanceTest.java | 117 mCipher.doFinal(getMessage()); in measure() 137 mEncryptedMessage = mCipher.doFinal(getMessage()); in initialSetUp() 148 mCipher.doFinal(mEncryptedMessage); in measure()
|
D | RsaCipherPerformanceTest.java | 125 mCipher.doFinal(getMessage()); in measure() 145 mEncryptedMessage = mCipher.doFinal(getMessage()); in initialSetUp() 156 mCipher.doFinal(mEncryptedMessage); in measure()
|
D | CipherTest.java | 415 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 …]
|
D | MacTest.java | 236 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()
|
D | HmacMacPerformanceTest.java | 104 mMac.doFinal(); in measure()
|
D | AndroidKeyStoreTest.java | 1930 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()
|
D | AESCipherNistCavpKatTest.java | 294 byte[] actualOutput = cipher.doFinal(input); in runKatTest()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | EphemeralKeyTest.java | 191 messageCiphertext = cipher.doFinal(messagePlaintext); // This includes the auth tag in encryptMessageToHolder() 215 plaintext = cipher.doFinal(messageCiphertext); in decryptMessageFromHolder()
|
D | Util.java | 685 mac = m.doFinal(); in coseMac0() 1062 byte[] prk = mac.doFinal(ikm); in computeHkdf() 1072 digest = mac.doFinal(); in computeHkdf()
|
D | UserAuthTest.java | 141 byte[] cipherText = cipher.doFinal(clearText); in checkAuthBoundKey()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | AuthenticationBoundKeyTestActivity.java | 257 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/ |
D | PacketUtils.java | 370 return sha256HMAC.doFinal(authenticatedSection); in getIcv() 402 byte[] encrypted = cipher.doFinal(getByteArrayFromBuffer(paddedPayload)); in getCiphertext()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | PacketUtils.java | 364 return sha256HMAC.doFinal(authenticatedSection); in getIcv() 396 byte[] encrypted = cipher.doFinal(getByteArrayFromBuffer(paddedPayload)); in getCiphertext()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | ScreenLockBoundKeysTest.java | 154 cipher.doFinal(SECRET_BYTE_ARRAY); in tryEncrypt()
|
D | FingerprintBoundKeysTest.java | 237 mCipher.doFinal(SECRET_BYTE_ARRAY); in encryptInternal()
|