mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Remove AAD from AuthenticatedCipher interface.
This commit is contained in:
@@ -2,14 +2,12 @@ package org.briarproject.api.crypto;
|
||||
|
||||
import java.security.GeneralSecurityException;
|
||||
|
||||
/** An authenticated cipher that supports additional authenticated data. */
|
||||
public interface AuthenticatedCipher {
|
||||
|
||||
/**
|
||||
* Initializes this cipher with a key, an initialisation vector (IV) and
|
||||
* additional authenticated data (AAD).
|
||||
* Initializes this cipher with a key and an initialisation vector (IV).
|
||||
*/
|
||||
void init(boolean encrypt, SecretKey key, byte[] iv, byte[] aad)
|
||||
void init(boolean encrypt, SecretKey key, byte[] iv)
|
||||
throws GeneralSecurityException;
|
||||
|
||||
/** Encrypts or decrypts data in a single-part operation. */
|
||||
@@ -17,8 +15,8 @@ public interface AuthenticatedCipher {
|
||||
int outputOff) throws GeneralSecurityException;
|
||||
|
||||
/** Returns the length of the message authentication code (MAC) in bytes. */
|
||||
int getMacLength();
|
||||
int getMacBytes();
|
||||
|
||||
/** Returns the block size of the cipher in bytes. */
|
||||
int getBlockSize();
|
||||
int getBlockBytes();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user