Lines Matching defs:iv
30 private static final String KEY_IV = "iv";
66 byte[] iv = cipher.getIV();
67 byte[] mac = createMac(encryptedBytes, iv);
72 encryptedBundle.putByteArray(KEY_IV, iv);
80 byte[] iv = bundle.getByteArray(KEY_IV);
83 if (!verifyMac(encryptedBytes, iv, mac)) {
88 IvParameterSpec ivSpec = new IvParameterSpec(iv);
102 private boolean verifyMac(@Nullable byte[] cipherArray, @Nullable byte[] iv, @Nullable byte[] macArray)
111 return constantTimeArrayEquals(macArray, createMac(cipherArray, iv));
115 private byte[] createMac(@NonNull byte[] cipher, @NonNull byte[] iv) throws GeneralSecurityException {
119 mac.update(iv);