mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Remove AAD from AuthenticatedCipher interface.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user