コード例 #1
0
 protected void engineInit(int paramInt, Key paramKey, SecureRandom paramSecureRandom) {
   try {
     engineInit(paramInt, paramKey, null, paramSecureRandom);
     return;
   } catch (InvalidAlgorithmParameterException paramKey) {
     throw new IllegalArgumentException(paramKey.getMessage());
   }
 }
コード例 #2
0
 protected byte[] engineWrap(Key paramKey) {
   paramKey = paramKey.getEncoded();
   if (paramKey == null) {
     throw new InvalidKeyException("Cannot wrap key, null encoding.");
   }
   try {
     if (this.aXL == null) {
       paramKey = engineDoFinal(paramKey, 0, paramKey.length);
       return paramKey;
     }
     paramKey = this.aXL.ᐨ(paramKey, 0, paramKey.length);
     return paramKey;
   } catch (BadPaddingException paramKey) {
     throw new IllegalBlockSizeException(paramKey.getMessage());
   }
 }