mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 06:16:42 +01:00
Wipe sensitive info from the stack
This commit is contained in:
parent
12e2fbdf29
commit
89924ddc7e
1 changed files with 3 additions and 0 deletions
|
|
@ -493,6 +493,9 @@ int mbedtls_aria_setkey_enc( mbedtls_aria_context *ctx,
|
||||||
}
|
}
|
||||||
aria_rot128( ctx->rk[16], w[0], w[1], 19 );
|
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 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue