#include <inttypes.h>
#include "monocypher.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
crypto_poly1305_ctx poly;
uint64_t ad_size;
size_t text_size);
int crypto_unlock_final(crypto_unlock_ctx *ctx, const uint8_t mac[16]);
+#ifdef __cplusplus
+}
+#endif
+
#endif // AEAD_INCR_H
#include <stddef.h>
#include <inttypes.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
// Chacha20
typedef struct {
uint8_t key[32];
void crypto_chacha20_stream(crypto_chacha_ctx *ctx,
uint8_t *stream, size_t size);
+#ifdef __cplusplus
+}
+#endif
#endif // CHACHA20_H
#ifdef __cplusplus
}
#endif
-
+
#endif // MONOCYPHER_H
#include "monocypher.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
////////////////////////
/// Type definitions ///
////////////////////////
void crypto_from_ed25519_private(uint8_t x25519[32], const uint8_t eddsa[32]);
#define crypto_from_ed25519_public crypto_from_eddsa_public
+#ifdef __cplusplus
+}
+#endif
#endif // ED25519_H