mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Whitespace-only code formatting changes.
This commit is contained in:
@@ -17,14 +17,14 @@ class TestAuthenticatedCipher implements AuthenticatedCipher {
|
||||
|
||||
public int process(byte[] input, int inputOff, int len, byte[] output,
|
||||
int outputOff) throws GeneralSecurityException {
|
||||
if(encrypt) {
|
||||
if (encrypt) {
|
||||
System.arraycopy(input, inputOff, output, outputOff, len);
|
||||
for(int i = 0; i < MAC_LENGTH; i++)
|
||||
for (int i = 0; i < MAC_LENGTH; i++)
|
||||
output[outputOff + len + i] = 0;
|
||||
return len + MAC_LENGTH;
|
||||
} else {
|
||||
for(int i = 0; i < MAC_LENGTH; i++)
|
||||
if(input[inputOff + len - MAC_LENGTH + i] != 0)
|
||||
for (int i = 0; i < MAC_LENGTH; i++)
|
||||
if (input[inputOff + len - MAC_LENGTH + i] != 0)
|
||||
throw new GeneralSecurityException();
|
||||
System.arraycopy(input, inputOff, output, outputOff,
|
||||
len - MAC_LENGTH);
|
||||
|
||||
Reference in New Issue
Block a user