暗号 - プラットフォーム
このモジュールには、Crypto のプラットフォーム抽象化が含まれています。
概要
| 列挙型 | |
|---|---|
| anonymous enum{ | enum 鍵用途フラグを定義します。 | 
| otCryptoKeyAlgorithm{ | enum 鍵アルゴリズムを定義する。 | 
| otCryptoKeyStorage{ | enum 鍵の保存タイプを定義します。 | 
| otCryptoKeyType{ | enum キーのタイプを定義します。 | 
| Typedef | |
|---|---|
| otCryptoContext | typedef struct otCryptoContext | 
| otCryptoKey | typedef struct otCryptoKey | 
| otCryptoKeyRef | typedef uint32_tこのデータ型はキー参照を表します。 | 
| otPlatCryptoEcdsaKeyPair | typedef struct otPlatCryptoEcdsaKeyPair | 
| otPlatCryptoEcdsaPublicKey | typedef struct otPlatCryptoEcdsaPublicKey | 
| otPlatCryptoEcdsaSignature | typedef struct otPlatCryptoEcdsaSignature | 
| otPlatCryptoSha256Hash | typedef struct otPlatCryptoSha256HashSHA-256 ハッシュを表します。 | 
| 変数 | |
|---|---|
| OT_TOOL_PACKED_END | |
| 関数 | |
|---|---|
| otPlatCryptoAesEncrypt(otCryptoContext *aContext, const uint8_t *aInput, uint8_t *aOutput) | 与えられたデータを暗号化します。 | 
| otPlatCryptoAesFree(otCryptoContext *aContext) | AES コンテキストを解放します。 | 
| otPlatCryptoAesInit(otCryptoContext *aContext) | AES オペレーションを初期化します。 | 
| otPlatCryptoAesSetKey(otCryptoContext *aContext, const otCryptoKey *aKey) | AES オペレーションの鍵を設定します。 | 
| otPlatCryptoDestroyKey(otCryptoKeyRef aKeyRef) | PSA ITS に保存されている鍵を破棄します。 | 
| otPlatCryptoEcdsaExportPublicKey(otCryptoKeyRef aKeyRef, otPlatCryptoEcdsaPublicKey *aPublicKey) | 渡された鍵参照から関連する公開鍵を取得します。 | 
| otPlatCryptoEcdsaGenerateAndImportKey(otCryptoKeyRef aKeyRef) | 参照が渡された新しい ECDSA 鍵ペアを生成してインポートします。 | 
| otPlatCryptoEcdsaGenerateKey(otPlatCryptoEcdsaKeyPair *aKeyPair) | 出力バッファを生成して、新しい ECDSA 鍵ペアを入力します。 | 
| otPlatCryptoEcdsaGetPublicKey(const otPlatCryptoEcdsaKeyPair *aKeyPair, otPlatCryptoEcdsaPublicKey *aPublicKey) | 関連する公開鍵を入力コンテキストから取得します。 | 
| otPlatCryptoEcdsaSign(const otPlatCryptoEcdsaKeyPair *aKeyPair, const otPlatCryptoSha256Hash *aHash, otPlatCryptoEcdsaSignature *aSignature) | 入力コンテキストの秘密鍵を使用して、ハッシュ化されたメッセージの ECDSA 署名を計算します。 | 
| otPlatCryptoEcdsaSignUsingKeyRef(otCryptoKeyRef aKeyRef, const otPlatCryptoSha256Hash *aHash, otPlatCryptoEcdsaSignature *aSignature) | 渡された鍵参照を使用して、ハッシュ化されたメッセージの ECDSA 署名を計算します。 | 
| otPlatCryptoEcdsaVerify(const otPlatCryptoEcdsaPublicKey *aPublicKey, const otPlatCryptoSha256Hash *aHash, const otPlatCryptoEcdsaSignature *aSignature) | 入力コンテキストの鍵を使用して、ハッシュ化されたメッセージの ECDSA 署名を検証します。 | 
| otPlatCryptoEcdsaVerifyUsingKeyRef(otCryptoKeyRef aKeyRef, const otPlatCryptoSha256Hash *aHash, const otPlatCryptoEcdsaSignature *aSignature) | keyref を使用して、ハッシュされたメッセージの ECDSA 署名を検証します。 | 
| otPlatCryptoExportKey(otCryptoKeyRef aKeyRef, uint8_t *aBuffer, size_t aBufferLen, size_t *aKeyLen) | PSA ITS に保存されている鍵をエクスポートします。 | 
| otPlatCryptoHasKey(otCryptoKeyRef aKeyRef) | bool渡されたキー参照に PSA ITS の関連するキーがあるかどうかを確認します。 | 
| otPlatCryptoHkdfDeinit(otCryptoContext *aContext) | HKDF コンテキストの初期化を解除します。 | 
| otPlatCryptoHkdfExpand(otCryptoContext *aContext, const uint8_t *aInfo, uint16_t aInfoLength, uint8_t *aOutputKey, uint16_t aOutputKeyLength) | HKDF の展開手順を実行します。 | 
| otPlatCryptoHkdfExtract(otCryptoContext *aContext, const uint8_t *aSalt, uint16_t aSaltLength, const otCryptoKey *aInputKey) | HKDF 抽出ステップを実行します。 | 
| otPlatCryptoHkdfInit(otCryptoContext *aContext) | HKDF コンテキストを初期化します。 | 
| otPlatCryptoHmacSha256Deinit(otCryptoContext *aContext) | HMAC オペレーションの初期化を解除します。 | 
| otPlatCryptoHmacSha256Finish(otCryptoContext *aContext, uint8_t *aBuf, size_t aBufLength) | HMAC オペレーションを完了します。 | 
| otPlatCryptoHmacSha256Init(otCryptoContext *aContext) | HMAC オペレーションを初期化します。 | 
| otPlatCryptoHmacSha256Start(otCryptoContext *aContext, const otCryptoKey *aKey) | HMAC オペレーションを開始します。 | 
| otPlatCryptoHmacSha256Update(otCryptoContext *aContext, const void *aBuf, uint16_t aBufLength) | 新しい入力で HMAC オペレーションを更新します。 | 
| otPlatCryptoImportKey(otCryptoKeyRef *aKeyRef, otCryptoKeyType aKeyType, otCryptoKeyAlgorithm aKeyAlgorithm, int aKeyUsage, otCryptoKeyStorage aKeyPersistence, const uint8_t *aKey, size_t aKeyLen) | PSA ITS に鍵をインポートします。 | 
| otPlatCryptoInit(void) | voidCrypto モジュールを初期化します。 | 
| otPlatCryptoPbkdf2GenerateKey(const uint8_t *aPassword, uint16_t aPasswordLen, const uint8_t *aSalt, uint16_t aSaltLen, uint32_t aIterationCounter, uint16_t aKeyLen, uint8_t *aKey) | CMAC(AES-CMAC-PRF-128)を使用して PKCS#5 PBKDF2 を実行します。 | 
| otPlatCryptoRandomDeinit(void) | void暗号で保護された疑似乱数ジェネレータ(CSPRNG)の初期化を解除します。 | 
| otPlatCryptoRandomGet(uint8_t *aBuffer, uint16_t aSize) | 指定されたバッファを暗号的にセキュアなランダムバイトで埋めます。 | 
| otPlatCryptoRandomInit(void) | void暗号で保護された疑似乱数ジェネレータ(CSPRNG)を初期化する。 | 
| otPlatCryptoSha256Deinit(otCryptoContext *aContext) | SHA-256 オペレーションの初期化を解除します。 | 
| otPlatCryptoSha256Finish(otCryptoContext *aContext, uint8_t *aHash, uint16_t aHashSize) | SHA-256 オペレーションを終了します。 | 
| otPlatCryptoSha256Init(otCryptoContext *aContext) | SHA-256 オペレーションを初期化します。 | 
| otPlatCryptoSha256Start(otCryptoContext *aContext) | SHA-256 オペレーションを開始します。 | 
| otPlatCryptoSha256Update(otCryptoContext *aContext, const void *aBuf, uint16_t aBufLength) | 新しい入力で SHA-256 オペレーションを更新します。 | 
| 構造体 | |
|---|---|
| otCryptoContext | プラットフォーム API のコンテキスト オブジェクトを保存します。 | 
| otCryptoKey | 暗号オペレーションに必要な鍵マテリアルを表します。 | 
| otPlatCryptoEcdsaKeyPair | ECDSA 鍵ペア(公開鍵と秘密鍵)を表します。 | 
| otPlatCryptoEcdsaPublicKey | ECDSA 公開鍵を表します。 | 
| otPlatCryptoEcdsaSignature | ECDSA 署名を表します。 | 
| otPlatCryptoSha256Hash | SHA-256 ハッシュを表します。 | 
列挙型
匿名列挙型
anonymous enum
鍵用途フラグを定義します。
| プロパティ | |
|---|---|
| OT_CRYPTO_KEY_USAGE_DECRYPT | 鍵の用途: AES ECB。 | 
| OT_CRYPTO_KEY_USAGE_ENCRYPT | 鍵の使用: 暗号化(ベンダー定義)。 | 
| OT_CRYPTO_KEY_USAGE_EXPORT | 鍵の用途: 鍵をエクスポートできます。 | 
| OT_CRYPTO_KEY_USAGE_NONE | 鍵の使用: 鍵の使用が空です。 | 
| OT_CRYPTO_KEY_USAGE_SIGN_HASH | 鍵の用途: 署名ハッシュ。 | 
| OT_CRYPTO_KEY_USAGE_VERIFY_HASH | 鍵の使用: ハッシュを検証します。 | 
otCryptoKeyAlgorithm
otCryptoKeyAlgorithm
鍵アルゴリズムを定義する。
| プロパティ | |
|---|---|
| OT_CRYPTO_KEY_ALG_AES_ECB | 主要なアルゴリズム: AES ECB。 | 
| OT_CRYPTO_KEY_ALG_ECDSA | 主要なアルゴリズム: ECDSA。 | 
| OT_CRYPTO_KEY_ALG_HMAC_SHA_256 | キー アルゴリズム: HMAC SHA-256。 | 
| OT_CRYPTO_KEY_ALG_VENDOR | 主なアルゴリズム: ベンダー定義。 | 
otCryptoKeyStorage
otCryptoKeyStorage
鍵の保存タイプを定義します。
| プロパティ | |
|---|---|
| OT_CRYPTO_KEY_STORAGE_PERSISTENT | 鍵の永続性: 鍵は永続的です。 | 
| OT_CRYPTO_KEY_STORAGE_VOLATILE | 鍵の永続性: 鍵は揮発性です。 | 
otCryptoKeyType
otCryptoKeyType
キーのタイプを定義します。
| プロパティ | |
|---|---|
| OT_CRYPTO_KEY_TYPE_AES | 鍵の種類: AES。 | 
| OT_CRYPTO_KEY_TYPE_ECDSA | キータイプ: ECDSA。 | 
| OT_CRYPTO_KEY_TYPE_HMAC | キータイプ: HMAC。 | 
| OT_CRYPTO_KEY_TYPE_RAW | キータイプ: 元データ | 
Typedef
otCryptoContext
struct otCryptoContext otCryptoContext
otCryptoKey
struct otCryptoKey otCryptoKey
otCryptoKeyRef
uint32_t otCryptoKeyRef
このデータ型はキー参照を表します。
otPlatCryptoEcdsaKeyPair
struct otPlatCryptoEcdsaKeyPair otPlatCryptoEcdsaKeyPair
otPlatCryptoEcdsaPublicKey
struct otPlatCryptoEcdsaPublicKey otPlatCryptoEcdsaPublicKey
otPlatCryptoEcdsaSignature
struct otPlatCryptoEcdsaSignature otPlatCryptoEcdsaSignature
変数
OT_TOOL_PACKED_END
OT_TOOL_PACKED_BEGIN struct otPlatCryptoSha256Hash OT_TOOL_PACKED_END
関数
otPlatCryptoAesEncrypt
otError otPlatCryptoAesEncrypt( otCryptoContext *aContext, const uint8_t *aInput, uint8_t *aOutput )
与えられたデータを暗号化します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoAesFree
otError otPlatCryptoAesFree( otCryptoContext *aContext )
AES コンテキストを解放します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoAesInit
otError otPlatCryptoAesInit( otCryptoContext *aContext )
AES オペレーションを初期化します。
| 詳細 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||||
| 戻り値 | 
 | ||||||||
otPlatCryptoAesSetKey
otError otPlatCryptoAesSetKey( otCryptoContext *aContext, const otCryptoKey *aKey )
AES オペレーションの鍵を設定します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoDestroyKey
otError otPlatCryptoDestroyKey( otCryptoKeyRef aKeyRef )
PSA ITS に保存されている鍵を破棄します。
| 詳細 | |||||
|---|---|---|---|---|---|
| パラメータ | 
 | ||||
| 戻り値 | 
 | ||||
otPlatCryptoEcdsaExportPublicKey
otError otPlatCryptoEcdsaExportPublicKey( otCryptoKeyRef aKeyRef, otPlatCryptoEcdsaPublicKey *aPublicKey )
渡された鍵参照から関連する公開鍵を取得します。
公開鍵の保存方法は、使用する暗号バックエンド ライブラリによって異なります(OPENTHREAD_CONFIG_CRYPTO_LIB)。
この API は公開鍵を、非圧縮曲線点のバイト シーケンス表現として返す必要があります(RFC 6605 - sec 4)
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoEcdsaGenerateAndImportKey
otError otPlatCryptoEcdsaGenerateAndImportKey( otCryptoKeyRef aKeyRef )
参照が渡された新しい ECDSA 鍵ペアを生成してインポートします。
| 詳細 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||||
| 戻り値 | 
 | ||||||||
otPlatCryptoEcdsaGenerateKey
otError otPlatCryptoEcdsaGenerateKey( otPlatCryptoEcdsaKeyPair *aKeyPair )
出力バッファを生成して、新しい ECDSA 鍵ペアを入力します。
| 詳細 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||||
| 戻り値 | 
 | ||||||||
otPlatCryptoEcdsaGetPublicKey
otError otPlatCryptoEcdsaGetPublicKey( const otPlatCryptoEcdsaKeyPair *aKeyPair, otPlatCryptoEcdsaPublicKey *aPublicKey )
関連する公開鍵を入力コンテキストから取得します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoEcdsaSign
otError otPlatCryptoEcdsaSign( const otPlatCryptoEcdsaKeyPair *aKeyPair, const otPlatCryptoSha256Hash *aHash, otPlatCryptoEcdsaSignature *aSignature )
入力コンテキストの秘密鍵を使用して、ハッシュ化されたメッセージの ECDSA 署名を計算します。
RFC 6979 の決定性デジタル署名生成手順を使用します。
| 詳細 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||||
| 戻り値 | 
 | ||||||||
otPlatCryptoEcdsaSignUsingKeyRef
otError otPlatCryptoEcdsaSignUsingKeyRef( otCryptoKeyRef aKeyRef, const otPlatCryptoSha256Hash *aHash, otPlatCryptoEcdsaSignature *aSignature )
渡された鍵参照を使用して、ハッシュ化されたメッセージの ECDSA 署名を計算します。
RFC 6979 の決定性デジタル署名生成手順を使用します。
| 詳細 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||||
| 戻り値 | 
 | ||||||||
otPlatCryptoEcdsaVerify
otError otPlatCryptoEcdsaVerify( const otPlatCryptoEcdsaPublicKey *aPublicKey, const otPlatCryptoSha256Hash *aHash, const otPlatCryptoEcdsaSignature *aSignature )
入力コンテキストの鍵を使用して、ハッシュ化されたメッセージの ECDSA 署名を検証します。
| 詳細 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||||
| 戻り値 | 
 | ||||||||
otPlatCryptoEcdsaVerifyUsingKeyRef
otError otPlatCryptoEcdsaVerifyUsingKeyRef( otCryptoKeyRef aKeyRef, const otPlatCryptoSha256Hash *aHash, const otPlatCryptoEcdsaSignature *aSignature )
keyref を使用して、ハッシュされたメッセージの ECDSA 署名を検証します。
| 詳細 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||||
| 戻り値 | 
 | ||||||||
otPlatCryptoExportKey
otError otPlatCryptoExportKey( otCryptoKeyRef aKeyRef, uint8_t *aBuffer, size_t aBufferLen, size_t *aKeyLen )
PSA ITS に保存されている鍵をエクスポートします。
| 詳細 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||||
| 戻り値 | 
 | ||||||||
otPlatCryptoHasKey
bool otPlatCryptoHasKey( otCryptoKeyRef aKeyRef )
渡されたキー参照に PSA ITS の関連するキーがあるかどうかを確認します。
| 詳細 | |||||
|---|---|---|---|---|---|
| パラメータ | 
 | ||||
| 戻り値 | 
 | ||||
otPlatCryptoHkdfDeinit
otError otPlatCryptoHkdfDeinit( otCryptoContext *aContext )
HKDF コンテキストの初期化を解除します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoHkdfExpand
otError otPlatCryptoHkdfExpand( otCryptoContext *aContext, const uint8_t *aInfo, uint16_t aInfoLength, uint8_t *aOutputKey, uint16_t aOutputKeyLength )
HKDF の展開手順を実行します。
| 詳細 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||||||
| 戻り値 | 
 | ||||||||||
otPlatCryptoHkdfExtract
otError otPlatCryptoHkdfExtract( otCryptoContext *aContext, const uint8_t *aSalt, uint16_t aSaltLength, const otCryptoKey *aInputKey )
HKDF 抽出ステップを実行します。
| 詳細 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||||
| 戻り値 | 
 | ||||||||
otPlatCryptoHkdfInit
otError otPlatCryptoHkdfInit( otCryptoContext *aContext )
HKDF コンテキストを初期化します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoHmacSha256Deinit
otError otPlatCryptoHmacSha256Deinit( otCryptoContext *aContext )
HMAC オペレーションの初期化を解除します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoHmacSha256Finish
otError otPlatCryptoHmacSha256Finish( otCryptoContext *aContext, uint8_t *aBuf, size_t aBufLength )
HMAC オペレーションを完了します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoHmacSha256Init
otError otPlatCryptoHmacSha256Init( otCryptoContext *aContext )
HMAC オペレーションを初期化します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoHmacSha256Start
otError otPlatCryptoHmacSha256Start( otCryptoContext *aContext, const otCryptoKey *aKey )
HMAC オペレーションを開始します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoHmacSha256Update
otError otPlatCryptoHmacSha256Update( otCryptoContext *aContext, const void *aBuf, uint16_t aBufLength )
新しい入力で HMAC オペレーションを更新します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoImportKey
otError otPlatCryptoImportKey( otCryptoKeyRef *aKeyRef, otCryptoKeyType aKeyType, otCryptoKeyAlgorithm aKeyAlgorithm, int aKeyUsage, otCryptoKeyStorage aKeyPersistence, const uint8_t *aKey, size_t aKeyLen )
PSA ITS に鍵をインポートします。
aKeyPersistence で OT_CRYPTO_KEY_STORAGE_VOLATILE が渡された場合、aKeyRef が出力されます。初期値は重要ではなく、プラットフォーム API は新しい鍵参照を返すように更新しなければなりません。
      | 詳細 | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||||||||||
| 戻り値 | 
 | ||||||||||||||
この API は、OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE が有効になっている場合にのみ OT コアで使用されます。
otPlatCryptoInit
void otPlatCryptoInit( void )
Crypto モジュールを初期化します。
otPlatCryptoPbkdf2GenerateKey
otError otPlatCryptoPbkdf2GenerateKey( const uint8_t *aPassword, uint16_t aPasswordLen, const uint8_t *aSalt, uint16_t aSaltLen, uint32_t aIterationCounter, uint16_t aKeyLen, uint8_t *aKey )
CMAC(AES-CMAC-PRF-128)を使用して PKCS#5 PBKDF2 を実行します。
| 詳細 | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||||||||||
| 戻り値 | 
 | ||||||||||||||
otPlatCryptoRandomDeinit
void otPlatCryptoRandomDeinit( void )
暗号で保護された疑似乱数ジェネレータ(CSPRNG)の初期化を解除します。
otPlatCryptoRandomGet
otError otPlatCryptoRandomGet( uint8_t *aBuffer, uint16_t aSize )
指定されたバッファを暗号的にセキュアなランダムバイトで埋めます。
| 詳細 | |||||
|---|---|---|---|---|---|
| パラメータ | 
 | ||||
| 戻り値 | 
 | ||||
otPlatCryptoRandomInit
void otPlatCryptoRandomInit( void )
暗号で保護された疑似乱数ジェネレータ(CSPRNG)を初期化する。
otPlatCryptoSha256Deinit
otError otPlatCryptoSha256Deinit( otCryptoContext *aContext )
SHA-256 オペレーションの初期化を解除します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoSha256Finish
otError otPlatCryptoSha256Finish( otCryptoContext *aContext, uint8_t *aHash, uint16_t aHashSize )
SHA-256 オペレーションを終了します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoSha256Init
otError otPlatCryptoSha256Init( otCryptoContext *aContext )
SHA-256 オペレーションを初期化します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoSha256Start
otError otPlatCryptoSha256Start( otCryptoContext *aContext )
SHA-256 オペレーションを開始します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
otPlatCryptoSha256Update
otError otPlatCryptoSha256Update( otCryptoContext *aContext, const void *aBuf, uint16_t aBufLength )
新しい入力で SHA-256 オペレーションを更新します。
| 詳細 | |||||||
|---|---|---|---|---|---|---|---|
| パラメータ | 
 | ||||||
| 戻り値 | 
 | ||||||
マクロ
OT_CRYPTO_ECDSA_MAX_DER_SIZE
OT_CRYPTO_ECDSA_MAX_DER_SIZE 125
EDCSA 鍵ペアを DER 形式で表す最大バッファサイズ(バイト単位)。
OT_CRYPTO_ECDSA_PUBLIC_KEY_SIZE
OT_CRYPTO_ECDSA_PUBLIC_KEY_SIZE 64
EDCSA 公開鍵を表すバッファサイズ(バイト単位)。
OT_CRYPTO_ECDSA_SIGNATURE_SIZE
OT_CRYPTO_ECDSA_SIGNATURE_SIZE 64
EDCSA 署名を表すバッファサイズ(バイト単位)。
OT_CRYPTO_PBDKF2_MAX_SALT_SIZE
OT_CRYPTO_PBDKF2_MAX_SALT_SIZE 30
PBKDF2 SALT の最大長: ソルト プレフィックス(6)+ 拡張 panid(8)+ ネットワーク名(16)
OT_CRYPTO_SHA256_HASH_SIZE
OT_CRYPTO_SHA256_HASH_SIZE 32
SHA256 ハッシュの長さ(バイト単位)。
関連情報
OpenThread API リファレンスのトピックは、GitHub で入手できるソースコードに由来しています。 詳細について、またはドキュメントへの投稿については、リソースをご覧ください。