Wipe sensitive info from the stack

This commit is contained in:
Manuel Pégourié-Gonnard 2018-05-22 13:07:07 +02:00
parent 12e2fbdf29
commit 89924ddc7e

View file

@ -493,6 +493,9 @@ int mbedtls_aria_setkey_enc( mbedtls_aria_context *ctx,
}
aria_rot128( ctx->rk[16], w[0], w[1], 19 );
/* w holds enough info to reconstruct the round keys */
mbedtls_zeroize( w, sizeof( w ) );
return( 0 );
}