コード例 #1
0
 @Nonnull
 public static Cipherer<byte[], byte[]> newAndroidAesByteCipherer(final byte[] initialVector) {
   return Security.newCipherer(
       CIPHER_ALGORITHM, PROVIDER, InitialVectorDef.newPredefined(initialVector));
 }
コード例 #2
0
 @Nonnull
 public static Cipherer<byte[], byte[]> newAndroidAesByteCipherer() {
   return Security.newCipherer(
       CIPHER_ALGORITHM, PROVIDER, InitialVectorDef.newRandom(IV_RANDOM_ALGORITHM, IV_LENGTH));
 }