sune
4961014033
WinCNG: support for SHA256/512 HMAC
...
Closes #47
2015-09-17 15:27:30 +02:00
brian m. carlson
a53cebba34
Add support for HMAC-SHA-256 and HMAC-SHA-512.
...
Implement support for these algorithms and wire them up to the libgcrypt
and OpenSSL backends. Increase the maximum MAC buffer size to 64 bytes
to prevent buffer overflows. Prefer HMAC-SHA-256 over HMAC-SHA-512, and
that over HMAC-SHA-1, as OpenSSH does.
Closes #40
2015-09-16 09:32:19 +02:00
Hannes Domani
09c5e59933
kex: fix libgcrypt memory leaks of bignum
...
Fixes #168 .
2015-04-03 17:39:15 +01:00
Marc Hoersken
5f4c249e42
wincng.h: fix warning about computed return value not being used
2015-03-24 21:46:10 +01:00
Marc Hoersken
7ca44fbd94
kex: do not ignore failure of libssh2_sha1_init()
...
Based upon 43b730ce56f010e9d33573fcb020df49798c1ed8.
Fixes ticket 290. Thanks for the suggestion, mstrsn.
2015-03-23 22:25:50 +01:00
Marc Hoersken
41b1cb6751
wincng.h: fix return code of libssh2_md5_init()
2015-03-23 22:23:41 +01:00
Marc Hoersken
3fc17cd69f
wincng.h: fixed invalid parameter name
2015-03-22 15:58:22 +01:00
Marc Hoersken
aa4e649d94
wincng: fixed mismatch with declarations in crypto.h
2015-03-22 15:58:00 +01:00
Marc Hoersken
71d45d3df1
wincng: add support for authentication keys to be passed in memory
...
Based upon 18cfec8336e and daa2dfa2db.
2015-03-22 15:41:51 +01:00
Alexander Lamaison
aa7f9a85f7
Fix breakage in WinCNG backend caused by introducing libssh2_hmac_ctx_init.
...
The macro was defined to nothing for the libgcrypt backend, but not for WinCNG. This brings the latter into line with the former.
2015-03-16 23:15:33 +00:00
Marc Hoersken
26f6d71885
wincng.h: Fixed warning about pointer targets differing in signedness
2014-05-18 10:57:17 +02:00
Marc Hoersken
106bacdebc
wincng.h: Added forward declarations for all WinCNG functions
...
Initially reported by Bob Kast as "Wincng - define function
prototypes for wincng routines". Thanks a lot.
Also replaced structure definitions with type definitions.
2014-05-18 00:51:31 +02:00
Marc Hoersken
6e710d7fb6
wincng: fix cross-compilation against the w64 mingw-runtime package
2014-04-25 14:20:08 +02:00
Marc Hoersken
160776d218
wincng: Cleaned up includes and check NTSTATUS using macro
...
Removed header file combination that is not supported on a real
Windows platform and can only be compiled using MinGW. Replaced
custom NTSTATUS return code checks with BCRYPT_SUCCESS macro.
2014-03-22 23:08:14 +01:00
Marc Hoersken
4440e05d48
Added Windows Cryptography API: Next Generation based backend
2014-03-16 17:01:16 +01:00
Peter Stuge
a5bf809b80
Revert "Added Windows Cryptography API: Next Generation based backend"
...
This reverts commit d385230e15715e67796f16f3e65fd899f21a638b.
2013-09-15 13:32:38 +02:00
Marc Hoersken
d385230e15
Added Windows Cryptography API: Next Generation based backend
2013-09-07 22:38:14 +02:00