mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-22 15:49:53 +01:00
Fixed a typo.
This commit is contained in:
@@ -310,7 +310,7 @@ class CryptoComponentImpl implements CryptoComponent {
|
|||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException();
|
||||||
// Initialise the PRF
|
// Initialise the PRF
|
||||||
Digest prf = new Blake2sDigest(tagKey.getBytes());
|
Digest prf = new Blake2sDigest(tagKey.getBytes());
|
||||||
// The output of the PRF must be long enough to use as a key
|
// The output of the PRF must be long enough to use as a tag
|
||||||
int macLength = prf.getDigestSize();
|
int macLength = prf.getDigestSize();
|
||||||
if (macLength < TAG_LENGTH) throw new IllegalStateException();
|
if (macLength < TAG_LENGTH) throw new IllegalStateException();
|
||||||
// The input is the stream number as a 64-bit integer
|
// The input is the stream number as a 64-bit integer
|
||||||
|
|||||||
Reference in New Issue
Block a user