ส่งความคิดเห็น
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Crypto - กลุ่มเทรด
โมดูลนี้มีฟังก์ชันการเข้ารหัส
สรุป
ฟังก์ชัน
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
otCryptoHmacSha256 (const otCryptoKey *aKey, const uint8_t *aBuf, uint16_t aBufLength, otCryptoSha256Hash *aHash)
void
คำนวณ HMAC
Typedef
ฟังก์ชัน
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
รายละเอียด
พารามิเตอร์
[in] aKey
ตัวชี้ไปยังคีย์
[in] aTagLength
ความยาวของแท็กในหน่วยไบต์
[in] aNonce
ตัวชี้ไปยังค่าที่ได้จากการสุ่ม
[in] aNonceLength
ความยาวของค่าที่ได้จากโหนดในหน่วยไบต์
[in] aHeader
ตัวชี้ไปยังส่วนหัว
[in] aHeaderLength
ความยาวของส่วนหัวในหน่วยไบต์
[in,out] aPlainText
ตัวชี้ไปยังข้อความธรรมดา
[in,out] aCipherText
ตัวชี้ไปยังข้อความเข้ารหัส
[in] aLength
ความยาวของข้อความธรรมดาในหน่วยไบต์
[in] aEncrypt
true
เมื่อเข้ารหัสและ false
ในการถอดรหัส
[out] aTag
ตัวชี้ไปยังแท็ก
otCryptoHmacSha256
void otCryptoHmacSha256(
const otCryptoKey *aKey,
const uint8_t *aBuf,
uint16_t aBufLength,
otCryptoSha256Hash *aHash
)
คำนวณ HMAC
รายละเอียด
พารามิเตอร์
[in] aKey
ตัวชี้ไปยังคีย์
[in] aBuf
ตัวชี้ไปยังบัฟเฟอร์อินพุต
[in] aBufLength
ความยาวของ aBuf
ในหน่วยไบต์
[out] aHash
ตัวชี้ไปยังโครงสร้าง otCryptoSha256Hash
เพื่อเอาต์พุตค่าแฮช
แหล่งข้อมูล
หัวข้ออ้างอิง API ของ OpenThread จะมาจากซอร์สโค้ดซึ่งพร้อมใช้งานใน 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. The OPENTHREAD and related marks are trademarks of the Thread Group and are used under license.
อัปเดตล่าสุด 2023-12-01 UTC
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"ไม่มีข้อมูลที่ฉันต้องการ"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"ล้าสมัย"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ปัญหาเกี่ยวกับการแปล"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"อื่นๆ"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"เข้าใจง่าย"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"แก้ปัญหาของฉันได้"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"อื่นๆ"
}]
หากต้องการบอกให้เราทราบเพิ่มเติม
{"lastModified": "\u0e2d\u0e31\u0e1b\u0e40\u0e14\u0e15\u0e25\u0e48\u0e32\u0e2a\u0e38\u0e14 2023-12-01 UTC"}
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2023-12-01 UTC"],[],[]]