caesium icon indicating copy to clipboard operation
caesium copied to clipboard

Add crypto_secretstream_xchacha20poly1305 API

Open dspearson opened this issue 5 years ago • 3 comments

I'm looking to use the secretstream API as documented here. Is there any intention to support this?

dspearson avatar May 12 '19 12:05 dspearson

It looks like this new API uses structs, namely crypto_secretstream_xchacha20poly1305_state. My experience with jnr-ffi isn't solid enough to know how to approach this unfortunately.

dspearson avatar May 12 '19 13:05 dspearson

I did attempt to add bindings, but hit a roadblock:

More than one matching method found: crypto_secretstream_xchacha20poly1305_init_push

My lack of knowledge of jnr-ffi probably renders further work on this useless.

dspearson avatar May 13 '19 12:05 dspearson

While working on implementing the kx bindings, I also hit this same issue. It appears to be related to the use of call!, as using the method directly on the sodium object worked in the kx case.

dspearson avatar Nov 05 '19 10:11 dspearson