hmac_sha1_init
使用派生密钥初始化hmac_sha1计算上下文结构。
int hmac_sha1_init(sha1_hmac_ctx_t *ctx, sha1_hmac_key_data_t *kd);
参数
参数名 |
描述 |
取值范围 |
输入/输出 |
---|---|---|---|
ctx |
hmac_sha1上下文结构体。 |
非空 |
输出 |
kd |
派生密钥,通过hmac_sha1_key_data生成后传入。 |
非空 |
输入 |
返回值
- 成功:返回值为0。
- 失败:返回值小于0。
父主题: 接口说明