Crate anse2

Crate anse2 

Source

Functions§

anse2_decrypt
anse2_decrypt_c
decrypt: allocating buffer and returns it from out_ptr and out_len. (It’s just a same as encrypt)
anse2_decrypt_wasm
anse2_encrypt
anse2_encrypt_c
encrypt: allocating buffer and returns it from out_ptr and out_len. caller needed to call anse2_free_buffer for freeing. error codes: 0 = ok 1 = null pointer (input or output or key) 2 = allocation failure 3 = invalid utf8 in key
anse2_encrypt_wasm
anse2_free_buffer
free buffer previously returned by encrypt/decrypt
anse2_init_tables
anse2_init_wasm
init_cipher