-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Aloha!


David Benjamin wrote:
> TLS-ChaCha is actually RFC 7539 which comes with its own test
> vectors and isn't TLS-specific.
> 
> Our implementation matches RFC 7539 and seems to match the one test 
> vector I tried too. Note that that draft includes a number of things 
> like 128-bit keys and 8 or 12 rounds which are not applicable. The
> test vector whose answer begins "0x76 0xb8 0xe0 0xad 0xa0" is the one
> you want.

Also worth noting is that in RFC 7539, ChaCha has 96 bit IV/nonce and 32
bit counter instead of a 64 bit IV and 64 bit counter. The 32 extra IV
bits are used to initialize the state in the same way as 32 bits in the
counter. So its a simple matter of mapping the IV bits to the counter
bits and chacha will match the test vectors in RFC 7539. It tripped me
up when integrating the ChaCha core into my RFC 7539 ChaCha20_Poly1305 core.

https://github.com/secworks/chacha
https://github.com/secworks/ChaCha20-Poly1305

Note: the chacha-poly1305 core is not completed yet.
- -- 
Med vänlig hälsning, Yours

Joachim Strömbergson - Alltid i harmonisk svängning.
========================================================================
 Joachim Strömbergson          Secworks AB          joac...@secworks.se
========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIbBAEBCAAGBQJX27e0AAoJEF3cfFQkIuyNERkP9j+Dp71dbqKIBEYkcW8dOMUv
RbHDfg9vRAelOyvSppOjXu3bSoNUNg2qC7KJEfY85SZERXSsLUTBzQIzinRRx33K
2HacSqSR0TmhhWThziDADOMpPoFAWyRrjVAXWTj4oThHZ4B8yM3lCC6bF+WuNiJz
JiiYLc8BvQqdGOMhyuoACpd7b12Dm25nbRcXFUUTZOBnIMhjevBPhUzLj/EQuWkS
oDQ/3F3g33AFE0zUmZNMbkHcmkr9A5jWGOW7NbhqcifLl+llp9o8J2EFw2daF7nE
jrwMmalUJu4s9vlvW0Md9N8TSHEPOWUxDpoCs+6slxwHFEK+0HmOHnYsMLJMoQs9
C6dUNsCeOA1N6jmw+40TveE597YkmEqvOgz0RG3XxIIRX2S0F9OSjgYdw4taPWJ6
7Zoc7YblNifbdyB+HT6T5udlBgGLvk8EzrIklVzDwLtOljy4Ryd4HDMF6/3jJh6W
v/QVhoOkXecglriU95SgNipBousTvID+hxrHaCq4BqlMtojI4Buyv76mMRGLRXpZ
lIiJOuJ4iM1xCZ58YiNaTU++jIqml0TX7YgEW7ZvbPP0nXaJ7xaW0tBYk9ho/Q/7
zLMZWIXr/bbaycAuJ8k6our0HCphh0kg/AN/F8FAvUL7xD4nM/Zn9ATVjHR+LyTv
iX0edtmGXGJ6KJBzEio=
=ERLC
-----END PGP SIGNATURE-----

_______________________________________________
TLS mailing list
TLS@ietf.org
https://www.ietf.org/mailman/listinfo/tls

Reply via email to