คริปโตเคอเรนซี - สแต็กชุดข้อความ
โมดูลนี้มีฟังก์ชันการเข้ารหัส
สรุป
พิมพ์ดีด |
|
---|---|
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
วิธีการนี้จะคํานวณ ACM 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 |
พิมพ์ดีด
ตัวแปร
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 )
วิธีการนี้จะคํานวณ ACM CCM
รายละเอียด | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
พารามิเตอร์ |
|
ป้าย CryptoEcdsaSign
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 โปรดดูข้อมูลเพิ่มเติมในหรือไปที่เอกสารประกอบที่แหล่งข้อมูล