Remove AAD from AuthenticatedCipher interface.

This commit is contained in:
akwizgran
2015-01-09 13:01:02 +00:00
parent 4e57029d98
commit dc5e37a96d
6 changed files with 39 additions and 46 deletions

View File

@@ -13,7 +13,7 @@ class TestAuthenticatedCipher implements AuthenticatedCipher {
private boolean encrypt = false;
public void init(boolean encrypt, SecretKey key, byte[] iv, byte[] aad)
public void init(boolean encrypt, SecretKey key, byte[] iv)
throws GeneralSecurityException {
this.encrypt = encrypt;
}
@@ -35,11 +35,11 @@ class TestAuthenticatedCipher implements AuthenticatedCipher {
}
}
public int getMacLength() {
public int getMacBytes() {
return MAC_LENGTH;
}
public int getBlockSize() {
public int getBlockBytes() {
return BLOCK_BYTES;
}
}