تشفير
تتضمن هذه الوحدة وظائف التشفير.
ملخص
النوع | |
---|---|
otCryptoSha256Hash | typedefstruct otCryptoSha256Hash يمثل هذا الهيكل تجزئة SHA-256. |
المتغيرات | |
---|---|
OT_TOOL_PACKED_END |
المهام | |
---|---|
otCryptoAesCcm (const uint8_t *aKey, uint16_t aKeyLength, 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 uint8_t *aKey, uint16_t aKeyLength, const uint8_t *aBuf, uint16_t aBufLength, otCryptoSha256Hash *aHash) | void تؤدي هذه الوظيفة حساب HMAC. |
الهياكل | |
---|---|
otCryptoSha256 تجزئة | يمثل هذا الهيكل تجزئة SHA-256. |
النوع
المتغيرات
OT_TOOL_PACKED_END
OT_TOOL_PACKED_BEGIN struct otCryptoSha256Hash OT_TOOL_PACKED_END
المهام
otCryptoAesCcm
void otCryptoAesCcm( const uint8_t *aKey, uint16_t aKeyLength, 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 uint8_t *aKey, uint16_t aKeyLength, const uint8_t *aBuf, uint16_t aBufLength, otCryptoSha256Hash *aHash )
تؤدي هذه الوظيفة حساب HMAC.
تفاصيل | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
المعلمات |
|
وحدات الماكرو
OT_CRYPTO_SHA256_HASH_SIZE
OT_CRYPTO_SHA256_HASH_SIZE 32
طول تجزئة SHA256 (بالبايت).
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 2021-01-20 UTC.