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