Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
15
Src/auth/OAuthKey.h
Normal file
15
Src/auth/OAuthKey.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "hmac_sha256.h"
|
||||
#include <bfc/platform/types.h>
|
||||
|
||||
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];
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue