Skip to main content

ed25519ctx_sign

Function ed25519ctx_sign 

Source
pub fn ed25519ctx_sign(
    sk: &Ed25519SecretKey,
    msg: &[u8],
    context: &[u8],
) -> Option<Ed25519Signature>
Expand description

Sign a message with Ed25519ctx (RFC 8032 §5.1.6).

context is a non-empty domain-separation tag (max 255 bytes). Returns None if the context is empty (the RFC mandates a non-empty context for ctx mode) or longer than 255 bytes.