AuthenticatedCipher interface isn't needed outside crypto package.

This commit is contained in:
akwizgran
2015-01-09 13:06:44 +00:00
parent dc5e37a96d
commit 5d46d3a4b4
10 changed files with 20 additions and 45 deletions

View File

@@ -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;
}
}