コード例 #1
0
 public byte[] encrypt(byte[] data, byte[] key, byte[] ivec, int usage) throws KrbCryptoException {
   try {
     return Des3.encrypt(key, usage, ivec, data, 0, data.length);
   } catch (GeneralSecurityException e) {
     KrbCryptoException ke = new KrbCryptoException(e.getMessage());
     ke.initCause(e);
     throw ke;
   }
 }
コード例 #2
0
 public byte[] decrypt(byte[] cipher, byte[] key, byte[] ivec, int usage)
     throws KrbApErrException, KrbCryptoException {
   try {
     return Des3.decrypt(key, usage, ivec, cipher, 0, cipher.length);
   } catch (GeneralSecurityException e) {
     KrbCryptoException ke = new KrbCryptoException(e.getMessage());
     ke.initCause(e);
     throw ke;
   }
 }
コード例 #3
0
 public int checksumSize() {
   return Des3.getChecksumLength();
 }