pub unsafe extern "C" fn ocrypto_rsa1024_pkcs1_v15_sha256_crt_sign(
s: *mut u8,
m: *const u8,
m_len: usize,
sk: *const ocrypto_rsa1024_crt_key
) -> c_int
Expand description
1024-bit RSA PKCS1 V1.5 SHA-256 sign with CRT acceleration.
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
- .sk
- A valid 1024-bit RSA secret key with CRT coefficients.
Returns 0
@remark The key * sk
- should be initialized with * ocrypto_rsa1024_init_crt_key
- .
@remark * s
- may be same as * m
- .