]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Add a key-length field to 'struct ssh_mac'.
authorSimon Tatham <anakin@pobox.com>
Fri, 21 Aug 2015 22:20:12 +0000 (23:20 +0100)
committerSimon Tatham <anakin@pobox.com>
Fri, 21 Aug 2015 22:41:05 +0000 (23:41 +0100)
commit42cf086b6bdf05e2d48504508fb4849c11e60298
tree80d5e4709efe324d08519d18def584dc4fad5f67
parent1df12e3915bb7713a3122cee27827072077b51f6
Add a key-length field to 'struct ssh_mac'.

The key derivation code has been assuming (though non-critically, as
it happens) that the size of the MAC output is the same as the size of
the MAC key. That isn't even a good assumption for the HMAC family,
due to HMAC-SHA1-96 and also the bug-compatible versions of HMAC-SHA1
that only use 16 bytes of key material; so now we have an explicit
key-length field separate from the MAC-length field.
ssh.c
ssh.h
sshccp.c
sshmd5.c
sshsh256.c
sshsha.c