|
MCCI TweetNaCl
TweetNaCl library adapted for embedded use
|
Collaboration diagram for Authentication:Data Structures | |
| struct | mcci_tweetnacl_auth_authenticator_t |
| abstract type for authenticators More... | |
| struct | mcci_tweetnacl_auth_key_t |
| abstract type for auth keys More... | |
Functions | |
| static void | mcci_tweetnacl_auth (mcci_tweetnacl_auth_authenticator_t *pAuth, const unsigned char *pMessage, size_t nMessage, const mcci_tweetnacl_auth_key_t *pKey) |
| Secret-key message authentication: generate authenticator (HMAC) More... | |
| static mcci_tweetnacl_result_t | mcci_tweetnacl_auth_verify (const mcci_tweetnacl_auth_authenticator_t *pAuth, const unsigned char *pMessage, size_t nMessage, const mcci_tweetnacl_auth_key_t *pKey) |
| Secret-key message authentication: verify authenticity (HMAC) More... | |
|
inlinestatic |
Secret-key message authentication: generate authenticator (HMAC)
| [out] | pAuth | is set to the authenticator |
| [in] | pMessage | is the message to be hashed |
| [in] | nMessage | is the length of the message in bytes |
| [in] | pKey | is the secret key to be used for generating the authenticator. |
Definition at line 83 of file mcci_tweetnacl_auth.h.
References mcci_tweetnacl_auth_authenticator_t::bytes.
|
inlinestatic |
Secret-key message authentication: verify authenticity (HMAC)
| [in] | pAuth | is the authenticator |
| [in] | pMessage | is the message to be checked |
| [in] | nMessage | is the length of the message in bytes |
| [in] | pKey | is the secret key that was used to generate the authenticator. |
Definition at line 112 of file mcci_tweetnacl_auth.h.
References mcci_tweetnacl_auth_authenticator_t::bytes.