Commit Graph

15 Commits (f4f5ab01092e524a7628825ed9687ee2e2e5f949)

Author SHA1 Message Date
Jason Rhinelander f4f5ab0109 "Refactor" aka delete Crypto/CryptoManager
- Get rid of CryptoManager.
- Get rid of Crypto.
- Move all the Crypto instance methods to llarp::crypto functions.
  (None of them needed to be methods at all, so this is simple).
- Move sodium/ntru initialization into static initialization.
- Add llarp::csrng, which is an available llarp::CSRNG instance which is
  a bit easier than needing to construct a `CSRNG rng{};` in various
  places.
- Various related small simplifications/cleanups.
8 months ago
Jeff Becker 4508c59cd3
redo includes to be consistent 1 year ago
Jason Rhinelander c82ade2d81
Make test code work with new logging 2 years ago
Thomas Winget 15229ea7ff
New RC format (#1368)
* initial work for RC SRVs.

Needs tests for new RC format.

Needs SRVs added to new RC, and associated tests.

* convert rc sign/verify test to catch2, add test for new rc

Also fixes a mistake in new rc serialization

* bump loki-mq submodule

need support for viewing bt deserialize consumer buffer so we
know how much it has consumed.

* fix some behavior errors

need to advance llarp_buffer_t after consuming data from it

only rewind and modify size of llarp_buffer_t in owning context.

* Add test for router contact (de-)serialization

Adds a test that makes a list of RouterContact with mixed
versions and ensures it serializes and deserializes correctly.
4 years ago
jeff 2aaed895f3
disable exits in RCs 4 years ago
Jeff Becker 1780e86faa
fix up unit tests, make them all pass 4 years ago
Stephen Shelton 0b54087689
Begin implementing SockAddr 4 years ago
Jason Rhinelander 0497fb9ccb Another big-endian fix 4 years ago
Michael a62655d501
Move tests to use top-level LlarpTest 5 years ago
Michael 491fee206b
Port code to use CryptoManager over passing Crypto pointers 5 years ago
Jeff Becker 20e398b684
fix exit info 5 years ago
Michael f24f554a01
Convert llarp::Crypto into an abstract base class 5 years ago
Jeff Becker 6064ff5a68
try fixing unit tests 5 years ago
Michael 04e0fe3ad7
Move crypto code to a subdirectory 6 years ago
Michael fa2b466ffe
Reorganise tests to mirror source layout 6 years ago