mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 09:50:50 +02:00
fix(se050): fenrir 2638 zero ed25519 der buffer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user