lokinet/test/crypto
Jeff 21930cf667
LNS (#1342)
* initial relay side lns

* fix typo

* add reserved names and refactor test for dns

* lns name decryption

* all wired up (allegedly)

* refact to use service::EncryptedName for LNS responses to include nonce with ciphertext

* fully rwemove tag_lookup_job

* replace lns cache with DecayingHashTable

* check for lns name validity against the following rules:

* not localhost.loki, loki.loki, or snode.loki

* if it contains no dash then max 32 characters long, not including the .loki tld (and also assuming a leading subdomain has been stripped)

* These are from general DNS requirements, and also enforced in
registrations:

* Must be all [A-Za-z0-9-]. (A-Z will be lower-cased by the RPC call).

* cannot start or end with a -

* max 63 characters long if it does contain a dash

* cannot contain -- in the third and fourth characters unless it starts with xn--

* handle timeout in name lookup job by calling the right handler with std::nullopt
2020-09-17 15:18:08 -04:00
..
mock_crypto.cpp Tests for dht::TagLookup 2019-02-05 21:18:38 +00:00
mock_crypto.hpp LNS (#1342) 2020-09-17 15:18:08 -04:00
test_llarp_crypto_types.cpp Update deprecated gtest macros 2020-02-13 15:15:36 -04:00
test_llarp_crypto.cpp enable see2 when used 2019-10-30 12:45:51 -04:00
test_llarp_key_manager.cpp Ignore our self.signed file if we're a client 2020-06-04 11:05:23 -06:00