]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Add copy and free methods to 'struct ssh_hash'.
authorSimon Tatham <anakin@pobox.com>
Fri, 21 Aug 2015 22:13:59 +0000 (23:13 +0100)
committerSimon Tatham <anakin@pobox.com>
Fri, 21 Aug 2015 22:40:36 +0000 (23:40 +0100)
commit1df12e3915bb7713a3122cee27827072077b51f6
tree08d62cce97a0c48821ca6ba6f8134369953f6959
parent67629cc0ba99e27ea9da8a65aaa168c81111491d
Add copy and free methods to 'struct ssh_hash'.

This permits a hash state to be cloned in the middle of being used, so
that multiple strings with the same prefix can be hashed without
having to repeat all the computation over the prefix.

Having done that, we'll also sometimes need to free a hash state that
we aren't generating actual hash output from, so we need a free method
as well.
ssh.h
sshsh256.c
sshsh512.c
sshsha.c