क्रिप्टो - थ्रेड स्टैक
इस मॉड्यूल में क्रिप्टोग्राफ़िक फ़ंक्शन शामिल हैं.
खास जानकारी
टाइपडीफ़ |
|
---|---|
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
एचएमएसी कंप्यूटेशन करता है.
|
टाइपडीफ़
फ़ंक्शन
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
)
एचएमएसी कंप्यूटेशन करता है.
ब्यौरा | |||||||||
---|---|---|---|---|---|---|---|---|---|
पैरामीटर |
|
संसाधन
OpenThread API के रेफ़रंस के विषय, सोर्स कोड से मिलते हैं. यह सोर्स GitHub पर उपलब्ध है. ज़्यादा जानकारी या हमारे दस्तावेज़ में योगदान देने के लिए, संसाधन देखें.