Skip to content

Extra methods #40

@christianbundy

Description

@christianbundy

It looks like Sodium-Native API is a subset of the libsodium API, but the Sodium-Javascript has some extra methods not found in either:

  • crypto_verify_16
  • crypto_verify_32
  • crypto_box_ZEROBYTES
  • crypto_box_BOXZEROBYTES
  • crypto_box_BEFORENMBYTES
  • crypto_generichash_WASM_SUPPORTED
  • crypto_generichash_WASM_LOADED
  • crypto_generichash_ready
  • crypto_generichash_instance
  • crypto_secretbox
  • crypto_secretbox_open
  • crypto_secretbox_ZEROBYTES
  • crypto_secretbox_BOXZEROBYTES
  • crypto_shorthash_WASM_SUPPORTED
  • crypto_shorthash_WASM_LOADED
  • crypto_stream_xor_instance
  • crypto_stream_chacha20_xor_instance
  • crypto_stream_chacha20_ietf_xor_instance

There are three types of extra methods:

  • Methods found in libsodium but not Sodium-Native.
  • Methods specific to WASM (maybe generichash_ready should be generichash_wasm_ready?)
  • Methods suffixed with _instance, which were previously in Sodium-Native but have been removed (replaced by _init, _update, and _final?).

Should any/all of these be removed or replaced?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions