Poly1305 message authentication code (pure Crystal BigInt implementation).
Constructors
Generating the Poly1305 Key Using ChaCha20
Sourcechacha20(cipher : ChaCha20::Cipher) : self
Generating the Poly1305 Key Using ChaCha20
SourceInitializes the Poly1305 context with a given 32-byte key.
The key should be used only once per message and then discarded.
SourceInitializes the Poly1305 context with a given 32-byte hex-encoded key.
The key should be used only once per message and then discarded.
SourceClass methods
A convenience method to compute a Poly1305 MAC for a single message.
SourceInstance methods
final
Finalizes the MAC computation and returns the 16-byte authenticator.
SourceProcesses a message fragment, msg bytes should be 16 bytes alligned
if different size is used the final block is assumed, further
calculations would be incorrect
Source