/openthread-latest/examples/platforms/simulation/ |
D | crypto.c | 41 otError otPlatCryptoImportKey(otCryptoKeyRef *aKeyRef, in otPlatCryptoImportKey() argument 49 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoImportKey() 60 otError otPlatCryptoExportKey(otCryptoKeyRef aKeyRef, uint8_t *aBuffer, size_t aBufferLen, size_t *… in otPlatCryptoExportKey() argument 62 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoExportKey() 70 otError otPlatCryptoDestroyKey(otCryptoKeyRef aKeyRef) in otPlatCryptoDestroyKey() argument 72 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoDestroyKey() 77 bool otPlatCryptoHasKey(otCryptoKeyRef aKeyRef) in otPlatCryptoHasKey() argument 79 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoHasKey() 84 otError otPlatCryptoEcdsaGenerateAndImportKey(otCryptoKeyRef aKeyRef) in otPlatCryptoEcdsaGenerateAndImportKey() argument 86 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoEcdsaGenerateAndImportKey() [all …]
|
/openthread-latest/src/core/crypto/ |
D | storage.hpp | 185 inline bool IsKeyRefValid(KeyRef aKeyRef) { return (aKeyRef < kInvalidKeyRef); } in IsKeyRefValid() argument 202 inline Error ImportKey(KeyRef &aKeyRef, in ImportKey() argument 210 return otPlatCryptoImportKey(&aKeyRef, static_cast<otCryptoKeyType>(aKeyType), in ImportKey() 227 inline Error ExportKey(KeyRef aKeyRef, uint8_t *aBuffer, size_t aBufferLen, size_t &aKeyLen) in ExportKey() argument 229 return otPlatCryptoExportKey(aKeyRef, aBuffer, aBufferLen, &aKeyLen); in ExportKey() 237 inline void DestroyKey(KeyRef aKeyRef) in DestroyKey() argument 239 if (IsKeyRefValid(aKeyRef)) in DestroyKey() 241 IgnoreError(otPlatCryptoDestroyKey(aKeyRef)); in DestroyKey() 253 inline bool HasKey(KeyRef aKeyRef) { return otPlatCryptoHasKey(aKeyRef); } in HasKey() argument 324 void SetAsKeyRef(Storage::KeyRef aKeyRef) in SetAsKeyRef() argument [all …]
|
D | ecdsa.hpp | 211 explicit KeyPairAsRef(otCryptoKeyRef aKeyRef = 0) { mKeyRef = aKeyRef; } in KeyPairAsRef() argument 284 void SetKeyRef(otCryptoKeyRef aKeyRef) { mKeyRef = aKeyRef; } in SetKeyRef() argument
|
/openthread-latest/include/openthread/platform/ |
D | crypto.h | 241 otError otPlatCryptoImportKey(otCryptoKeyRef *aKeyRef, 263 otError otPlatCryptoExportKey(otCryptoKeyRef aKeyRef, uint8_t *aBuffer, size_t aBufferLen, size_t *… 275 otError otPlatCryptoDestroyKey(otCryptoKeyRef aKeyRef); 287 bool otPlatCryptoHasKey(otCryptoKeyRef aKeyRef); 626 otError otPlatCryptoEcdsaSignUsingKeyRef(otCryptoKeyRef aKeyRef, 648 otError otPlatCryptoEcdsaExportPublicKey(otCryptoKeyRef aKeyRef, otPlatCryptoEcdsaPublicKey *aPubli… 662 otError otPlatCryptoEcdsaGenerateAndImportKey(otCryptoKeyRef aKeyRef); 680 otError otPlatCryptoEcdsaVerifyUsingKeyRef(otCryptoKeyRef aKeyRef,
|
/openthread-latest/tests/unit/ |
D | test_platform.cpp | 494 otError otPlatCryptoImportKey(otCryptoKeyRef *aKeyRef, in otPlatCryptoImportKey() argument 502 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoImportKey() 513 otError otPlatCryptoExportKey(otCryptoKeyRef aKeyRef, uint8_t *aBuffer, size_t aBufferLen, size_t *… in otPlatCryptoExportKey() argument 515 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoExportKey() 524 otError otPlatCryptoDestroyKey(otCryptoKeyRef aKeyRef) in otPlatCryptoDestroyKey() argument 526 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoDestroyKey() 531 bool otPlatCryptoHasKey(otCryptoKeyRef aKeyRef) in otPlatCryptoHasKey() argument 533 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoHasKey() 538 otError otPlatCryptoEcdsaGenerateAndImportKey(otCryptoKeyRef aKeyRef) in otPlatCryptoEcdsaGenerateAndImportKey() argument 540 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoEcdsaGenerateAndImportKey() [all …]
|
/openthread-latest/src/core/thread/ |
D | key_manager.cpp | 636 void KeyManager::SetPskcRef(PskcRef aKeyRef) in SetPskcRef() argument 638 VerifyOrExit(mPskcRef != aKeyRef, Get<Notifier>().SignalIfFirst(kEventPskcChanged)); in SetPskcRef() 642 mPskcRef = aKeyRef; in SetPskcRef() 649 void KeyManager::SetNetworkKeyRef(otNetworkKeyRef aKeyRef) in SetNetworkKeyRef() argument 651 VerifyOrExit(mNetworkKeyRef != aKeyRef, Get<Notifier>().SignalIfFirst(kEventNetworkKeyChanged)); in SetNetworkKeyRef() 655 mNetworkKeyRef = aKeyRef; in SetNetworkKeyRef()
|
D | key_manager.hpp | 268 void SetNetworkKeyRef(NetworkKeyRef aKeyRef); 308 void SetPskcRef(PskcRef aKeyRef);
|
/openthread-latest/src/core/meshcop/ |
D | dataset_manager.hpp | 300 …void SaveTlvInSecureStorageAndClearValue(Dataset &aDataset, Tlv::Type aTlvType, KeyRef aKeyRef) c… 301 Error ReadTlvFromSecureStorage(Dataset &aDataset, Tlv::Type aTlvType, KeyRef aKeyRef) const;
|
D | dataset_manager.cpp | 815 …r::SaveTlvInSecureStorageAndClearValue(Dataset &aDataset, Tlv::Type aTlvType, KeyRef aKeyRef) const in SaveTlvInSecureStorageAndClearValue() 824 …SuccessOrAssert(ImportKey(aKeyRef, kKeyTypeRaw, kKeyAlgorithmVendor, kUsageExport, kTypePersistent… in SaveTlvInSecureStorageAndClearValue() 833 …tasetManager::ReadTlvFromSecureStorage(Dataset &aDataset, Tlv::Type aTlvType, KeyRef aKeyRef) const in ReadTlvFromSecureStorage() 844 SuccessOrExit(error = ExportKey(aKeyRef, tlv->GetValue(), tlv->GetLength(), readLength)); in ReadTlvFromSecureStorage()
|
/openthread-latest/src/core/api/ |
D | thread_ftd_api.cpp | 291 otError otThreadSetPskcRef(otInstance *aInstance, otPskcRef aKeyRef) in otThreadSetPskcRef() argument 296 VerifyOrExit(aKeyRef != 0, error = kErrorInvalidArgs); in otThreadSetPskcRef() 299 instance.Get<KeyManager>().SetPskcRef(aKeyRef); in otThreadSetPskcRef()
|
D | thread_api.cpp | 128 otError otThreadSetNetworkKeyRef(otInstance *aInstance, otNetworkKeyRef aKeyRef) in otThreadSetNetworkKeyRef() argument 133 VerifyOrExit(aKeyRef != 0, error = kErrorInvalidArgs); in otThreadSetNetworkKeyRef() 137 instance.Get<KeyManager>().SetNetworkKeyRef((aKeyRef)); in otThreadSetNetworkKeyRef()
|
/openthread-latest/src/core/mac/ |
D | mac_types.hpp | 598 void SetKeyRef(KeyRef aKeyRef) { mKeyMaterial.mKeyRef = aKeyRef; } in SetKeyRef() argument
|
/openthread-latest/include/openthread/ |
D | thread_ftd.h | 678 otError otThreadSetPskcRef(otInstance *aInstance, otPskcRef aKeyRef);
|
D | thread.h | 468 otError otThreadSetNetworkKeyRef(otInstance *aInstance, otNetworkKeyRef aKeyRef);
|