dependabot[bot]
0edfb625e8
build(deps): bump log from 0.4.20 to 0.4.21
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.20 to 0.4.21.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.20...0.4.21 )
---
updated-dependencies:
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-06 15:14:03 +02:00
dependabot[bot]
16c0080cdc
build(deps): bump memoffset from 0.9.0 to 0.9.1
...
Bumps [memoffset](https://github.com/Gilnaa/memoffset ) from 0.9.0 to 0.9.1.
- [Changelog](https://github.com/Gilnaa/memoffset/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Gilnaa/memoffset/compare/v0.9.0...v0.9.1 )
---
updated-dependencies:
- dependency-name: memoffset
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-06 15:13:35 +02:00
dependabot[bot]
b05c4bbe24
build(deps): bump serde from 1.0.193 to 1.0.197
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.193 to 1.0.197.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.193...v1.0.197 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-06 15:13:21 +02:00
dependabot[bot]
639c65ef93
build(deps): bump env_logger from 0.10.1 to 0.10.2
...
Bumps [env_logger](https://github.com/rust-cli/env_logger ) from 0.10.1 to 0.10.2.
- [Release notes](https://github.com/rust-cli/env_logger/releases )
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.10.1...v0.10.2 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-21 00:39:00 +01:00
dependabot[bot]
332c549305
build(deps): bump anyhow from 1.0.75 to 1.0.81
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.75 to 1.0.81.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.75...1.0.81 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-21 00:38:44 +01:00
dependabot[bot]
ef973e9d7f
build(deps): bump base64 from 0.21.5 to 0.21.7
...
Bumps [base64](https://github.com/marshallpierce/rust-base64 ) from 0.21.5 to 0.21.7.
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.21.5...v0.21.7 )
---
updated-dependencies:
- dependency-name: base64
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-21 00:38:34 +01:00
Paul Spooren
199ecb814b
dependabot: add configuration
...
This checks daily for outdated cargo crates.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-03-20 14:24:34 +01:00
Paul Spooren
40d955a156
proper permission for secrets aka 0o600
...
When creating secret keys or use the out file feature, the material
shouldn't be readble to everyone by default.
Fix : #260
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-03-20 14:24:23 +01:00
Paul Spooren
baa35af558
bench: exclude rosenpass-fuzzing
...
This stops fuzzing to run which takes forever and breaks the CI.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-03-12 19:28:27 +01:00
Paul Spooren
b2de384fcf
constant-time: add secure memcmp_le function
...
The compare function should do a little-endian comparision, therefore
copy the code from quinier/memsec and don't revert the loop, tada, le.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-03-11 13:08:41 +01:00
Paul Spooren
c69fd889fb
ci: enable cargo bench again
...
It only takes a few seconds to run, enable it.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-03-11 13:08:41 +01:00
Dimitris Apostolou
13a853ff42
fix: Fix crate vulnerabilities
2024-03-10 18:11:43 +01:00
Paul Spooren
13df700ef5
flake: drop overlay due to upstream fix
...
Upstream fix #216904 got fixed to remove the extra overlay.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-03-08 20:22:41 +01:00
Ilka Schulz
2e7f34f4b2
Merge pull request #253 from aparcar/welcome-home
...
config: drop deprecated std::env::home_dir()
2024-03-05 14:54:42 +01:00
Ilka Schulz
292b4bbae0
Merge pull request #255 from aparcar/aarch64-ci
...
ci: Enable aarch64-linux builds again
2024-03-05 14:51:34 +01:00
Ilka Schulz
c75d222477
Merge pull request #254 from aparcar/manual
...
build: add link to manual
2024-03-05 12:26:51 +01:00
Paul Spooren
478fadb80d
ci: Enable aarch64-linux builds again
...
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-03-05 10:39:46 +01:00
Paul Spooren
7c1ada4b10
build: add link to manual
...
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-03-01 19:12:30 +01:00
Paul Spooren
4f4e8e1018
config: drop deprecated std::env::home_dir()
...
Instead use the `home` create.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-03-01 19:00:00 +01:00
Ilka Schulz
971e49b894
debug-log change in log level filter via CLI parameter
2024-02-29 13:38:54 +01:00
Ilka Schulz
262e32fe35
resolve #92 : add CLI argument to specify log level filter
2024-02-29 13:38:54 +01:00
Ilka Schulz
4dab97d84e
use <> brackets around hyperlinks in comments because GitHub actions complained
2024-02-29 13:37:43 +01:00
Ilka Schulz
1a5ffdd495
resolve #237 : resolve paths starting with "~/" in config file
2024-02-29 13:37:43 +01:00
Ilka Schulz
fb91688672
add few comments to config.rs
2024-02-29 13:37:43 +01:00
Ilka Schulz
27ba729c14
move each primitive into its own module; add rough documentation
...
This commit does not change anything about the implementations.
2024-02-29 13:36:54 +01:00
Ilka Schulz
60235dc6ea
GihHub Workflow "Quality Control": add flag "--all-features" to cargo in order to run all available tests behind feature flags
2024-02-28 17:07:40 +01:00
Ilka Schulz
36c99c020e
implement test to statistically check constant run time of memcmp (feature: constant_time_tests)
2024-02-28 17:07:40 +01:00
James Brownlee
8c469af6b1
adding identity hiding improvements:
...
seperate files for responder and initiator tests
test file that shows other participants leaking info has an effect
general code clean up
performance improvement: initiator and responder tests now run in ~10s
2024-02-26 17:20:33 +01:00
James Brownlee
e96968b8bc
adding dos protection code
2024-02-26 17:20:33 +01:00
Aaron Kaiser
81487b103d
refactor: Get rid of comment and unessary truncation of buffer
2024-02-21 14:04:39 +01:00
Aaron Kaiser
8ea253f86b
refactor: use memoffset crate instead of unstable offset_of feature
2024-02-21 14:04:39 +01:00
Aaron Kaiser
fd8f2e4424
style: apply rustfmt
2024-02-21 14:04:39 +01:00
Aaron Kaiser
a996b08279
refactor: replace lenses library with the zerocopy crate
2024-02-21 14:04:39 +01:00
Emil Engler
e38a6b8ed4
Merge pull request #238 from beau2am/contribution-beau2am
...
Fixed grammatical typo in 'cli.rs'. To resolve issue #236 .
2024-02-10 17:46:45 +01:00
Beau McDermott
639541ab4f
fix: Grammatical typo in cli.rs
...
Fixes #236
2024-02-10 17:45:20 +01:00
Karolin Varner
9690085156
chore: Cargo fmt
2024-01-27 21:38:13 +01:00
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
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