openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetSignature()

int32_t HITLS_CFG_SetSignature ( HITLS_Config config,
const uint16_t *  signAlgs,
uint16_t  signAlgsSize 
)

Set the signature algorithms supported during negotiation. The signature algorithms supported by the HiTLS can be queried in the HITLS_SignHashAlgo file.

注意
If an unsupported signature algorithm is set, an error will be reported during configuration check.
参数
config[OUT] Config context
signAlgs[IN] Signature algorithm array, that is, the enumerated value of HITLS_SignHashAlgo.
signAlgsSize[IN] Signature algorithm array length
返回值
HITLS_SUCCESS,ifsuccessful. For details about other error codes, see hitls_error.h.