Lines Matching refs:opmode

295     private int opmode = 0;  field in Cipher
558 private void chooseProvider(InitType initType, int opmode, Key key, in chooseProvider() argument
564 final InitParams initParams = new InitParams(initType, opmode, key, random, in chooseProvider()
697 private static void checkOpmode(int opmode) { in checkOpmode() argument
698 if ((opmode < ENCRYPT_MODE) || (opmode > UNWRAP_MODE)) { in checkOpmode()
703 private static String getOpmodeString(int opmode) { in getOpmodeString() argument
704 switch (opmode) { in getOpmodeString()
770 public final void init(int opmode, Key key) throws InvalidKeyException { in init() argument
771 init(opmode, key, JceSecurity.RANDOM); in init()
823 public final void init(int opmode, Key key, SecureRandom random) in init() argument
827 checkOpmode(opmode); in init()
830 chooseProvider(InitType.KEY, opmode, key, null, null, random); in init()
837 this.opmode = opmode; in init()
905 public final void init(int opmode, Key key, AlgorithmParameterSpec params) in init() argument
908 init(opmode, key, params, JceSecurity.RANDOM); in init()
966 public final void init(int opmode, Key key, AlgorithmParameterSpec params, in init() argument
971 checkOpmode(opmode); in init()
973 chooseProvider(InitType.ALGORITHM_PARAM_SPEC, opmode, key, params, null, random); in init()
976 this.opmode = opmode; in init()
1045 public final void init(int opmode, Key key, AlgorithmParameters params) in init() argument
1048 init(opmode, key, params, JceSecurity.RANDOM); in init()
1106 public final void init(int opmode, Key key, AlgorithmParameters params, in init() argument
1111 checkOpmode(opmode); in init()
1113 chooseProvider(InitType.ALGORITHM_PARAMS, opmode, key, null, params, random); in init()
1116 this.opmode = opmode; in init()
1190 public final void init(int opmode, Certificate certificate) in init() argument
1193 init(opmode, certificate, JceSecurity.RANDOM); in init()
1260 public final void init(int opmode, Certificate certificate, in init() argument
1264 checkOpmode(opmode); in init()
1280 (((opmode == Cipher.ENCRYPT_MODE) && in init()
1283 ((opmode == Cipher.WRAP_MODE) && in init()
1295 chooseProvider(InitType.KEY, opmode, (Key) publicKey, null, null, random); in init()
1302 this.opmode = opmode; in init()
1323 if ((opmode != Cipher.ENCRYPT_MODE) && in checkCipherState()
1324 (opmode != Cipher.DECRYPT_MODE)) { in checkCipherState()
2062 if (opmode != Cipher.WRAP_MODE) { in wrap()
2109 if (opmode != Cipher.UNWRAP_MODE) { in unwrap()
2400 final int opmode; field in Cipher.InitParams
2406 InitParams(InitType initType, int opmode, Key key, SecureRandom random, in InitParams() argument
2409 this.opmode = opmode; in InitParams()
2655 spi.engineInit(initParams.opmode, initParams.key, initParams.params, in tryTransformWithProvider()
2659 spi.engineInit(initParams.opmode, initParams.key, initParams.spec, in tryTransformWithProvider()
2663 spi.engineInit(initParams.opmode, initParams.key, initParams.random); in tryTransformWithProvider()