加密 - 线程堆栈
此模块包含加密功能。
摘要
类型定义符 |
|
---|---|
otCryptoSha256Hash
|
typedef 表示 SHA-256 哈希值。 |
函数 |
|
---|---|
otCryptoAesCcm(const otCryptoKey *aKey, uint8_t aTagLength, const void *aNonce, uint8_t aNonceLength, const void *aHeader, uint32_t aHeaderLength, void *aPlainText, void *aCipherText, uint32_t aLength, bool aEncrypt, void *aTag)
|
void
执行 AES CCM 计算。
|
otCryptoHmacSha256(const otCryptoKey *aKey, const uint8_t *aBuf, uint16_t aBufLength, otCryptoSha256Hash *aHash)
|
void
执行 HMAC 计算。
|
类型定义符
函数
otCryptoAesCcm
void otCryptoAesCcm(
const otCryptoKey *aKey,
uint8_t aTagLength,
const void *aNonce,
uint8_t aNonceLength,
const void *aHeader,
uint32_t aHeaderLength,
void *aPlainText,
void *aCipherText,
uint32_t aLength,
bool aEncrypt,
void *aTag
)
执行 AES CCM 计算。
具体说明 | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
参数 |
|
otCryptoHmacSha256
void otCryptoHmacSha256(
const otCryptoKey *aKey,
const uint8_t *aBuf,
uint16_t aBufLength,
otCryptoSha256Hash *aHash
)
执行 HMAC 计算。
具体说明 | |||||||||
---|---|---|---|---|---|---|---|---|---|
参数 |
|
资源
OpenThread API 参考文档源自 GitHub 上提供的源代码。如需了解详情,或者为我们的文档做贡献,请参阅资源。