openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CRYPT_DHGetParametersCallback

typedef int32_t(* CRYPT_DHGetParametersCallback) (HITLS_CRYPT_Key *key, uint8_t *p, uint16_t *plen, uint8_t *g, uint16_t *glen)

DH: Obtain p g plen glen by using the key handle.

注意
If the p and g parameters are null pointers, only the lengths of p and g are obtained.
参数
key[IN] Key handle
p[OUT] p Parameter
plen[IN/OUT] IN: Maximum length of data padding OUT: p Parameter length
g[OUT] g Parameter
glen[IN/OUT] IN: Maximum length of data padding OUT: g Parameter length
返回值
0indicates success. Other values indicate failure.