Home
last modified time | relevance | path

Searched refs:expectedPlaintext (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DCipherTest.java467 byte[] expectedPlaintext = plaintext; in testEmptyPlaintextEncryptsAndDecrypts()
472 expectedPlaintext = TestUtils.leftPadWithZeroBytes( in testEmptyPlaintextEncryptsAndDecrypts()
473 expectedPlaintext, modulusLengthBytes); in testEmptyPlaintextEncryptsAndDecrypts()
480 assertArrayEquals(expectedPlaintext, actualPlaintext); in testEmptyPlaintextEncryptsAndDecrypts()
520 byte[] expectedPlaintext = plaintext; in testEncryptsAndDecryptsInterrupted()
525 expectedPlaintext = TestUtils.leftPadWithZeroBytes( in testEncryptsAndDecryptsInterrupted()
526 expectedPlaintext, modulusLengthBytes); in testEncryptsAndDecryptsInterrupted()
534 assertArrayEquals(expectedPlaintext, actualPlaintext); in testEncryptsAndDecryptsInterrupted()
577 byte[] expectedPlaintext = plaintext; in testEncryptsAndDecryptsUsingCipherStreams()
582 expectedPlaintext = TestUtils.leftPadWithZeroBytes( in testEncryptsAndDecryptsUsingCipherStreams()
[all …]
DRSACipherTest.java284 byte[] expectedPlaintext = new byte[expectedCiphertext.length]; in testNoPaddingWithZeroMessage()
285 assertArrayEquals(expectedPlaintext, cipher.doFinal(ciphertext)); in testNoPaddingWithZeroMessage()
DBlockCipherTestBase.java876 byte[] expectedPlaintext = getKatPlaintext(); in testKatDecryptOneByteAtATime()
886 assertArrayEquals(expectedPlaintext, finalOutput); in testKatDecryptOneByteAtATime()
900 expectedPlaintext[ciphertextIndex], output[0]); in testKatDecryptOneByteAtATime()
914 assertArrayEquals(expectedPlaintext, actualPlaintext.toByteArray()); in testKatDecryptOneByteAtATime()
943 subarray(expectedPlaintext, plaintextIndex, in testKatDecryptOneByteAtATime()
959 subarray(expectedPlaintext, plaintextIndex, expectedPlaintext.length); in testKatDecryptOneByteAtATime()