Crypto - 執行緒堆疊
這個模組包含加密編譯函式。
摘要
Typedefs |
|
---|---|
otCryptoSha256Hash
|
typedef |
Functions |
|
---|---|
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 運算。
|
結構 |
|
---|---|
otCryptoSha256Hash |
此結構代表一個 SHA-256 雜湊。 |
Typedefs
otCryptoSha256Hash
otPlatCryptoSha256Hash otCryptoSha256Hash
Functions
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 取得。如需詳細資訊或為說明文件貢獻一己之力,請參閱資源。