Crypto - מקבץ שרשורים
מודול זה כולל פונקציות קריפטוגרפיות.
סיכום
סוג מגן |
|
---|---|
otCryptoSha256Hash
|
typedefstruct otCryptoSha256Hash
המבנה הזה מייצג גיבוב (hash) מסוג 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 |
המבנה הזה מייצג גיבוב (hash) מסוג SHA-256. |
סוג מגן
otCryptoSha256Hash
struct otCryptoSha256Hash otCryptoSha256Hash
המבנה הזה מייצג גיבוב (hash) מסוג 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. למידע נוסף או כדי לתרום לתיעוד שלנו, יש לעיין בקטע משאבים.