Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DBlockCipherTestBase.java92 private byte[] getKatInput(int opmode) { in getKatInput() argument
93 switch (opmode) { in getKatInput()
99 throw new IllegalArgumentException("Invalid opmode: " + opmode); in getKatInput()
103 private byte[] getKatOutput(int opmode) { in getKatOutput() argument
104 switch (opmode) { in getKatOutput()
110 throw new IllegalArgumentException("Invalid opmode: " + opmode); in getKatOutput()
529 private void assertKeyDoesNotSurviveReinitialization(int opmode) throws Exception { in assertKeyDoesNotSurviveReinitialization() argument
530 byte[] input = getKatInput(opmode); in assertKeyDoesNotSurviveReinitialization()
534 init(opmode, key1, getKatAlgorithmParameterSpec()); in assertKeyDoesNotSurviveReinitialization()
541 init(opmode, key2, getKatAlgorithmParameterSpec()); in assertKeyDoesNotSurviveReinitialization()
[all …]
DAESGCMCipherTestBase.java151 private void assertKatTransformWithAadProvidedInOneGo(int opmode, in assertKatTransformWithAadProvidedInOneGo() argument
153 initKat(opmode); in assertKatTransformWithAadProvidedInOneGo()
157 initKat(opmode); in assertKatTransformWithAadProvidedInOneGo()
161 initKat(opmode); in assertKatTransformWithAadProvidedInOneGo()
166 private void assertKatTransformWithAadProvidedInChunks(int opmode, in assertKatTransformWithAadProvidedInChunks() argument
169 initKat(opmode); in assertKatTransformWithAadProvidedInChunks()
DAESCipherNistCavpKatTest.java286 int opmode = (encrypt) ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE; in runKatTest() local
288 cipher.init(opmode, key, new IvParameterSpec(testVector.iv)); in runKatTest()
290 cipher.init(opmode, key); in runKatTest()