10 #ifndef YARP_OS_IMPL_AUTHHMAC_H
11 #define YARP_OS_IMPL_AUTHHMAC_H
16 #include <hmac_sha2.h>
18 #define DIGEST_SIZE SHA256_DIGEST_SIZE
19 #define HMAC_CONTEXT hmac_sha256_ctx
20 #define HMAC_INIT hmac_sha256_init
21 #define HMAC_REINIT hmac_sha256_reinit
22 #define HMAC_UPDATE hmac_sha256_update
23 #define HMAC_FINAL hmac_sha256_final
52 static bool check_hmac(
unsigned char* mac,
unsigned char* mac_check);
53 static void fill_nonce(
unsigned char* nonce);
55 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.