Searched refs:encrypt (Results 1 – 3 of 3) sorted by relevance
222 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() argument286 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()
1919 Cipher encrypt = Cipher.getInstance(cipher); in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local1920 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()
561 byte[] output = cs.encrypt(keyId, input, iv); in testCryptoSessionEncrypt()