Karolin Varner
ca972e8b70
feat: Remove libsodium
2024-01-27 21:38:13 +01:00
Karolin Varner
2fa0a2a72a
feat: Use core::hint::black_box in rosenpass_constant_time::xor
2024-01-27 21:38:13 +01:00
Karolin Varner
b6203683fc
feat: Migrate away from sodium blake2b towards the rust crypto implementation
2024-01-27 21:38:13 +01:00
Karolin Varner
e0f75ab97e
feat: Use xchacha implementation from rust crypto instead of sodium
2024-01-27 21:38:13 +01:00
Karolin Varner
0789c60602
feat: Use chacha implementation from rust crypto instead of sodium
2024-01-27 21:38:13 +01:00
Karolin Varner
e42f90b048
chore: Add helper to turn typenums into const values
2024-01-27 21:38:13 +01:00
Emil Engler
29917fd7a6
doc: Fix keygen/gen-keys misspell
...
Fixes #166
2024-01-21 20:54:29 +01:00
Prabhpreet Dua
efd0ce51cb
On-stack allocated host identification
2024-01-21 13:53:05 +05:30
Prabhpreet Dua
7739020931
Cargo fmt
2024-01-15 19:35:08 +05:30
Prabhpreet Dua
ecfecbb8f9
Host identification
2024-01-15 18:57:16 +05:30
Prabhpreet Dua
e8a81102f4
Whitepaper updates per review comments
2024-01-07 16:59:55 +05:30
Prabhpreet Dua
591e5226fd
Merge branch 'main' into feat/cookie-mechanism
2024-01-06 17:25:04 +05:30
wucke13
62aa9b4351
fix: second round of clippy lints
...
Clippy would not automatically apply these fixes, so they were applied
by hand.
2024-01-03 18:43:05 +01:00
wucke13
26cb4a587f
fix: apply clippy lints
2024-01-03 18:43:05 +01:00
wucke13
1c14be38dd
fix: make benches work again
...
Somehow in the past while splitting into many crates, we broke the bench
setup. This commit both fixes it, and adds a CI job that ensures it is
still working to avoid such silent failure in the future. The benchmarks
are not actually run, they would take forever on the slow GitHub Actions
runners, but they are at least compiled.
2024-01-03 18:43:05 +01:00
Karolin Varner
30cb0e9801
chore: Remove references to libsodium from secret-memory
2024-01-03 18:43:05 +01:00
Karolin Varner
9824db4f09
fix: Migrate away from lazy_static in favor of thread_local
...
The new secret memory pool was causing CI failures in the fuzzing code,
due to the fuzzer compiling its binaries with memory sanitizer support.
https://doc.rust-lang.org/beta/unstable-book/compiler-flags/sanitizer.html
Using lazy_static was – intentionally – introducing a memory leak, but the
LeakSanitizer detected this and raised an error.
Now by using thread_local we are calling the destructors and so – while still being a
memory leak in practice – the LeakSanitizer no longer detects this behaviour as an error.
Alternatively we could have used a known-leaks list with the leak-sanitizer, but this would have increased the complexity of the build setup.
Finally, this was likely triggered with the migration to memsec, because libsodium circumvents the malloc/free calls,
relying on direct calls to MMAP.
2024-01-03 18:43:05 +01:00
Karolin Varner
e3b72487db
fix: Make sure all tests are run during CI runs
...
Had to fix the tests in util/src/result.rs.
2024-01-03 18:43:05 +01:00
Karolin Varner
85c447052e
feat: Migrate to memsec
2024-01-03 18:43:05 +01:00
James Brownlee
b2a64ed17a
feat: add INITIATOR_TEST and RESPONDER_TEST macros
...
Added INITIATOR_TEST and RESPONDER_TEST macros to the identity hiding
mpv file that can be used to selectively test the anonymity of the
initiator or the responder.
2024-01-03 18:35:54 +01:00
James Brownlee
91da0dfd2d
feat: identity hiding in two stage process
...
Changed identity hiding test to work as a two stage process where
participants with fresh secure secret keys communicate with each other
and other compromised participants. Then the attacker is asked to
identify the difference between two of the secure participants as on of
them acts as a responder.
2024-01-03 18:35:54 +01:00
James Brownlee
4a170b1983
feat: add inital identity hiding code to proverif
2024-01-03 18:35:54 +01:00
wucke13
7c83e244f9
fix: fix Rust code in markdown files
...
This applies the novel format_rustcode.sh script to the markdown files in the
repo, to maintain a consistent style across code examples.
2023-12-22 17:57:32 +01:00
alankritdabral_2
eb76179dc4
feat: add format_rustcode.sh script
...
This script makes it possible to check formatting of rust code found in the various markdown files in the repo. It is also added as a job to the QC CI workflow.
2023-12-22 17:57:32 +01:00
wucke13
d84efa7422
Merge pull request #197 from guhitb/main
...
Add backwards compatibility for keygen command
2023-12-21 11:28:25 +01:00
user
61ef5b92bb
fix: add deprecated keygen command
...
This allows users to use the old keygen command, while being informed
about its deprecation.
2023-12-20 16:03:47 +01:00
Prabhpreet Dua
b336a0d264
Separate cookie message from envelope encapsulation, remove mac, cookie field
2023-12-12 07:24:08 +05:30
Prabhpreet Dua
0b7bec75de
Use common CookieStore for biscuit, and cookie secret, add padding to CookieReply, trigger immediate retransmission on recieving cookie reply
2023-12-10 18:17:37 +05:30
Prabhpreet Dua
87bbd1eef7
Reuse lifecycle (biscuit mechanism) for cookie expiration
2023-12-10 17:10:12 +05:30
Prabhpreet Dua
2646dc8398
Further updates to whitepaper
2023-12-08 00:13:55 +05:30
Prabhpreet Dua
4295ec9d80
Whitepaper changes, and reflect in code
2023-12-07 23:59:40 +05:30
Prabhpreet Dua
7cb643b181
app_server move under load handling to function, cargo fmt
2023-12-07 22:53:17 +05:30
Prabhpreet Dua
109d624227
SID specific cookie storage
2023-12-07 20:19:57 +05:30
Prabhpreet Dua
b96d195f54
Avoid memory allocations ctd
2023-12-06 23:02:57 +05:30
Prabhpreet Dua
775b464496
Remove debug message
2023-12-06 22:32:35 +05:30
Prabhpreet Dua
e2cd25c184
Use retransmitted message instead of storing last sent mac
2023-12-06 21:59:52 +05:30
Prabhpreet Dua
fdcb488d4b
Move IP+Port into AppServer from protocol.rs
2023-12-06 21:28:21 +05:30
Prabhpreet Dua
a8a596ca7e
Remove debug messages
2023-12-06 05:40:34 +05:30
Prabhpreet Dua
9ced9996d2
Remove serial_test deps
2023-12-05 06:40:35 +05:30
Prabhpreet Dua
df683f96b2
Remove ignore from second test, init libsodium in that test too
2023-12-05 06:30:59 +05:30
Prabhpreet Dua
27a8bdbe7b
Init libsodium in failing test
2023-12-05 06:26:41 +05:30
Prabhpreet Dua
bdabae9c33
Remove ignore for one test
2023-12-05 06:20:01 +05:30
Prabhpreet Dua
4d7c030476
Ignore existing tests
2023-12-05 06:15:19 +05:30
Prabhpreet Dua
95f22e98ac
Try all tests running in serial for protocol
2023-12-05 06:08:59 +05:30
Prabhpreet Dua
b0dada7613
cargo fmt run
2023-12-05 06:00:11 +05:30
Prabhpreet Dua
e54ea1feaa
Add parallel test flag, and remove .orig files
2023-12-05 05:58:13 +05:30
Prabhpreet Dua
0fd09c908b
Merge branch 'main' into feat/cookie-mechanism
2023-12-03 21:06:14 +05:30
Prabhpreet Dua
36628a46d6
Serial test execution for cookie exchange
2023-12-03 20:54:26 +05:30
wucke13
184cff0e5e
Merge pull request #196 from rosenpass/dev/fix-65
...
fix: remove OSFONTDIR var from whitepaper build
2023-12-03 14:01:25 +01:00
wucke13
9819148b6f
fix: remove OSFONTDIR var from whitepaper build
...
Fixes #65 . I checked with `pdffonts` that the whitepaper still has all fonts embedded.
2023-12-03 13:27:47 +01:00