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 Sodiumprimitive, 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 DetailsThis class inherits a constructor from RbNaCl::Auth
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4