Commit Graph

31 Commits (54a7843bc59c790358443d212d90558b542034f9)

Author SHA1 Message Date
Stephen Shelton 733efbab40
Reflect removal of accessors on config structs 4 years ago
Jason Rhinelander 8aacc2d317 Update deprecated gtest macros
gtest ~renamed INSTANTIATE_TEST_CASE_P to INSTANTIATE_TEST_SUITE_P and
added a "backwards compatibility" shim, but the shim fails at compile
time if you pass in an empty fourth argument.
4 years ago
Jeff 186dba45cb
Merge pull request #956 from notlesh/km-testing
Implement KeyManager tests
4 years ago
Thomas Winget a487982c49 initial implementation of blinded sign -- not working yet 4 years ago
Jason Rhinelander 860c5efd47 Derived key fixes
The reason things weren't working here is because libsodium does
something completely unintuitive and called the seed the "secret key"
when it isn't, it's the seed.

This adds a new PrivateKey class (alongside the existing SecretKey and
PubKey) that holds just a private key value but no seed -- which we need
to do because there is no way we can get a seed after calculating a
derived keypair.

With these changes, we now generate exactly the same keys and subkeys as
Tor (and a new test case uses values generated in Tor to verify this).

This is incomplete -- the subkey signing code is still not implemented;
it has to be adapted to create a signature from a PrivateKey rather than
a SecretKey which will probably requiring working around/reimplementing
some of what libsodium does for creating a signature since it expects
"secret keys" i.e. the seed.
4 years ago
Jeff Becker 99eb7726ff
initial dht key blinding 5 years ago
Stephen Shelton c303d438aa Prefer ASSERT_EQ over ASSERT_TRUE when appropriate 5 years ago
Stephen Shelton ef075a53dd Implement KeyManager tests 5 years ago
Jeff Becker 098915bb8e
add check for identity key validity 5 years ago
Jeff Becker 2cb15e7e0b
enable see2 when used 5 years ago
Jeff Becker f38240f945
devendor libsodium by default except for android 5 years ago
Jeff Becker 01c4a9c287
revert a few things 5 years ago
jeff 1cdd9ba13a add unit test for identity_keygen 5 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
Rick V b1fa597fa0
include what i use 5 years ago
Jeff Becker 230e84c742
make signing work 5 years ago
Michael 656843e9a3
Fix issues on debian 5 years ago
Rick V 69189214e0
rebase on current upstream staging 5 years ago
Rick V 3931b7d9d7
implement missing libabyss functionality
remove some finished TODOs
5 years ago
Rick V f277f368a1
win32 g++ is set to c++17 by default, so we use the _real_ string_view class 5 years ago
Michael 1ba6507a2f
Tests for dht::ServiceAddressLookup 5 years ago
Michael b1213c7a7c
Tests for dht::TagLookup 5 years ago
Michael 47380ba64b
Simplify some code 6 years ago
Michael f3b0af9d2f
Create CopyableBuffer type 6 years ago
Ryan Tharp f20ac0f6e9
Merge branch 'staging' into crypto_interface 6 years ago
Ryan Tharp 42873a088f fix build 6 years ago
Michael f24f554a01
Convert llarp::Crypto into an abstract base class 6 years ago
Jeff Becker d89e58199a
add initial identity key seed stuff
add more kubernetes stuff

make shared library installed if built
6 years ago
Michael fec75125f4
Add tests for crypto/types 6 years ago
Michael 04e0fe3ad7
Move crypto code to a subdirectory 6 years ago