Class: RbNaCl::OneTimeAuths::Poly1305

  • Object
show all
Extended by:
Defined in:


Computes an authenticator using poly1305

The authenticator can be used at a later time to verify the provenance of the message by recomputing the tag over the message and then comparing it to the provided authenticator. The class provides methods for generating signatures and also has a constant-time implementation for checking them.

As the name suggests, this is a ONE TIME authenticator. Computing an authenticator for two messages using the same key probably gives an attacker enough information to forge further authenticators for the same key.

This is a secret key authenticator, i.e. anyone who can verify signatures can also create them.

Constant Summary

Constants inherited from Auth


Method Summary

Methods included from Sodium

primitive, sodium_constant, sodium_function, sodium_function_with_return_code, sodium_primitive, sodium_type

Methods inherited from Auth

#auth, auth, #initialize, #key_bytes, key_bytes, #primitive, #tag_bytes, tag_bytes, verify, #verify

Constructor Details

This class inherits a constructor from RbNaCl::Auth