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

Incorrect output type from xsalsa20poly1305() #49

Open
timdream opened this issue Dec 31, 2024 · 0 comments
Open

Incorrect output type from xsalsa20poly1305() #49

timdream opened this issue Dec 31, 2024 · 0 comments

Comments

@timdream
Copy link

Thanks for offering this package! The function xsalsa20poly1305() returns an object that implements CipherWithOutput, not Cipher here.

noble-ciphers/src/salsa.ts

Lines 121 to 125 in d6ae8e6

export const xsalsa20poly1305 = /* @__PURE__ */ wrapCipher(
{ blockSize: 64, nonceLength: 24, tagLength: 16 },
(key: Uint8Array, nonce: Uint8Array): Cipher => {
return {
encrypt(plaintext: Uint8Array, output?: Uint8Array) {

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