From 466339574650a42dfd7c068d1c6aa7e66001a0b2 Mon Sep 17 00:00:00 2001 From: Timothy Maes Date: Thu, 8 Jul 2021 19:19:08 +0200 Subject: [PATCH] Enable ECDH derive secret with HW accelerated crypto engine (#8155) --- src/crypto/CHIPCryptoPALmbedTLS.cpp | 3 +-- third_party/qpg_sdk/repo | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/crypto/CHIPCryptoPALmbedTLS.cpp b/src/crypto/CHIPCryptoPALmbedTLS.cpp index f377e4815e5df8..ceb7c5f5b978a6 100644 --- a/src/crypto/CHIPCryptoPALmbedTLS.cpp +++ b/src/crypto/CHIPCryptoPALmbedTLS.cpp @@ -581,8 +581,7 @@ CHIP_ERROR P256PublicKey::ECDSA_validate_hash_signature(const uint8_t * hash, co CHIP_ERROR P256Keypair::ECDH_derive_secret(const P256PublicKey & remote_public_key, P256ECDHDerivedSecret & out_secret) const { -// TODO: Enable ECDH_derive_secret for Qorvo when their mbedTLS static libraries are updated -#if defined(MBEDTLS_ECDH_C) && !defined(QORVO_CRYPTO_ENGINE) +#if defined(MBEDTLS_ECDH_C) CHIP_ERROR error = CHIP_NO_ERROR; int result = 0; size_t secret_length = (out_secret.Length() == 0) ? out_secret.Capacity() : out_secret.Length(); diff --git a/third_party/qpg_sdk/repo b/third_party/qpg_sdk/repo index 357b234a3eb0fa..2e11f9c052cb57 160000 --- a/third_party/qpg_sdk/repo +++ b/third_party/qpg_sdk/repo @@ -1 +1 @@ -Subproject commit 357b234a3eb0fa5ecece14ee3a10b565916403c0 +Subproject commit 2e11f9c052cb5758f318e56d344ca6d9b391b50b