mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Unit tests for segmented encrypter and decrypter.
This commit is contained in:
@@ -56,7 +56,7 @@ class SegmentedConnectionDecrypter implements FrameSource {
|
||||
throw new FormatException();
|
||||
// Decrypt the frame
|
||||
try {
|
||||
int decrypted = frameCipher.update(b, 0, length, b);
|
||||
int decrypted = frameCipher.doFinal(b, 0, length, b);
|
||||
assert decrypted == length;
|
||||
} catch(GeneralSecurityException badCipher) {
|
||||
throw new RuntimeException(badCipher);
|
||||
|
||||
Reference in New Issue
Block a user