#include <stddef.h>
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \file bearssl_block.h
*
* # Block Ciphers and Symmetric Ciphers
*/
br_poly1305_run br_poly1305_ctmulq_get(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include <stddef.h>
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \file bearssl_ec.h
*
* # Elliptic Curves
*/
br_ecdsa_vrfy br_ecdsa_vrfy_raw_get_default(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include <stdint.h>
#include <string.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \file bearssl_hash.h
*
* # Hash Functions
*/
br_ghash br_ghash_pwr8_get(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include "bearssl_hash.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \file bearssl_hmac.h
*
* # HMAC
const void *data, size_t len, size_t min_len, size_t max_len,
void *out);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include <stddef.h>
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \file bearssl_pem.h
*
* # PEM Support
return ctx->name;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include <stddef.h>
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \file bearssl_prf.h
*
* # The TLS PRF
const void *secret, size_t secret_len,
const char *label, const void *seed, size_t seed_len);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include <stddef.h>
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \file bearssl_rand.h
*
* # Pseudo-Random Generators
return ctx->digest_class;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include <stddef.h>
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \file bearssl_rsa.h
*
* # RSA
uint32_t br_rsa_ssl_decrypt(br_rsa_private core, const br_rsa_private_key *sk,
unsigned char *data, size_t len);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include "bearssl_rand.h"
#include "bearssl_x509.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \file bearssl_ssl.h
*
* # SSL
#define BR_ALERT_UNSUPPORTED_EXTENSION 110
#define BR_ALERT_NO_APPLICATION_PROTOCOL 120
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include "bearssl_hash.h"
#include "bearssl_rsa.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \file bearssl_x509.h
*
* # X.509 Certificate Chain Processing
}
}
+#ifdef __cplusplus
+}
+#endif
+
#endif