Fixed a typo.

This commit is contained in:
akwizgran
2016-01-04 12:47:49 +00:00
parent 6a4aea77fb
commit 99f8d21eea

View File

@@ -310,7 +310,7 @@ class CryptoComponentImpl implements CryptoComponent {
throw new IllegalArgumentException();
// Initialise the PRF
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();
if (macLength < TAG_LENGTH) throw new IllegalStateException();
// The input is the stream number as a 64-bit integer