Class: RbNaCl::HMAC::SHA512256
- Extended by:
- Sodium
- Defined in:
- lib/rbnacl/hmac/sha512256.rb
Overview
Computes an authenticator as HMAC-SHA-512 truncated to 256-bits
The authenticator can be used at a later time to verify the provenance of the message by recomputing the HMAC 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.
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