Searched refs:testVector (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AESCipherNistCavpKatTest.java | 215 TestVector testVector = null; in runTestsForKatFile() local 251 testVector = new TestVector(); in runTestsForKatFile() 268 runKatTest(blockMode, encrypt, testVector); in runTestsForKatFile() 270 testVector = null; in runTestsForKatFile() 282 testVector.key = HexEncoding.decode(value); in runTestsForKatFile() 284 testVector.iv = HexEncoding.decode(value); in runTestsForKatFile() 286 testVector.plaintext = HexEncoding.decode(value); in runTestsForKatFile() 288 testVector.ciphertext = HexEncoding.decode(value); in runTestsForKatFile() 307 private void runKatTest(String mode, boolean encrypt, TestVector testVector) throws Exception { in runKatTest() argument 312 new KeyStore.SecretKeyEntry(new SecretKeySpec(testVector.key, "AES")), in runKatTest() [all …]
|
D | CipherTest.java | 1207 KatVector testVector = KAT_VECTORS.get(algorithm); in testKat() local 1208 assertNotNull(testVector); in testKat() 1212 cipher.init(Cipher.DECRYPT_MODE, decryptionKey, testVector.params); in testKat() 1213 byte[] actualPlaintext = cipher.doFinal(testVector.ciphertext); in testKat() 1215 byte[] expectedPlaintext = testVector.plaintext; in testKat() 1230 cipher.init(Cipher.ENCRYPT_MODE, encryptionKey, testVector.params); in testKat() 1231 byte[] actualCiphertext = cipher.doFinal(testVector.plaintext); in testKat() 1232 assertArrayEquals(testVector.ciphertext, actualCiphertext); in testKat() 1263 KatVector testVector = KAT_VECTORS.get(algorithm); in testKatBasicWithDifferentProviders() local 1272 cipher.doFinal(testVector.plaintext); in testKatBasicWithDifferentProviders() [all …]
|
D | MacTest.java | 370 for (KatVector testVector : SHORT_MSG_KAT_MACS.get(algorithm)) { in testSmallMsgKat() 371 byte[] keyBytes = testVector.key; in testSmallMsgKat() 378 byte[] goodMacBytes = testVector.mac.clone(); in testSmallMsgKat()
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | RSScriptTest.java | 40 native boolean testVector(String path); in testVector() method in RSScriptTest 42 assertTrue(testVector(this.getContext().getCacheDir().toString())); in testRSScriptTestVector()
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | DecoderConformanceTest.java | 99 for (String testVector : testVectors) { in input() 104 argsList.add(new Object[] {name, mediaType, testVector}); in input()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | ComputeTest.java | 670 public void testVector() { in testVector() method in ComputeTest
|