[Twisted-Python] hmac-sha2-512 - Corrupted MAC on input with OpenSSH

Adi Roiban adi at roiban.ro
Thu Dec 22 00:21:55 MST 2016


On 21 December 2016 at 03:15, 陈健 <chenjianhappy2008 at 126.com> wrote:
>
>  hi:
>
>     I write a SSH server with Twisted(15.5.0)  Conch.  But it  don't
support hmac-sha2-512 MAC algorithms
>
> .  However I see this problem has been fixed in
https://twistedmatrix.com/trac/ticket/8108 .  I asked the question in
http://stackoverflow.com/questions/41254398/twisted-hmac-sha2-512-corrupted-mac-on-input-with-openssh
.
>

Hi,

#8108 did not fix hmac-sha2-512, but was an attempt to add support for it.
Since there were no automated tests, hmac-sha2-512 was never functional.

There is a defect ticket which is not yet closed
https://twistedmatrix.com/trac/ticket/8258

I hope that the ticket description can be used to reproduce this error.

This might not be a hmac-sha2-512 specific issue, but a generic issue
related to padding... is just that sha2-512 triggered it.

--
Adi Roiban
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20161222/29b691b7/attachment-0002.html>


More information about the Twisted-Python mailing list