Poly1305 constructor
const
Poly1305(
- Uint8List keypair
Create a new instance of Poly1305 MAC with a 16 or 32-byte long keypair. The first 16-bytes will be used as a secret key to encode the message, and the last 16-bytes will be used as the authentication key to sign it.
Parameters:
keypairis required and must contain exactly 16 or 32 bytes.
If keypair length is 16 bytes, the final digest will not be signed.
Warning: The algorithm is designed to ensure unforgeability of a message with a random key. Authenticating multiple messages using the same key could allow for forgeries.
See also:
_Poly1305.pairto input key(r) and secret(s) pair separately.
Implementation
const Poly1305(this.keypair);