|
◆ CRYPT_EAL_PkeySign()
int32_t CRYPT_EAL_PkeySign |
( |
const CRYPT_EAL_PkeyCtx * |
pkey, |
|
|
CRYPT_MD_AlgId |
id, |
|
|
const uint8_t * |
data, |
|
|
uint32_t |
dataLen, |
|
|
uint8_t * |
sign, |
|
|
uint32_t * |
signLen |
|
) |
| |
Signature interface
- 参数
-
pkey | [IN] Key session |
id | [IN] Hash algorithm ID. |
data | [IN] Plaintext data |
dataLen | [IN] Plaintext length. The maximum length is [0, 0xffffffff]. |
sign | [OUT] Signature data. The length of the memory buff used to save the signature must be greater than or equal to the key modulo length. |
signLen | [OUT/IN] Length of the signature data, You can obtain the value by calling CRYPT_EAL_PkeyGetSignLen. |
- 返回值
-
|