code cleanup, support keypairs, init support for X25519

This commit is contained in:
Halil Durak
2026-01-13 19:39:28 +03:00
parent fd26ae4b5b
commit 7ae3e8cb47
2 changed files with 54 additions and 0 deletions

View File

@@ -26,3 +26,9 @@ pub extern fn HMAC(
out: [*]u8,
out_len: *c_uint,
) ?[*]u8;
pub const X25519_PRIVATE_KEY_LEN = 32;
pub const X25519_PUBLIC_VALUE_LEN = 32;
pub const X25519_SHARED_KEY_LEN = 32;
pub extern fn X25519_keypair(out_public_value: *[32]u8, out_private_key: *[32]u8) void;