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