c20p1305 icon indicating copy to clipboard operation
c20p1305 copied to clipboard

rfc7539_test.c test_rfc7539() fails assertion

Open bistromath opened this issue 7 years ago • 1 comments

Ciphertext doesn't match RFC ciphertext. It will decrypt OK, but the resultant ciphertext is:

9d 85 84 9a a6 6 56 7f fc 72 9a e5 be 6f e7 6 99 2a 22 1a 2d 88 45 94 22 42 f2 45 2a b0 28 2d ad 98 e5 56 ef 6 2b dd 17 a8 4a f2 2 7d 77 8d 9 d5 f5 25 5d 78 60 99 6 af 10 4c 88 91 d3 c2 f4 ac 6 37 49 1c f0 c3 e5 bd 5d b3 18 a2 94 8b 2b 79 a3 ca f3 f7 76 7e 1d d5 f2 7f c0 df fe eb fb 7c 4a fd d3 ea d0 5f 1c 2d 65 bd 17 e1 4c f7 57 1d

...instead of the RFC7539 ciphertext d3 1a 8d <...> and so make fails at the assertion.

Platform: Linux prawn 4.10.0-42-generic #46-Ubuntu SMP Mon Dec 4 14:38:01 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

bistromath avatar Feb 01 '18 22:02 bistromath

Works fine on raspberry pi (armv7l). Probably an endianness thing.

bistromath avatar Feb 01 '18 22:02 bistromath