コード例 #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);
 }