summaryrefslogtreecommitdiff
path: root/include/plop.hrl
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2014-10-21 17:17:36 +0200
committerLinus Nordberg <linus@nordberg.se>2014-10-24 11:02:29 +0200
commit6f477e27dcbb8ecf24947d473186e8984cf87867 (patch)
tree6ac6f79ec1a7ed48ec6895b00fbcd3c4a28b221a /include/plop.hrl
parentbf0a6e5458c16cb9bf72db002d840c5e1fbb3f29 (diff)
Break include dependency on plop.hrl
Diffstat (limited to 'include/plop.hrl')
-rw-r--r--include/plop.hrl37
1 files changed, 0 insertions, 37 deletions
diff --git a/include/plop.hrl b/include/plop.hrl
deleted file mode 100644
index b04af0d..0000000
--- a/include/plop.hrl
+++ /dev/null
@@ -1,37 +0,0 @@
-%%% Copyright (c) 2014, NORDUnet A/S.
-%%% See LICENSE for licensing information.
-
-%%% Plop data structures. Heavily based on RFC 6962. Some are for
-%%% database storage, some for interfacing with consumers and some are
-%%% for serialisation.
-
-%% @doc Merkle Tree Leaf -- what's sent as 'leaf_input' in response to
-%% get-entries requests and also the input to the hash function for
-%% leaf hashes in the tree. RFC 6962 sect 3.4.
-
-%% An entry, without the timestamp. This is what we hash over and
-%% store in the the database for finding duplicated submissions.
--record(sth, {
- treesize :: integer(),
- timestamp :: integer(),
- roothash :: binary(),
- signature :: signature()
- }).
--type sth() :: #sth{}.
-
-%% RFC 5246 7.4.1.4.1
--type hash_alg_type() :: none | md5 | sha1 | sha224 | sha256 | sha384 |
- sha512. % uint8
--type signature_alg_type() :: anonymous | rsa | dsa | ecdsa. % uint8
--record(sig_and_hash_alg, {
- hash_alg :: hash_alg_type(),
- signature_alg :: signature_alg_type()
- }).
--type sig_and_hash_alg() :: #sig_and_hash_alg{}.
-
-%% RFC 5246 4.7
--record(signature, {
- algorithm :: sig_and_hash_alg(),
- signature :: binary()
- }).
--type signature() :: #signature{}.