Function nrfxlib_sys::ocrypto_rsa1024_pss_sha256_sign
source · pub unsafe extern "C" fn ocrypto_rsa1024_pss_sha256_sign(
s: *mut u8,
m: *const u8,
m_len: usize,
salt: *const u8,
s_len: usize,
sk: *const ocrypto_rsa1024_key
) -> c_int
Expand description
1024-bit RSA PSS SHA-256 sign.
The message * m
- is signed and the signature returned in * s
- .
s
- The generated 128-byte signature.m
- The message to be signed.m_len
- Length of *m
- .salt
- The salt to be used.s_len
- Length of *salt
- .sk
- A valid 1024-bit RSA secret key.
Returns -2 If the salt is too long. Returns 0 On success.
@remark The key * sk
- should be initialized with * ocrypto_rsa1024_init_key
- .
@remark * s
- may be same as * m
- .