예제 #1
0
 void implInit(int opmode, Key key, SecureRandom random, CipherSpi cipherImpl)
     throws InvalidKeyException {
   try {
     implInit(opmode, key, (AlgorithmParameterSpec) null, random, cipherImpl);
   } catch (InvalidAlgorithmParameterException iape) {
     throw new InvalidKeyException("requires PBE parameters");
   }
 }
예제 #2
0
 void implInit(
     int opmode, Key key, AlgorithmParameters params, SecureRandom random, CipherSpi cipherImpl)
     throws InvalidKeyException, InvalidAlgorithmParameterException {
   AlgorithmParameterSpec paramSpec = null;
   if (params != null) {
     try {
       paramSpec = params.getParameterSpec(PBEParameterSpec.class);
     } catch (InvalidParameterSpecException ipse) {
       throw new InvalidAlgorithmParameterException("requires PBE parameters");
     }
   }
   implInit(opmode, key, paramSpec, random, cipherImpl);
 }
예제 #3
0
 protected void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException {
   core.implInit(opmode, key, random, cipher);
 }
예제 #4
0
 protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
     throws InvalidKeyException, InvalidAlgorithmParameterException {
   core.implInit(opmode, key, params, random, cipher);
 }
예제 #5
0
 void implInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException {
   implInit(opmode, key, random, null);
 }
예제 #6
0
 void implInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
     throws InvalidKeyException, InvalidAlgorithmParameterException {
   implInit(opmode, key, params, random, null);
 }