आभासी मुद्रा - थ्रेड स्टैक
इस मॉड्यूल में क्रिप्टोग्राफ़िक फ़ंक्शन शामिल हैं.
खास जानकारी
टाइपडेफ़ |
|
---|---|
otCryptoSha256Hash
|
typedefstruct otCryptoSha256Hash
यह स्ट्रक्चर SHA-256 हैश को दिखाता है. |
वैरिएबल |
|
---|---|
OT_TOOL_PACKED_END
|
गतिविधियां |
|
---|---|
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 का हिसाब लगाया जाता है.
|
otCryptoEcdsaSign(uint8_t *aOutput, uint16_t *aOutputLength, const uint8_t *aInputHash, uint16_t aInputHashLength, const uint8_t *aPrivateKey, uint16_t aPrivateKeyLength)
|
इस तरीके से ECDSA चिह्न बनता है.
|
otCryptoHmacSha256(const otCryptoKey *aKey, const uint8_t *aBuf, uint16_t aBufLength, otCryptoSha256Hash *aHash)
|
void
इस फ़ंक्शन से HMAC कंप्यूटेशन किया जाता है.
|
स्ट्रक्चर |
|
---|---|
otCryptoSha256हैश |
यह स्ट्रक्चर SHA-256 हैश को दिखाता है. |
टाइपडेफ़
otCryptoSha256हैश
struct otCryptoSha256Hash otCryptoSha256Hash
यह स्ट्रक्चर SHA-256 हैश को दिखाता है.
वैरिएबल
OT_टूल_PACKED_END
OT_TOOL_PACKED_BEGIN struct otCryptoSha256Hash OT_TOOL_PACKED_END
गतिविधियां
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 का हिसाब लगाया जाता है.
ब्यौरा | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
पैरामीटर |
|
otCryptoEcdsaSign
otError otCryptoEcdsaSign( uint8_t *aOutput, uint16_t *aOutputLength, const uint8_t *aInputHash, uint16_t aInputHashLength, const uint8_t *aPrivateKey, uint16_t aPrivateKeyLength )
इस तरीके से ECDSA चिह्न बनता है.
ब्यौरा | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
पैरामीटर |
|
||||||||||||
रिटर्न वैल्यू |
|
otCryptoHmacSha256
void otCryptoHmacSha256( const otCryptoKey *aKey, const uint8_t *aBuf, uint16_t aBufLength, otCryptoSha256Hash *aHash )
इस फ़ंक्शन से HMAC कंप्यूटेशन किया जाता है.
ब्यौरा | |||||||||
---|---|---|---|---|---|---|---|---|---|
पैरामीटर |
|
मैक्रो
OT_CRYPTO_SHA256_HASH_SIZE
OT_CRYPTO_SHA256_HASH_SIZE 32
SHA256 हैश की लंबाई (बाइट में).
संसाधन
OpenThread API रेफ़रंस विषय, स्रोत कोड से आते हैं, जो GitHub पर उपलब्ध है. ज़्यादा जानकारी पाने या हमारे दस्तावेज़ में योगदान देने के लिए, संसाधन देखें.