libsodium.js icon indicating copy to clipboard operation
libsodium.js copied to clipboard

Some constants have negative values when printed

Open Jack-Edwards opened this issue 3 years ago • 0 comments

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

Jack-Edwards avatar Oct 22 '22 02:10 Jack-Edwards