Lines Matching refs:opmode

217     private int opmode = 0;
780 private void implInit(CipherSpi thisSpi, int type, int opmode, Key key,
787 thisSpi.engineInit(opmode, key, random);
791 thisSpi.engineInit(opmode, key, paramSpec, random);
795 thisSpi.engineInit(opmode, key, params, random);
799 thisSpi.engineInit(opmode, key, random);
806 private void chooseProvider(int initType, int opmode, Key key,
812 implInit(spi, initType, opmode, key, paramSpec, params, random);
849 implInit(thisSpi, initType, opmode, key, paramSpec,
1095 // check if opmode is one of the defined constants
1097 private static void checkOpmode(int opmode) {
1098 if ((opmode < ENCRYPT_MODE) || (opmode > UNWRAP_MODE)) {
1108 * on the value of <code>opmode</code>.
1139 * @param opmode the operation mode of this cipher (this is one of
1152 public final void init(int opmode, Key key) throws InvalidKeyException {
1153 init(opmode, key, JceSecurity.RANDOM);
1161 * on the value of <code>opmode</code>.
1188 * @param opmode the operation mode of this cipher (this is one of the
1202 public final void init(int opmode, Key key, SecureRandom random)
1206 checkOpmode(opmode);
1210 spi.engineInit(opmode, key, random);
1213 chooseProvider(I_KEY, opmode, key, null, null, random);
1221 this.opmode = opmode;
1230 * on the value of <code>opmode</code>.
1261 * @param opmode the operation mode of this cipher (this is one of the
1279 public final void init(int opmode, Key key, AlgorithmParameterSpec params)
1282 init(opmode, key, params, JceSecurity.RANDOM);
1291 * on the value of <code>opmode</code>.
1318 * @param opmode the operation mode of this cipher (this is one of the
1337 public final void init(int opmode, Key key, AlgorithmParameterSpec params,
1342 checkOpmode(opmode);
1346 spi.engineInit(opmode, key, params, random);
1348 chooseProvider(I_PARAMSPEC, opmode, key, params, null, random);
1352 this.opmode = opmode;
1361 * on the value of <code>opmode</code>.
1392 * @param opmode the operation mode of this cipher (this is one of the
1410 public final void init(int opmode, Key key, AlgorithmParameters params)
1413 init(opmode, key, params, JceSecurity.RANDOM);
1422 * on the value of <code>opmode</code>.
1449 * @param opmode the operation mode of this cipher (this is one of the
1468 public final void init(int opmode, Key key, AlgorithmParameters params,
1473 checkOpmode(opmode);
1477 spi.engineInit(opmode, key, params, random);
1479 chooseProvider(I_PARAMS, opmode, key, null, params, random);
1483 this.opmode = opmode;
1490 * on the value of <code>opmode</code>.
1497 * of <code>opmode</code>,
1532 * @param opmode the operation mode of this cipher (this is one of the
1546 public final void init(int opmode, Certificate certificate)
1549 init(opmode, certificate, JceSecurity.RANDOM);
1560 * the value of <code>opmode</code>.
1567 * <code>opmode</code>,
1597 * @param opmode the operation mode of this cipher (this is one of the
1613 public final void init(int opmode, Certificate certificate,
1618 checkOpmode(opmode);
1634 (((opmode == Cipher.ENCRYPT_MODE) &&
1637 ((opmode == Cipher.WRAP_MODE) &&
1650 spi.engineInit(opmode, publicKey, random);
1653 chooseProvider(I_CERT, opmode, publicKey, null, null, random);
1661 this.opmode = opmode;
1674 if ((opmode != Cipher.ENCRYPT_MODE) &&
1675 (opmode != Cipher.DECRYPT_MODE)) {
2410 if (opmode != Cipher.WRAP_MODE) {
2454 if (opmode != Cipher.UNWRAP_MODE) {