7 #ifndef YARP_OS_IMPL_AUTHHMAC_H
8 #define YARP_OS_IMPL_AUTHHMAC_H
13 #include <hmac_sha2.h>
15 #define DIGEST_SIZE SHA256_DIGEST_SIZE
16 #define HMAC_CONTEXT hmac_sha256_ctx
17 #define HMAC_INIT hmac_sha256_init
18 #define HMAC_REINIT hmac_sha256_reinit
19 #define HMAC_UPDATE hmac_sha256_update
20 #define HMAC_FINAL hmac_sha256_final
49 static bool check_hmac(
unsigned char* mac,
unsigned char* mac_check);
50 static void fill_nonce(
unsigned char* nonce);
52 bool authentication_enabled;
Simple specification of the minimum functions needed from output streams.
3-way authentication via HMAC
virtual ~AuthHMAC()=default
Destructor.
The main, catch-all namespace for YARP.