Poly1305KeyGeneratorCheckKey Method

Checks a 32 byte key for compliance with the Poly1305 key requirements, e.g.
C#
k[0] ... k[15], r[0] ... r[15]
with the required bits in
C#
r
cleared as per Clamp(Byte).

Definition

Namespace: Org.BouncyCastle.Crypto.Generators
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public static void CheckKey(
	byte[] key
)

Parameters

key  Byte
Key.

Exceptions

ArgumentExceptionif the key is of the wrong length, or has invalid bits set in the
C#
r
portion of the key.

See Also