openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CERT_DecryptCallBack

typedef int32_t(* CERT_DecryptCallBack) (HITLS_Ctx *ctx, HITLS_CERT_Key *key, const uint8_t *in, uint32_t inLen, uint8_t *out, uint32_t *outLen)

Use the certificate private key to decrypt the data.

参数
ctx[IN] TLS link object.
key[IN] Certificate private key.
in[IN] Ciphertext.
inLen[IN] Ciphertext length.
out[OUT] Plaintext.
outLen[IN/OUT] IN: maximum plaintext length OUT: actual plaintext length.
返回值
HITLS_SUCCESSindicates success. Other values are considered as failure.