Packages

Native Elixir wrapper for the Scrypt KDF

Current section

Files

Jump to
Raw

lib/nif.ex

defmodule Scrypt.NIF do
@compile {:autoload, false}
@on_load {:init, 0}
def init do
:scrypt_elixir
|> :code.priv_dir()
|> :filename.join('scrypt_nif')
|> :erlang.load_nif(0)
end
def hash_nif(_, _, _, _, _, _)
def hash_nif(_, _, _, _, _, _), do: :erlang.nif_error(:nif_not_loaded)
end