/openthread-3.6.0/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-3.6.0/src/core/crypto/ |
D | storage.hpp | 119 inline bool IsKeyRefValid(KeyRef aKeyRef) { return (aKeyRef < kInvalidKeyRef); } in IsKeyRefValid() argument 137 inline Error ImportKey(KeyRef &aKeyRef, in ImportKey() argument 145 return otPlatCryptoImportKey(&aKeyRef, static_cast<otCryptoKeyType>(aKeyType), in ImportKey() 163 inline Error ExportKey(KeyRef aKeyRef, uint8_t *aBuffer, size_t aBufferLen, size_t &aKeyLen) in ExportKey() argument 165 return otPlatCryptoExportKey(aKeyRef, aBuffer, aBufferLen, &aKeyLen); in ExportKey() 174 inline void DestroyKey(KeyRef aKeyRef) in DestroyKey() argument 176 if (IsKeyRefValid(aKeyRef)) in DestroyKey() 178 IgnoreError(otPlatCryptoDestroyKey(aKeyRef)); in DestroyKey() 191 inline bool HasKey(KeyRef aKeyRef) { return otPlatCryptoHasKey(aKeyRef); } in HasKey() argument 275 void SetAsKeyRef(Storage::KeyRef aKeyRef) in SetAsKeyRef() argument [all …]
|
D | ecdsa.hpp | 227 explicit KeyPairAsRef(otCryptoKeyRef aKeyRef = 0) { mKeyRef = aKeyRef; } in KeyPairAsRef() argument 306 void SetKeyRef(otCryptoKeyRef aKeyRef) { mKeyRef = aKeyRef; } in SetKeyRef() argument
|
/openthread-3.6.0/include/openthread/platform/ |
D | crypto.h | 261 otError otPlatCryptoImportKey(otCryptoKeyRef *aKeyRef, 284 otError otPlatCryptoExportKey(otCryptoKeyRef aKeyRef, uint8_t *aBuffer, size_t aBufferLen, size_t *… 297 otError otPlatCryptoDestroyKey(otCryptoKeyRef aKeyRef); 310 bool otPlatCryptoHasKey(otCryptoKeyRef aKeyRef); 674 otError otPlatCryptoEcdsaSignUsingKeyRef(otCryptoKeyRef aKeyRef, 697 otError otPlatCryptoEcdsaExportPublicKey(otCryptoKeyRef aKeyRef, otPlatCryptoEcdsaPublicKey *aPubli… 712 otError otPlatCryptoEcdsaGenerateAndImportKey(otCryptoKeyRef aKeyRef); 731 otError otPlatCryptoEcdsaVerifyUsingKeyRef(otCryptoKeyRef aKeyRef,
|
/openthread-3.6.0/tests/unit/ |
D | test_platform.cpp | 467 otError otPlatCryptoImportKey(otCryptoKeyRef *aKeyRef, in otPlatCryptoImportKey() argument 475 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoImportKey() 486 otError otPlatCryptoExportKey(otCryptoKeyRef aKeyRef, uint8_t *aBuffer, size_t aBufferLen, size_t *… in otPlatCryptoExportKey() argument 488 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoExportKey() 497 otError otPlatCryptoDestroyKey(otCryptoKeyRef aKeyRef) in otPlatCryptoDestroyKey() argument 499 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoDestroyKey() 504 bool otPlatCryptoHasKey(otCryptoKeyRef aKeyRef) in otPlatCryptoHasKey() argument 506 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoHasKey() 511 otError otPlatCryptoEcdsaGenerateAndImportKey(otCryptoKeyRef aKeyRef) in otPlatCryptoEcdsaGenerateAndImportKey() argument 513 OT_UNUSED_VARIABLE(aKeyRef); in otPlatCryptoEcdsaGenerateAndImportKey() [all …]
|
/openthread-3.6.0/src/core/thread/ |
D | key_manager.cpp | 607 void KeyManager::SetPskcRef(PskcRef aKeyRef) in SetPskcRef() argument 609 VerifyOrExit(mPskcRef != aKeyRef, Get<Notifier>().SignalIfFirst(kEventPskcChanged)); in SetPskcRef() 613 mPskcRef = aKeyRef; in SetPskcRef() 620 void KeyManager::SetNetworkKeyRef(otNetworkKeyRef aKeyRef) in SetNetworkKeyRef() argument 622 VerifyOrExit(mNetworkKeyRef != aKeyRef, Get<Notifier>().SignalIfFirst(kEventNetworkKeyChanged)); in SetNetworkKeyRef() 626 mNetworkKeyRef = aKeyRef; in SetNetworkKeyRef()
|
D | key_manager.hpp | 265 void SetNetworkKeyRef(NetworkKeyRef aKeyRef); 310 void SetPskcRef(PskcRef aKeyRef);
|
/openthread-3.6.0/src/core/meshcop/ |
D | dataset.cpp | 605 …d Dataset::SaveTlvInSecureStorageAndClearValue(Tlv::Type aTlvType, Crypto::Storage::KeyRef aKeyRef) in SaveTlvInSecureStorageAndClearValue() argument 614 …SuccessOrAssert(ImportKey(aKeyRef, kKeyTypeRaw, kKeyAlgorithmVendor, kUsageExport, kTypePersistent… in SaveTlvInSecureStorageAndClearValue() 623 Error Dataset::ReadTlvFromSecureStorage(Tlv::Type aTlvType, Crypto::Storage::KeyRef aKeyRef) in ReadTlvFromSecureStorage() argument 634 SuccessOrExit(error = ExportKey(aKeyRef, tlv->GetValue(), tlv->GetLength(), readLength)); in ReadTlvFromSecureStorage()
|
D | dataset.hpp | 954 void SaveTlvInSecureStorageAndClearValue(Tlv::Type aTlvType, Crypto::Storage::KeyRef aKeyRef); 968 Error ReadTlvFromSecureStorage(Tlv::Type aTlvType, Crypto::Storage::KeyRef aKeyRef);
|
/openthread-3.6.0/src/core/mac/ |
D | mac_types.hpp | 637 void SetKeyRef(KeyRef aKeyRef) { mKeyMaterial.mKeyRef = aKeyRef; } in SetKeyRef() argument
|
/openthread-3.6.0/src/core/api/ |
D | thread_ftd_api.cpp | 320 otError otThreadSetPskcRef(otInstance *aInstance, otPskcRef aKeyRef) in otThreadSetPskcRef() argument 325 VerifyOrExit(aKeyRef != 0, error = kErrorInvalidArgs); in otThreadSetPskcRef() 328 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-3.6.0/include/openthread/ |
D | thread_ftd.h | 712 otError otThreadSetPskcRef(otInstance *aInstance, otPskcRef aKeyRef);
|
D | thread.h | 477 otError otThreadSetNetworkKeyRef(otInstance *aInstance, otNetworkKeyRef aKeyRef);
|
/openthread-3.6.0/src/core/net/ |
D | srp_client.cpp | 954 Error Client::ReadOrGenerateKey(Crypto::Ecdsa::P256::KeyPairAsRef &aKeyRef) in ReadOrGenerateKey() argument 959 VerifyOrExit(!Crypto::Storage::HasKey(aKeyRef.GetKeyRef())); in ReadOrGenerateKey() 964 if (aKeyRef.ImportKeyPair(keyPair) != kErrorNone) in ReadOrGenerateKey() 966 SuccessOrExit(error = aKeyRef.Generate()); in ReadOrGenerateKey() 972 SuccessOrExit(error = aKeyRef.Generate()); in ReadOrGenerateKey()
|
D | srp_client.hpp | 1017 Error ReadOrGenerateKey(Crypto::Ecdsa::P256::KeyPairAsRef &aKeyRef);
|