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

Some constants have negative values when printed #305

Open
Jack-Edwards opened this issue Oct 22, 2022 · 0 comments
Open

Some constants have negative values when printed #305

Jack-Edwards opened this issue Oct 22, 2022 · 0 comments

Comments

@Jack-Edwards
Copy link

Jack-Edwards commented Oct 22, 2022

Many of the *_MAX constants defined in constants.json have negative values when printed in the browser using console.log(sodium). Is this of any concern?

  • crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX: -17
  • crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX: -17
  • crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX: -17
  • crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX: -17
  • crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX: -17
  • crypto_box_MESSAGEBYTES_MAX: -17
  • crypto_pwhash_BYTES_MAX: -1
  • crypto_pwhash_MEMLIMIT_MAX: -2147483648
  • crypto_pwhash_OPSLIMIT_MAX: -1
  • crypto_pwhash_PASSWD_MAX: -1
  • crypto_secretbox_MESSAGEBYTES_MAX: -17
  • crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX: -18
  • crypto_sign_MESSAGEBYTES_MAX: -65
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