Function nrfxlib_sys::ocrypto_ed25519_sign_ctx
source · pub unsafe extern "C" fn ocrypto_ed25519_sign_ctx(
ctx: *mut ocrypto_ed25519_ctx,
sig: *mut u8,
m: *const u8,
m_len: usize,
sk: *const u8,
pk: *const u8
)
Expand description
Ed25519 signature generate with context.
The message * m
- is signed using the secret key * sk
- and the corresponding
public key * pk
- . The signature is put into * sig
- .
ctx
- Context.sig
- Generated signature.m
- Input message.m_len
- Length of *m
- .sk
- Secret key.pk
- Public key.