Add support for HMAC-SHA-256 as an SSH-2 MAC algorithm ("hmac-sha2-256")
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Wed, 20 Feb 2013 23:30:55 +0000 (23:30 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Wed, 20 Feb 2013 23:30:55 +0000 (23:30 +0000)
commit23159902a3ae593f9022578201125600a8da8de1
treecd3a1e2303c706147c4d98f274251e7cc5c69e41
parentbb4a3bb6f043641c4696b2df364380a01cc82bef
Add support for HMAC-SHA-256 as an SSH-2 MAC algorithm ("hmac-sha2-256")
as specified in RFC 6668.  This is not so much because I think it's
necessary, but because scrypt uses HMAC-SHA-256 and once we've got it we
may as well use it.

Code very closely derived from the HMAC-SHA-1 code.

Tested against OpenSSH 5.9p1 Debian-5ubuntu1.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9759 cda61777-01e9-0310-a592-d414129be87e
ssh.c
ssh.h
sshsh256.c