From fa7d7af55d4870be12c8f542796606d794e908da Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Fri, 24 Jul 2020 14:50:11 +0200 Subject: [PATCH] psa: Don't reset the key owner id in psa_set_key_lifetime As a volatile key identifier may have a non-zero owner identifier, don't reset the key owner identifier (if any) when setting a volatile lifetime for a key. Signed-off-by: Ronald Cron --- include/psa/crypto_struct.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/psa/crypto_struct.h b/include/psa/crypto_struct.h index 267b0501ac..4e4e9e5044 100644 --- a/include/psa/crypto_struct.h +++ b/include/psa/crypto_struct.h @@ -381,7 +381,6 @@ static inline void psa_set_key_lifetime(psa_key_attributes_t *attributes, { #ifdef MBEDTLS_PSA_CRYPTO_KEY_FILE_ID_ENCODES_OWNER attributes->core.id.key_id = 0; - attributes->core.id.owner = 0; #else attributes->core.id = 0; #endif