Krypto – Thread-Stack
Dieses Modul enthält kryptografische Funktionen.
Zusammenfassung
Typdefekt |
|
---|---|
otCryptoSha256Hash
|
typedefstruct otCryptoSha256Hash
Diese Struktur entspricht einem SHA-256-Hash. |
Variablen |
|
---|---|
OT_TOOL_PACKED_END
|
Funktionen |
|
---|---|
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
Diese Methode führt eine AES-CCM-Berechnung durch.
|
otCryptoEcdsaSign(uint8_t *aOutput, uint16_t *aOutputLength, const uint8_t *aInputHash, uint16_t aInputHashLength, const uint8_t *aPrivateKey, uint16_t aPrivateKeyLength)
|
Mit dieser Methode wird ein ECDSA-Zeichen erstellt.
|
otCryptoHmacSha256(const otCryptoKey *aKey, const uint8_t *aBuf, uint16_t aBufLength, otCryptoSha256Hash *aHash)
|
void
Diese Funktion führt eine HMAC-Berechnung durch.
|
Bauwerke |
|
---|---|
otCryptoSha256Hash |
Diese Struktur entspricht einem SHA-256-Hash. |
Typdefekt
otCryptoSha256Hash
struct otCryptoSha256Hash otCryptoSha256Hash
Diese Struktur entspricht einem SHA-256-Hash.
Variablen
OT_TOOL_PACKED_END
OT_TOOL_PACKED_BEGIN struct otCryptoSha256Hash OT_TOOL_PACKED_END
Funktionen
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 )
Diese Methode führt eine AES-CCM-Berechnung durch.
Details | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameter |
|
otCryptoEcdsaSign
otError otCryptoEcdsaSign( uint8_t *aOutput, uint16_t *aOutputLength, const uint8_t *aInputHash, uint16_t aInputHashLength, const uint8_t *aPrivateKey, uint16_t aPrivateKeyLength )
Mit dieser Methode wird ein ECDSA-Zeichen erstellt.
Details | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameter |
|
||||||||||||
Rückgabewerte |
|
otCryptoHmacSha256
void otCryptoHmacSha256( const otCryptoKey *aKey, const uint8_t *aBuf, uint16_t aBufLength, otCryptoSha256Hash *aHash )
Diese Funktion führt eine HMAC-Berechnung durch.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameter |
|
Makros
OT_CRYPTO_SHA256_HASH_SIZE
OT_CRYPTO_SHA256_HASH_SIZE 32
Länge von SHA256-Hash (in Byte).
Ressourcen
Die OpenThread API-Referenzthemen stammen aus dem Quellcode, der auf GitHub verfügbar ist. Weitere Informationen und einen Beitrag zu unserer Dokumentation finden Sie unter Ressourcen.