Crypto - Thread Stack
این ماژول شامل توابع رمزنگاری است.
خلاصه
Typedefs | |
---|---|
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 را انجام می دهد. |
سازه ها | |
---|---|
otCryptoSha256Hash | این ساختار یک هش SHA-256 را نشان می دهد. |
Typedefs
otCryptoSha256Hash
struct otCryptoSha256Hash otCryptoSha256Hash
این ساختار یک هش SHA-256 را نشان می دهد.
متغیرها
OT_TOOL_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 سرچشمه می گیرند. برای اطلاعات بیشتر، یا مشارکت در اسناد ما، به منابع مراجعه کنید.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Thread is a registered trademark of the Thread Group, Inc.
Last updated 2022-02-15 UTC.