Searched refs:opmode (Results 1 – 3 of 3) sorted by relevance
97 private byte[] getKatInput(int opmode) { in getKatInput() argument98 switch (opmode) { in getKatInput()104 throw new IllegalArgumentException("Invalid opmode: " + opmode); in getKatInput()108 private byte[] getKatOutput(int opmode) { in getKatOutput() argument109 switch (opmode) { in getKatOutput()115 throw new IllegalArgumentException("Invalid opmode: " + opmode); in getKatOutput()534 private void assertKeyDoesNotSurviveReinitialization(int opmode) throws Exception { in assertKeyDoesNotSurviveReinitialization() argument535 byte[] input = getKatInput(opmode); in assertKeyDoesNotSurviveReinitialization()539 init(opmode, key1, getKatAlgorithmParameterSpec()); in assertKeyDoesNotSurviveReinitialization()546 init(opmode, key2, getKatAlgorithmParameterSpec()); in assertKeyDoesNotSurviveReinitialization()[all …]
151 private void assertKatTransformWithAadProvidedInOneGo(int opmode, in assertKatTransformWithAadProvidedInOneGo() argument153 initKat(opmode); in assertKatTransformWithAadProvidedInOneGo()157 initKat(opmode); in assertKatTransformWithAadProvidedInOneGo()161 initKat(opmode); in assertKatTransformWithAadProvidedInOneGo()166 private void assertKatTransformWithAadProvidedInChunks(int opmode, in assertKatTransformWithAadProvidedInChunks() argument169 initKat(opmode); in assertKatTransformWithAadProvidedInChunks()
286 int opmode = (encrypt) ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE; in runKatTest() local288 cipher.init(opmode, key, new IvParameterSpec(testVector.iv)); in runKatTest()290 cipher.init(opmode, key); in runKatTest()