openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CRYPT_EAL_PkeyVerifyData()

int32_t CRYPT_EAL_PkeyVerifyData ( const CRYPT_EAL_PkeyCtx pkey,
const uint8_t *  hash,
uint32_t  hashLen,
const uint8_t *  sign,
uint32_t  signLen 
)

Verify the signature of the hash data

参数
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[IN] Signature data
signLen[IN] Length of the signature data
返回值
CRYPT_SUCCESS,ifsuccessful. For other error codes, see crypt_errno.h.