openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CERT_EncryptCallBack

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

Encrypted by the certificate public key.

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