summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Rename #sth -> #sth_signed and make it private.Linus Nordberg2014-05-053-21/+17
|
* Rename spt_on_wire -> spt.Linus Nordberg2014-05-043-7/+7
|
* Reformat Emakefile a bit.Linus Nordberg2014-05-041-3/+5
|
* Limit the debug printing some.Linus Nordberg2014-05-041-4/+7
|
* Adopt to first user -- ctls.Linus Nordberg2014-05-044-16/+27
| | | | | | | | | | Return #spt_on_wire instead of serialised version of it -- user wants the timestamp in there. Store that in db too. Export serialise/1 for user to do it themselves. Add get_logid/1 -- user needs that for the CST. Make sure 'now' is turned into a proper timestamp at all levels. Debug printout in plop start_link.
* Remove start_link/0.Linus Nordberg2014-05-041-3/+1
| | | | I.e. require arguments to always be passed.
* Pass test key file arguments at application startup.Linus Nordberg2014-05-041-1/+1
|
* Send all arguments to plop.Linus Nordberg2014-05-041-4/+4
|
* Don't need quotes around module name.Linus Nordberg2014-05-041-1/+1
|
* Use mnesia:index_read() instead of select() bc simpler.Linus Nordberg2014-05-031-2/+1
|
* Sign using ECDSA and fix a couple bugs.Linus Nordberg2014-05-028-134/+204
| | | | | | | | | | | Revive the plop_entry and hash over that instead of the full MTL, for the db hash. We don't want the timestamp in that hash! Use ECDSA instead of RSA for signing stuff. That's what Google does and we want to use their test suites. An annoyance with DSA is that the signature isn't deterministic. Testing just became less easy. Fix db:find() now that the hash is no longer the primary key.
* Merge remote-tracking branch 'remotes/origin/db' into dbLinus Nordberg2014-05-021-2/+5
|\ | | | | | | | | Conflicts: src/plop.erl
| * Merge remote-tracking branch 'remotes/devp/db' into dbLinus Nordberg2014-05-011-2/+5
| |\
| | * Move keyfile name and pass phrase.Linus Nordberg2014-05-011-2/+5
| | |
* | | README.Linus Nordberg2014-05-021-1/+5
| | |
* | | Store MTL in database -- we need the meat.Linus Nordberg2014-05-011-25/+23
| | |
* | | Change a comment.Linus Nordberg2014-05-011-1/+1
| | |
* | | Add plop_app:install().Linus Nordberg2014-05-011-1/+5
| | |
* | | Follow move of test data.Linus Nordberg2014-05-011-1/+1
| | |
* | | Follow changes to headers.Linus Nordberg2014-05-011-1/+2
| | |
* | | Move some records out of public header file. Improve db initialisation some.Linus Nordberg2014-05-014-30/+29
| | | | | | | | | | | | Wait for mnesia tables in init() and make the init-functions do some more.
* | | Add mnesia to 'applications'.Linus Nordberg2014-05-011-1/+1
| | | | | | | | | | | | Because that's what others do. Not that it helps getting mnesia _started_. Hmm.
* | | More in README.Linus Nordberg2014-05-011-1/+16
| | |
* | | Move test files from src/test/ to test/.Linus Nordberg2014-05-012-0/+0
|/ /
* | Add note on Erlang/OTP version needed.Linus Nordberg2014-04-301-0/+1
|/
* Add init functions, for testing.Linus Nordberg2014-04-301-2/+14
|
* Turn it all into an application.Linus Nordberg2014-04-298-2/+65
| | | | Warning: Rough edges.
* First cut at adding DB support.Linus Nordberg2014-04-294-92/+359
| | | | Including half crazy rewrite of most of the data structures.
* Test adding and checking STH in sequence.Linus Nordberg2014-04-261-32/+42
|
* Fix bug with adding first element of empty tree.Linus Nordberg2014-04-261-6/+17
| | | | And tests!
* Won't test sth's in ht.Linus Nordberg2014-04-261-3/+0
|
* Add STH support, with failing tests due to gen_server testing woes.Linus Nordberg2014-04-263-81/+149
| | | | Move things out of spt() for reuse by sth().
* Rearrange tests.Linus Nordberg2014-04-261-36/+37
| | | | Also, don't build 1024 trees.
* Don't export tree_version/1 but add size/1.Linus Nordberg2014-04-261-8/+11
|
* Clean up data types.Linus Nordberg2014-04-263-54/+47
|
* Make plop a gen_server.Linus Nordberg2014-04-262-60/+63
|
* Add a default value for signature_type, for easier ad hoc testing.Linus Nordberg2014-04-261-1/+1
|
* Add hex.erl.Linus Nordberg2014-04-261-0/+14
|
* Initialise plop_entry properly.Linus Nordberg2014-04-251-1/+1
|
* Make field timestamp in record plop_data an integer.Linus Nordberg2014-04-251-1/+1
| | | | | It's an integer in the record and then we make it a binary when it's time to serialise it.
* Add default values in plop_entry.Linus Nordberg2014-04-251-2/+2
| | | | | | This makes the fields not able to hold 'undefined' any more. Definitely good for field 'type' and arguably for field 'entry' too, so that a hash over it makes sense.
* Formatting and comments.Linus Nordberg2014-04-251-41/+22
|
* Clean up plop a bit.Linus Nordberg2014-04-252-14/+4
|
* Add some more internal tests to ht.Linus Nordberg2014-04-251-2/+27
|
* Allow for empty hash trees.Linus Nordberg2014-04-251-9/+30
|
* Produce SPT's, add tests.Linus Nordberg2014-04-255-21/+228
| | | | NOTE: Test vectors not verified.
* WIP plop.erlLinus Nordberg2014-04-211-0/+77
|
* Add placeholder for audit_path/2.Linus Nordberg2014-04-211-1/+10
|
* Build hash trees by appending a leaf at a time.Linus Nordberg2014-04-212-0/+229