Howto implement chacha20-poly1305?

Stef Bon stefbon at gmail.com
Mon Nov 28 22:01:50 CET 2016


2016-11-28 21:19 GMT+01:00 Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>:
> Hello,
>
> 2016-11-28 17:32 GMT+03:00 Stef Bon <stefbon at gmail.com>:
>> I;m writing a fuse sftp client, and not making use of openssh (like

>
> Would gcry_cipher_open(&hd, GCRY_CIPHER_CHACHA20,
>   GCRY_CIPHER_MODE_POLY1305, 0) work for you?
>
> Then use gcry_cipher_gettag/gcry_cipher_checktag for retrieving/checking
> tag.
>
> It is an AEAD cipher mode, so there is no separate encryption and separate
> MAC.

Ah. Thanks a lot!

Stef



More information about the Gcrypt-devel mailing list