mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
code cleanup, support keypairs, init support for X25519
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user