1%% -*- mode: erlang; tab-width: 4; indent-tabs-mode: 1; st-rulers: [70] -*- 2%% vim: ts=4 sw=4 ft=erlang noet 3%%%------------------------------------------------------------------- 4%%% @author Andrew Bennett <potatosaladx@gmail.com> 5%%% @copyright 2014-2016, Andrew Bennett 6%%% @doc 7%%% 8%%% @end 9%%% Created : 11 Jan 2016 by Andrew Bennett <potatosaladx@gmail.com> 10%%%------------------------------------------------------------------- 11-module(jose_sha3_unsupported). 12 13-behaviour(jose_sha3). 14 15%% jose_sha3 callbacks 16-export([sha3_224/1]). 17-export([sha3_256/1]). 18-export([sha3_384/1]). 19-export([sha3_512/1]). 20-export([shake128/2]). 21-export([shake256/2]). 22 23%% Macros 24-define(unsupported, erlang:error(sha3_unsupported)). 25 26%%==================================================================== 27%% jose_sha3 callbacks 28%%==================================================================== 29 30sha3_224(_InputBytes) -> 31 ?unsupported. 32 33sha3_256(_InputBytes) -> 34 ?unsupported. 35 36sha3_384(_InputBytes) -> 37 ?unsupported. 38 39sha3_512(_InputBytes) -> 40 ?unsupported. 41 42shake128(_InputBytes, _OutputByteLen) -> 43 ?unsupported. 44 45shake256(_InputBytes, _OutputByteLen) -> 46 ?unsupported. 47