Searched refs:expectedPlaintext (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | CipherTest.java | 416 byte[] expectedPlaintext = plaintext; in testEmptyPlaintextEncryptsAndDecrypts() 421 expectedPlaintext = TestUtils.leftPadWithZeroBytes( in testEmptyPlaintextEncryptsAndDecrypts() 422 expectedPlaintext, modulusLengthBytes); in testEmptyPlaintextEncryptsAndDecrypts() 429 MoreAsserts.assertEquals(expectedPlaintext, actualPlaintext); in testEmptyPlaintextEncryptsAndDecrypts() 467 byte[] expectedPlaintext = plaintext; in testEncryptsAndDecryptsInterrupted() 472 expectedPlaintext = TestUtils.leftPadWithZeroBytes( in testEncryptsAndDecryptsInterrupted() 473 expectedPlaintext, modulusLengthBytes); in testEncryptsAndDecryptsInterrupted() 481 MoreAsserts.assertEquals(expectedPlaintext, actualPlaintext); in testEncryptsAndDecryptsInterrupted() 492 private boolean isDecryptValid(byte[] expectedPlaintext, byte[] ciphertext, Cipher cipher, in isDecryptValid() argument 498 MoreAsserts.assertEquals(expectedPlaintext, actualPlaintext); in isDecryptValid() [all …]
|
D | RSACipherTest.java | 244 byte[] expectedPlaintext = new byte[expectedCiphertext.length]; in testNoPaddingWithZeroMessage() 245 MoreAsserts.assertEquals(expectedPlaintext, cipher.doFinal(ciphertext)); in testNoPaddingWithZeroMessage()
|
D | BlockCipherTestBase.java | 779 byte[] expectedPlaintext = getKatPlaintext(); in testKatDecryptOneByteAtATime() 789 assertEquals(expectedPlaintext, finalOutput); in testKatDecryptOneByteAtATime() 796 expectedPlaintext[ciphertextIndex], output[0]); in testKatDecryptOneByteAtATime() 816 subarray(expectedPlaintext, plaintextIndex, plaintextIndex + blockSize), in testKatDecryptOneByteAtATime() 829 subarray(expectedPlaintext, plaintextIndex, expectedPlaintext.length); in testKatDecryptOneByteAtATime()
|