|
|
◆ CRYPT_EAL_PkeySignData()
| int32_t CRYPT_EAL_PkeySignData |
( |
const CRYPT_EAL_PkeyCtx * |
pkey, |
|
|
const uint8_t * |
hash, |
|
|
uint32_t |
hashLen, |
|
|
uint8_t * |
sign, |
|
|
uint32_t * |
signLen |
|
) |
| |
Sign hash data.
- Parameters
-
| pkey | [IN] Key session |
| hash | [IN] Hash data |
| hashLen | [IN] Hash length. When RSA is used for signature, the hash length should correspond to the digest length of the hash algorithm on which the padding method depends. |
| sign | [OUT] Signature data. The length of the memory buff used to save the signature must be greater than or equal to the key module length. |
| signLen | [OUT/IN] Length of the signature data. The value can be obtained by calling CRYPT_EAL_PkeyGetSignLen. |
- Return values
-
|