Searched refs:opmode (Results 1 – 3 of 3) sorted by relevance
119 private byte[] getKatInput(int opmode) { in getKatInput() argument120 switch (opmode) { in getKatInput()126 throw new IllegalArgumentException("Invalid opmode: " + opmode); in getKatInput()130 private byte[] getKatOutput(int opmode) { in getKatOutput() argument131 switch (opmode) { in getKatOutput()137 throw new IllegalArgumentException("Invalid opmode: " + opmode); in getKatOutput()571 private void assertKeyDoesNotSurviveReinitialization(int opmode) throws Exception { in assertKeyDoesNotSurviveReinitialization() argument572 byte[] input = getKatInput(opmode); in assertKeyDoesNotSurviveReinitialization()576 init(opmode, key1, getKatAlgorithmParameterSpec()); in assertKeyDoesNotSurviveReinitialization()583 init(opmode, key2, getKatAlgorithmParameterSpec()); in assertKeyDoesNotSurviveReinitialization()[all …]
160 private void assertKatTransformWithAadProvidedInOneGo(int opmode, in assertKatTransformWithAadProvidedInOneGo() argument162 initKat(opmode); in assertKatTransformWithAadProvidedInOneGo()166 initKat(opmode); in assertKatTransformWithAadProvidedInOneGo()170 initKat(opmode); in assertKatTransformWithAadProvidedInOneGo()175 private void assertKatTransformWithAadProvidedInChunks(int opmode, in assertKatTransformWithAadProvidedInChunks() argument178 initKat(opmode); in assertKatTransformWithAadProvidedInChunks()
324 int opmode = (encrypt) ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE; in runKatTest() local326 cipher.init(opmode, key, new IvParameterSpec(testVector.iv)); in runKatTest()328 cipher.init(opmode, key); in runKatTest()