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?
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:
There are three types of extra methods:
generichash_readyshould begenerichash_wasm_ready?)_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?