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.java97 private byte[] getKatInput(int opmode) { in getKatInput() argument
98 switch (opmode) { in getKatInput()
104 throw new IllegalArgumentException("Invalid opmode: " + opmode); in getKatInput()
108 private byte[] getKatOutput(int opmode) { in getKatOutput() argument
109 switch (opmode) { in getKatOutput()
115 throw new IllegalArgumentException("Invalid opmode: " + opmode); in getKatOutput()
534 private void assertKeyDoesNotSurviveReinitialization(int opmode) throws Exception { in assertKeyDoesNotSurviveReinitialization() argument
535 byte[] input = getKatInput(opmode); in assertKeyDoesNotSurviveReinitialization()
539 init(opmode, key1, getKatAlgorithmParameterSpec()); in assertKeyDoesNotSurviveReinitialization()
546 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()