pub unsafe extern "C" fn Hacl_Ed25519_sign(
    signature: *mut u8,
    private_key: *mut u8,
    msg_len: u32,
    msg: *mut u8
)
Expand description

Create an Ed25519 signature.

The outparam signature points to 64 bytes of valid memory, i.e., uint8_t[64]. The argument private_key points to 32 bytes of valid memory, i.e., uint8_t[32]. The argument msg points to msg_len bytes of valid memory, i.e., uint8_t[msg_len].

The function first calls expand_keys and then invokes sign_expanded.

If one needs to sign several messages under the same private key, it is more efficient to call expand_keys only once and sign_expanded multiple times, for each message.