On Tue, Nov 29, 2011 at 07:14:38PM +0100, Matthias Drochner wrote:
 > > the memset() is likely to get optimized away by the compiler anyway.
 > > It's a dead store after all.
 > 
 > It might be by luck, but a disassembly of MD5Final() on i386
 > shows that the final zeroing is present in the binary.
 > Generally I agree that we should make this kind of assignments
 > more explicit, so that we can implement it as macro if necessary.

You also want to take steps to make sure that the zeroed cache line is
flushed out.

-- 
David A. Holland
dholl...@netbsd.org

Reply via email to