diff --git a/wolfcrypt/src/port/nxp/se050_port.c b/wolfcrypt/src/port/nxp/se050_port.c index d97bc38cb2..0f5d8d57e5 100644 --- a/wolfcrypt/src/port/nxp/se050_port.c +++ b/wolfcrypt/src/port/nxp/se050_port.c @@ -37,6 +37,13 @@ #include #include +#ifdef NO_INLINE + #include +#else + #define WOLFSSL_MISC_INCLUDED + #include +#endif + #include #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);