Google은 흑인 공동체를 위한 인종적 평등을 추구하기 위해 노력하고 있습니다.
자세히 알아보기
의견 보내기
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
암호화 - 스레드 스택
이 모듈에는 암호화 함수가 포함되어 있습니다.
요약
함수
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
nonce에 대한 포인터입니다.
[in] aNonceLength
nonce 길이(바이트)입니다.
[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
구조에 대한 포인터입니다.
자료
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. 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": "\ucd5c\uc885 \uc5c5\ub370\uc774\ud2b8: 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)"],[],[]]