Home
last modified time | relevance | path

Searched refs:aKeyRef (Results 1 – 16 of 16) sorted by relevance

/openthread-3.6.0/examples/platforms/simulation/
Dcrypto.c41 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/
Dstorage.hpp119 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 …]
Decdsa.hpp227 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/
Dcrypto.h261 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/
Dtest_platform.cpp467 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/
Dkey_manager.cpp607 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()
Dkey_manager.hpp265 void SetNetworkKeyRef(NetworkKeyRef aKeyRef);
310 void SetPskcRef(PskcRef aKeyRef);
/openthread-3.6.0/src/core/meshcop/
Ddataset.cpp605 …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()
Ddataset.hpp954 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/
Dmac_types.hpp637 void SetKeyRef(KeyRef aKeyRef) { mKeyMaterial.mKeyRef = aKeyRef; } in SetKeyRef() argument
/openthread-3.6.0/src/core/api/
Dthread_ftd_api.cpp320 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()
Dthread_api.cpp128 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/
Dthread_ftd.h712 otError otThreadSetPskcRef(otInstance *aInstance, otPskcRef aKeyRef);
Dthread.h477 otError otThreadSetNetworkKeyRef(otInstance *aInstance, otNetworkKeyRef aKeyRef);
/openthread-3.6.0/src/core/net/
Dsrp_client.cpp954 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()
Dsrp_client.hpp1017 Error ReadOrGenerateKey(Crypto::Ecdsa::P256::KeyPairAsRef &aKeyRef);