pub fn ed25519ph_sign(
sk: &Ed25519SecretKey,
msg: &[u8],
context: &[u8],
) -> Option<Ed25519Signature>Expand description
Sign a message with Ed25519ph (RFC 8032 §5.1.7, pre-hashed mode).
The message is internally hashed with SHA-512 before being fed
into the Ed25519 algebraic core. context may be empty (unlike
ctx mode); maximum context length is still 255 bytes.