Skip to main content

ecdsa_sign

Function ecdsa_sign 

Source
pub fn ecdsa_sign(
    suite: SecuritySuite,
    private_key: &[u8],
    message: &[u8],
) -> Result<Vec<u8>, SignError>
Expand description

Signs message with an ECDSA private key (raw scalar) on the suite’s curve, returning the fixed-size r ‖ s signature (64 octets for P-256, 96 for P-384). Signing is deterministic (RFC 6979).