⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

x25519_shared_secret

Function x25519_shared_secret 

Source
pub fn x25519_shared_secret(
    private_key: &[u8; 32],
    peer_public: &[u8; 32],
) -> [u8; 32]
Expand description

Compute X25519 shared secret: shared = scalar_mult(our_private, their_public)