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 : 02 Jan 2016 by Andrew Bennett <potatosaladx@gmail.com> 10%%%------------------------------------------------------------------- 11-module(jose_curve448_unsupported). 12 13-behaviour(jose_curve448). 14 15%% jose_curve448 callbacks 16-export([eddsa_keypair/0]). 17-export([eddsa_keypair/1]). 18-export([eddsa_secret_to_public/1]). 19-export([ed448_sign/2]). 20-export([ed448_sign/3]). 21-export([ed448_verify/3]). 22-export([ed448_verify/4]). 23-export([ed448ph_sign/2]). 24-export([ed448ph_sign/3]). 25-export([ed448ph_verify/3]). 26-export([ed448ph_verify/4]). 27-export([x448_keypair/0]). 28-export([x448_keypair/1]). 29-export([x448_secret_to_public/1]). 30-export([x448_shared_secret/2]). 31 32%% Macros 33-define(unsupported, erlang:error(curve448_unsupported)). 34 35%%==================================================================== 36%% jose_curve448 callbacks 37%%==================================================================== 38 39% EdDSA 40eddsa_keypair() -> 41 ?unsupported. 42 43eddsa_keypair(_Seed) -> 44 ?unsupported. 45 46eddsa_secret_to_public(_SecretKey) -> 47 ?unsupported. 48 49% Ed448 50ed448_sign(_Message, _SecretKey) -> 51 ?unsupported. 52 53ed448_sign(_Message, _SecretKey, _Context) -> 54 ?unsupported. 55 56ed448_verify(_Signature, _Message, _PublicKey) -> 57 ?unsupported. 58 59ed448_verify(_Signature, _Message, _PublicKey, _Context) -> 60 ?unsupported. 61 62% Ed448ph 63ed448ph_sign(_Message, _SecretKey) -> 64 ?unsupported. 65 66ed448ph_sign(_Message, _SecretKey, _Context) -> 67 ?unsupported. 68 69ed448ph_verify(_Signature, _Message, _PublicKey) -> 70 ?unsupported. 71 72ed448ph_verify(_Signature, _Message, _PublicKey, _Context) -> 73 ?unsupported. 74 75% X448 76x448_keypair() -> 77 ?unsupported. 78 79x448_keypair(_Seed) -> 80 ?unsupported. 81 82x448_secret_to_public(_SecretKey) -> 83 ?unsupported. 84 85x448_shared_secret(_MySecretKey, _YourPublicKey) -> 86 ?unsupported. 87