%% -*- mode: erlang; tab-width: 4; indent-tabs-mode: 1; st-rulers: [70] -*- %% vim: ts=4 sw=4 ft=erlang noet %%%------------------------------------------------------------------- %%% @author Andrew Bennett %%% @copyright 2015-2022, Andrew Bennett %%% @doc %%% %%% @end %%% Created : 30 Aug 2022 by Andrew Bennett %%%------------------------------------------------------------------- -module(libsodium_crypto_verify_32). -define(NAMESPACE, crypto_verify_32). %% API -export([bytes/0]). -export([crypto_verify_32/2]). %% Internal API -export([call/1]). -export([call/2]). %%%=================================================================== %%% API %%%=================================================================== bytes() -> call(bytes). crypto_verify_32(X, Y) when is_binary(X) andalso is_binary(Y) -> call(crypto_verify_32, {X, Y}). %%%------------------------------------------------------------------- %%% Internal functions %%%------------------------------------------------------------------- %% @private call(Function) when is_atom(Function) -> call(Function, {}). %% @private call(Function, Arguments) when is_atom(Function) andalso is_tuple(Arguments) -> libsodium:call(?NAMESPACE, Function, Arguments).