fix(se050): fenrir 2638 zero ed25519 der buffer

This commit is contained in:
David Garske
2026-05-18 13:52:53 -07:00
parent 583bd6bc4e
commit a211f74a8d
+8
View File
@@ -37,6 +37,13 @@
#include <wolfssl/wolfcrypt/logging.h>
#include <wolfssl/wolfcrypt/curve25519.h>
#ifdef NO_INLINE
#include <wolfssl/wolfcrypt/misc.h>
#else
#define WOLFSSL_MISC_INCLUDED
#include <wolfcrypt/src/misc.c>
#endif
#include <wolfssl/wolfcrypt/port/nxp/se050_port.h>
#ifdef WOLFSSL_SE050_INIT
@@ -3013,6 +3020,7 @@ int se050_ed25519_sign_msg(const byte* in, word32 inLen, byte* out,
status = sss_key_store_set_key(&host_keystore, &newKey, derBuf,
derSz, keySize * 8, NULL, 0);
}
ForceZero(derBuf, sizeof(derBuf));
}
else {
status = sss_key_object_get_handle(&newKey, keyId);