1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
%% -*- mode: erlang; tab-width: 4; indent-tabs-mode: 1; st-rulers: [70] -*-
%% vim: ts=4 sw=4 ft=erlang noet
%%%-------------------------------------------------------------------
%%% @author Andrew Bennett <potatosaladx@gmail.com>
%%% @copyright 2014-2022, Andrew Bennett
%%% @doc
%%%
%%% @end
%%% Created : 12 May 2017 by Andrew Bennett <potatosaladx@gmail.com>
%%%-------------------------------------------------------------------
-ifndef(JOSE_PUBLIC_KEY_HRL).
-include_lib("public_key/include/public_key.hrl").
-ifndef('id-aes128-CBC').
-define('id-aes128-CBC', {2,16,840,1,101,3,4,1,2}).
-endif.
-ifndef('id-aes192-CBC').
-define('id-aes192-CBC', {2,16,840,1,101,3,4,1,22}).
-endif.
-ifndef('id-aes256-CBC').
-define('id-aes256-CBC', {2,16,840,1,101,3,4,1,42}).
-endif.
-define('jose_id-X25519', {1,3,101,110}).
-define('jose_id-X448', {1,3,101,111}).
-define('jose_id-EdDSA25519', {1,3,101,112}).
-define('jose_id-EdDSA448', {1,3,101,113}).
-record(jose_EdDSA25519PublicKey, {
publicKey = undefined :: undefined | << _:256 >>
}).
-record(jose_EdDSA25519PrivateKey, {
publicKey = undefined :: undefined | #jose_EdDSA25519PublicKey{},
privateKey = undefined :: undefined | << _:256 >>
}).
-record(jose_EdDSA448PublicKey, {
publicKey = undefined :: undefined | << _:456 >>
}).
-record(jose_EdDSA448PrivateKey, {
publicKey = undefined :: undefined | #jose_EdDSA448PublicKey{},
privateKey = undefined :: undefined | << _:456 >>
}).
-record(jose_X25519PublicKey, {
publicKey = undefined :: undefined | << _:256 >>
}).
-record(jose_X25519PrivateKey, {
publicKey = undefined :: undefined | #jose_X25519PublicKey{},
privateKey = undefined :: undefined | << _:256 >>
}).
-record(jose_X448PublicKey, {
publicKey = undefined :: undefined | << _:448 >>
}).
-record(jose_X448PrivateKey, {
publicKey = undefined :: undefined | #jose_X448PublicKey{},
privateKey = undefined :: undefined | << _:448 >>
}).
-define(JOSE_PUBLIC_KEY_HRL, 1).
-endif.
|