Poly1305 message authentication code (pure Crystal limb-arithmetic backend).
Uses 3×44-bit limbs in UInt64 with UInt128 intermediate products,
following the poly1305-donna algorithm. Avoids heap-allocated BigInt
entirely.
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.
SourceInitializes the Poly1305 context with a given 32-byte hex-encoded key.
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.
Source