1
0

OAuthKey.h 325 B

123456789101112131415
  1. #include "hmac_sha256.h"
  2. #include <bfc/platform/types.h>
  3. class OAuthKey
  4. {
  5. public:
  6. OAuthKey(const void *key, size_t key_len);
  7. ~OAuthKey();
  8. void FeedMessage(const void *data, size_t data_len);
  9. void EndMessage();
  10. void GetBase64(char *output, size_t len);
  11. HMAC_SHA256_CTX ctx;
  12. uint8_t buf[HMAC_SHA256_DIGEST_LENGTH];
  13. };