From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/auth/OAuthKey.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Src/auth/OAuthKey.h (limited to 'Src/auth/OAuthKey.h') diff --git a/Src/auth/OAuthKey.h b/Src/auth/OAuthKey.h new file mode 100644 index 00000000..f52668ed --- /dev/null +++ b/Src/auth/OAuthKey.h @@ -0,0 +1,15 @@ +#include "hmac_sha256.h" +#include + +class OAuthKey +{ +public: + OAuthKey(const void *key, size_t key_len); + ~OAuthKey(); + void FeedMessage(const void *data, size_t data_len); + void EndMessage(); + void GetBase64(char *output, size_t len); + HMAC_SHA256_CTX ctx; + uint8_t buf[HMAC_SHA256_DIGEST_LENGTH]; +}; + -- cgit