class RbNaCl::OneTimeAuths::Poly1305
@see nacl.cr.yp.to/onetimeauth.html<br><br>can also create them.
This is a secret key authenticator, i.e. anyone who can verify signatures
key.
attacker enough information to forge further authenticators for the same
authenticator for two messages using the same key probably gives an
As the name suggests, this is a **ONE TIME** authenticator. Computing an
signatures and also has a constant-time implementation for checking them.
the provided authenticator. The class provides methods for generating
the message by recomputing the tag over the message and then comparing it to
The authenticator can be used at a later time to verify the provenance of
Computes an authenticator using poly1305
def compute_authenticator(authenticator, message)
def compute_authenticator(authenticator, message) self.class.onetimeauth_poly1305(authenticator, message, message.bytesize, key) end
def verify_message(authenticator, message)
def verify_message(authenticator, message) self.class.onetimeauth_poly1305_verify(authenticator, message, message.bytesize, key) end