mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
AuthenticatedCipher interface isn't needed outside crypto package.
This commit is contained in:
@@ -4,13 +4,10 @@ import static org.briarproject.api.transport.TransportConstants.MAC_LENGTH;
|
||||
|
||||
import java.security.GeneralSecurityException;
|
||||
|
||||
import org.briarproject.api.crypto.AuthenticatedCipher;
|
||||
import org.briarproject.api.crypto.SecretKey;
|
||||
|
||||
class TestAuthenticatedCipher implements AuthenticatedCipher {
|
||||
|
||||
private static final int BLOCK_BYTES = 16;
|
||||
|
||||
private boolean encrypt = false;
|
||||
|
||||
public void init(boolean encrypt, SecretKey key, byte[] iv)
|
||||
@@ -38,8 +35,4 @@ class TestAuthenticatedCipher implements AuthenticatedCipher {
|
||||
public int getMacBytes() {
|
||||
return MAC_LENGTH;
|
||||
}
|
||||
|
||||
public int getBlockBytes() {
|
||||
return BLOCK_BYTES;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user