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.java119 private byte[] getKatInput(int opmode) { in getKatInput() argument
120 switch (opmode) { in getKatInput()
126 throw new IllegalArgumentException("Invalid opmode: " + opmode); in getKatInput()
130 private byte[] getKatOutput(int opmode) { in getKatOutput() argument
131 switch (opmode) { in getKatOutput()
137 throw new IllegalArgumentException("Invalid opmode: " + opmode); in getKatOutput()
571 private void assertKeyDoesNotSurviveReinitialization(int opmode) throws Exception { in assertKeyDoesNotSurviveReinitialization() argument
572 byte[] input = getKatInput(opmode); in assertKeyDoesNotSurviveReinitialization()
576 init(opmode, key1, getKatAlgorithmParameterSpec()); in assertKeyDoesNotSurviveReinitialization()
583 init(opmode, key2, getKatAlgorithmParameterSpec()); in assertKeyDoesNotSurviveReinitialization()
[all …]
DAESGCMCipherTestBase.java160 private void assertKatTransformWithAadProvidedInOneGo(int opmode, in assertKatTransformWithAadProvidedInOneGo() argument
162 initKat(opmode); in assertKatTransformWithAadProvidedInOneGo()
166 initKat(opmode); in assertKatTransformWithAadProvidedInOneGo()
170 initKat(opmode); in assertKatTransformWithAadProvidedInOneGo()
175 private void assertKatTransformWithAadProvidedInChunks(int opmode, in assertKatTransformWithAadProvidedInChunks() argument
178 initKat(opmode); in assertKatTransformWithAadProvidedInChunks()
DAESCipherNistCavpKatTest.java324 int opmode = (encrypt) ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE; in runKatTest() local
326 cipher.init(opmode, key, new IvParameterSpec(testVector.iv)); in runKatTest()
328 cipher.init(opmode, key); in runKatTest()