add buffer read/write functions with cursors

This commit is contained in:
2026-10-16 14:25:18 +02:00
parent c475e8b4fe
commit 945cc56d98
4 changed files with 299 additions and 0 deletions
+5
View File
@@ -19,6 +19,11 @@ extern "C" {
#define BRAVAIS_NO_TIMEOUT UINT64_MAX
#define BRAVAIS_MAX_DATAGRAM_SIZE 1500
#define BRAVAIS_MAX_PLAINTEXT_SIZE 65535
#define BRAVAIS_KEY_LENGTH 32 // For X25519 private and public - do PQC later
typedef enum {
// Error codes; Generally <0 = error, 0 = success
BRAVAIS_EMPTY = 1, // Nothing to emit right now