Method Crypto.ECC.Curve25519.EdDSA()->jose_sign()


Method jose_sign

string(7bit)|zero jose_sign(string(8bit) message, .Hash|void h, mapping(string(7bit):string(7bit)|int)|void headers)

Description

Signs the message with a JOSE JWS EdDSA signature.

Parameter message

Message to sign.

Parameter h

Hash algorithm to use; ignored for Ed25519.

Returns

Returns the signature on success, and 0 (zero) on failure.

See also

pkcs_verify(), salt_size(), RFC 7515