Added AESCTR_DRBG implementation (beta).
[BearSSL] / inc / bearssl_hmac.h
index 71e9451..14147d8 100644 (file)
 
 #include "bearssl_hash.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** \file bearssl_hmac.h
  *
  * # HMAC
@@ -151,7 +155,7 @@ void br_hmac_update(br_hmac_context *ctx, const void *data, size_t len);
 /**
  * \brief Compute the HMAC output.
  *
- * The destination buffer MUST be large enough to accomodate the result;
+ * The destination buffer MUST be large enough to accommodate the result;
  * its length is at most the "natural length" of HMAC (i.e. the output
  * length of the underlying hash function). The context is NOT modified;
  * further bytes may be processed. Thus, "partial HMAC" values can be
@@ -200,4 +204,8 @@ size_t br_hmac_outCT(const br_hmac_context *ctx,
        const void *data, size_t len, size_t min_len, size_t max_len,
        void *out);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif