Method Crypto.RSA.PSSState()->jose_sign()
- Method jose_sign
local
string(7bit)
jose_sign(string(8bit)
message
,mapping
(string(7bit)
:string(7bit)
|int
)|void
headers
,.Hash
|void
h
)- Description
Signs the
message
with a JOSE JWS RSASSA-PSS signature using hash algorithmh
.- Parameter
message
Message to sign.
- Parameter
headers
JOSE headers to use. Typically a mapping with a single element
"typ"
.- Parameter
h
Hash algorithm to use. Currently defaults to SHA256.
- Returns
Returns the signature on success, and
0
(zero) on failure (typically that the hash + salt combo is too large for the RSA modulo).- See also
pkcs_sign(),
salt_size()
, RFC 7515 section 3.5