|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
hash通道及算法参数结构体 更多...
#include <cipher.h>
成员变量 | |
| uint8_t * | key |
| uint32_t | key_len |
| uint32_t | keyslot_handle |
| uapi_drv_cipher_hash_type_t | hash_type |
| bool | is_keyslot |
| bool | is_long_term |
hash通道及算法参数结构体
| uapi_drv_cipher_hash_type_t uapi_drv_hash_attr::hash_type |
hash算法类型。参考 uapi_drv_cipher_hash_type_t
| bool uapi_drv_hash_attr::is_keyslot |
指示hmac算法是否使用keyslot 。
| bool uapi_drv_hash_attr::is_long_term |
指示创建的通道为长期通道还是短期通道。最大支持创建2个长期通道和8个短期通道。
| uint8_t* uapi_drv_hash_attr::key |
指向hmac算法使用密钥的指针, 当使用hmac算法且is_keyslot为false时该参数生效
| uint32_t uapi_drv_hash_attr::key_len |
密钥长度,单位为字节。当算法为HMAC-SHA1/SHA224/SHA256/SM3时,不超过64字节; 当算法为HMAC-SHA384/SHA512时,不超过128字节。
| uint32_t uapi_drv_hash_attr::keyslot_handle |
hmac算法使用的keyslot通道句柄,当is_keyslot为true时该参数生效。