Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in crypto_secretstream_xchacha20poly1305_init_push (not iterable) #48

Open
MartijnFLC opened this issue Mar 1, 2021 · 0 comments

Comments

@MartijnFLC
Copy link

When trying the example of crypto_secretstream_xchacha20poly1305, browser version I find out there is something going wrong in sodium.crypto_secretstream_xchacha20poly1305_init_push.

if (!sodium) sodium = await SodiumPlus.auto(); let key = await sodium.crypto_secretstream_xchacha20poly1305_keygen(); let pushState, pullState, header; [pushState, header] = await sodium.crypto_secretstream_xchacha20poly1305_init_push(key);

this throws the following error (example):

Uncaught (in promise) TypeError: ({header:{0:92, 1:72, 2:132, 3:111, 4:18, 5:255, 6:141, 7:212, 8:69, 9:48, 10:71, 11:216, 12:242, 13:163, 14:199, 15:73, 16:137, 17:175, 18:148, 19:68, 20:139, 21:57, 22:95, 23:200}, push:function bound crypto_secretstream_xchacha20poly1305_push() { [native code] }, rekey:function bound crypto_secretstream_xchacha20poly1305_rekey() { [native code] }}) is not iterable

As it is in the example itself it makes it hard for my to find out what is going wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant