Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DAESCipherNistCavpKatTest.java222 boolean encrypt; in runTestsForKatFile()
224 encrypt = true; in runTestsForKatFile()
226 encrypt = false; in runTestsForKatFile()
230 runKatTest(blockMode, encrypt, testVector); in runTestsForKatFile()
269 private void runKatTest(String mode, boolean encrypt, TestVector testVector) throws Exception { in runKatTest() argument
286 int opmode = (encrypt) ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE; in runKatTest()
293 byte[] input = (encrypt) ? testVector.plaintext : testVector.ciphertext; in runKatTest()
295 byte[] expectedOutput = (encrypt) ? testVector.ciphertext : testVector.plaintext; in runKatTest()
DAndroidKeyStoreTest.java1919 Cipher encrypt = Cipher.getInstance(cipher); in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local
1920 assertNotNull(encrypt); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
1921 encrypt.init(Cipher.ENCRYPT_MODE, privateKey); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
1930 encrypt.doFinal(plainText); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
/cts/tests/tests/media/src/android/media/cts/
DMediaDrmMockTest.java561 byte[] output = cs.encrypt(keyId, input, iv); in testCryptoSessionEncrypt()