Home
last modified time | relevance | path

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

/openthread-latest/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-latest/src/core/crypto/
Dstorage.hpp185 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 …]
Decdsa.hpp211 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/
Dcrypto.h241 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/
Dtest_platform.cpp494 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/
Dkey_manager.cpp636 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()
Dkey_manager.hpp268 void SetNetworkKeyRef(NetworkKeyRef aKeyRef);
308 void SetPskcRef(PskcRef aKeyRef);
/openthread-latest/src/core/meshcop/
Ddataset_manager.hpp300 …void SaveTlvInSecureStorageAndClearValue(Dataset &aDataset, Tlv::Type aTlvType, KeyRef aKeyRef) c…
301 Error ReadTlvFromSecureStorage(Dataset &aDataset, Tlv::Type aTlvType, KeyRef aKeyRef) const;
Ddataset_manager.cpp815 …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/
Dthread_ftd_api.cpp291 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()
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-latest/src/core/mac/
Dmac_types.hpp598 void SetKeyRef(KeyRef aKeyRef) { mKeyMaterial.mKeyRef = aKeyRef; } in SetKeyRef() argument
/openthread-latest/include/openthread/
Dthread_ftd.h678 otError otThreadSetPskcRef(otInstance *aInstance, otPskcRef aKeyRef);
Dthread.h468 otError otThreadSetNetworkKeyRef(otInstance *aInstance, otNetworkKeyRef aKeyRef);