commit | 89924ddc7e861d8c86bc90b7a0fc049998863221 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | Tue May 22 13:07:07 2018 +0200 |
committer | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | Tue May 22 13:07:07 2018 +0200 |
tree | 5773c26a5e53d819a17a285d571b29d6b6e134ec | |
parent | 12e2fbdf293ca414e4ee45671d44dd7a2c7f35b6 [diff] [blame] |
Wipe sensitive info from the stack
diff --git a/library/aria.c b/library/aria.c index fbdc0ec..498a132 100644 --- a/library/aria.c +++ b/library/aria.c
@@ -493,6 +493,9 @@ } 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 ); }