You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because buf is an array, by moving it, you are actually copying it to another place on the stack. So, original data stay there untouched and never zeroed.
I was thinking that &mut T could be a solution, but this will make SecKey unsafe.
What do you think?
The text was updated successfully, but these errors were encountered:
Consider this example:
Because
buf
is an array, by moving it, you are actually copying it to another place on the stack. So, original data stay there untouched and never zeroed.I was thinking that
&mut T
could be a solution, but this will makeSecKey
unsafe.What do you think?
The text was updated successfully, but these errors were encountered: