Searched refs:opmode (Results 1 – 3 of 3) sorted by relevance
92 private byte[] getKatInput(int opmode) { in getKatInput() argument93 switch (opmode) { in getKatInput()99 throw new IllegalArgumentException("Invalid opmode: " + opmode); in getKatInput()103 private byte[] getKatOutput(int opmode) { in getKatOutput() argument104 switch (opmode) { in getKatOutput()110 throw new IllegalArgumentException("Invalid opmode: " + opmode); in getKatOutput()529 private void assertKeyDoesNotSurviveReinitialization(int opmode) throws Exception { in assertKeyDoesNotSurviveReinitialization() argument530 byte[] input = getKatInput(opmode); in assertKeyDoesNotSurviveReinitialization()534 init(opmode, key1, getKatAlgorithmParameterSpec()); in assertKeyDoesNotSurviveReinitialization()541 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()