Prabhpreet Dua
e2792272e8
Merge branch 'main' into feat/cookie-mechanism
2023-11-29 21:01:32 +05:30
Karolin Varner
40861cc2ea
fix: Nix flake failing due to rosenpass-to
...
README.md was missing; added it to the list of source files
2023-11-29 11:36:28 +01:00
Karolin Varner
09aa0e027e
chore: Move hashing functions into sodium/ciphers crate
...
This finishes the last step of removing sodium.rs from the rosenpass crate
itself and also removes the NOTHING and NONCE0 constants.
Hashing functions now use destination parameters;
rosenpass_constant_time::xor now does too.
2023-11-29 11:36:28 +01:00
Morgan Hill
d44793e07f
Remove unwrap from fuzz targets that return errors
...
When fuzzing we are interested in what happens inside the target function
not necessarily what it returns. Functions returning errors with bogus
input in generally desired behaviour.
2023-11-29 11:36:07 +01:00
Prabhpreet Dua
1c65e67be2
Fix cargo fmt lint
2023-11-29 05:10:18 +05:30
Prabhpreet Dua
2ae3d6c271
Merge branch 'main' into feat/cookie-mechanism, ignore incoming messages when initiator is under load, whitepaper updates
2023-11-29 05:06:22 +05:30
Karolin Varner
d539be3142
feat: Rosenpass-to for nicely handling destination parameters
2023-11-26 11:18:47 +01:00
Morgan Hill
a49254a021
feat(fuzzing): Add initial set of fuzzing targets
...
These targets can be used with rust nightly and cargo-fuzz to fuzz
several bits of Rosenpass's API. Fuzzing is an automated way of
exploring code paths that may not be hit in unit tests or normal
operation. For example the `handle_msg` target exposed the DoS condition
fixed in 0.2.1.
The other targets focus on the FFI with libsodium and liboqs.
Co-authored-by: Karolin Varner <karo@cupdev.net >
2023-11-26 11:05:19 +01:00
Karolin Varner
86300ca936
chore: Use naming scheme without rosenpass- for crates
2023-11-26 10:38:24 +01:00
Karolin Varner
3ddf736b60
chore: Move xchacha20 implementation out of rosenpass::sodium
2023-11-26 10:38:24 +01:00
Karolin Varner
c64e721c2f
chore: Move chacha20 implementation out of rosenpass::sodium
...
Introduces a new crate for selected ciphers which references
a cipher implementation in the rosenpass-sodium crate.
2023-11-26 10:38:24 +01:00
Karolin Varner
4c51ead078
chore: Move libsodium's helper function into their own namespace
2023-11-26 10:38:24 +01:00
Karolin Varner
c5c34523f3
chore: Move libsodium's memzero, randombytes fns into rosenpass-sodium
2023-11-26 10:38:24 +01:00
Karolin Varner
6553141637
chore: Move libsodium's increment into rosenpass-sodium crate
2023-11-26 10:38:24 +01:00
Karolin Varner
a3de526db8
chore: Move libsodium's compare into rosenpass-sodium crate
2023-11-26 10:38:24 +01:00
Karolin Varner
5da0e4115e
chore: Move memcmp into rosenpass-sodium crate
2023-11-26 10:38:24 +01:00
Karolin Varner
99634d9702
chore: Move sodium init integration into rosenpass-sodium crate
2023-11-26 10:38:24 +01:00
Karolin Varner
46156fcb29
fix: Setup cargo fmt to check the entire workspace
2023-11-26 10:38:24 +01:00
Karolin Varner
e50542193f
chore: Move file utils into coloring or the util crate
2023-11-26 10:38:24 +01:00
Karolin Varner
3db9755580
chore: move functional utils into utils library
2023-11-26 10:38:24 +01:00
Karolin Varner
556dbd2600
chore: move time utils into util crate
2023-11-26 10:38:24 +01:00
Karolin Varner
6cd42ebf50
chore: move max_usize into util crate
2023-11-26 10:38:24 +01:00
Karolin Varner
a220c11e67
chore: Move xor_into, copying and base64 utils into own crates
2023-11-26 10:38:24 +01:00
Emil Engler
c9cef05b29
doc: Add bibliography to the manual page
...
Fixes #153
2023-11-26 09:51:11 +01:00
Prabhpreet Dua
96d4f0b545
Merge branch 'main' into feat/cookie-mechanism
2023-11-19 12:06:33 +05:30
Prabhpreet Dua
ad947a755c
Add test with initiator under load, add section to WP
2023-11-19 11:30:12 +05:30
wucke13
0b4b1279cf
chore: Release rosenpass version 0.2.1
v0.2.1
2023-11-18 23:16:22 +01:00
wucke13
44264a7bb6
chore: Release rosenpass version 0.2.1-rc.3
v0.2.1-rc.3
2023-11-18 22:58:57 +01:00
wucke13
b095bdaa7c
refine ab085998bb
...
This commit refines the above by making cargo release emit no prefix for release tags even if only a single package is released.
2023-11-18 22:57:53 +01:00
wucke13
9597e485bf
chore: Release rosenpass version 0.2.1-rc.2
rosenpass-v0.2.1-rc.2
2023-11-18 22:48:35 +01:00
wucke13
ab085998bb
add new trigger for release workflow
...
The change to a multi crate cargo workspace makes `cargo release` behave differently. Now it prefixes the release tags (e.g. `v0.2.0`) with the package name, so for example `rosenpass-v0.2.0`. This change adds the
2023-11-18 22:43:47 +01:00
wucke13
3901e668cb
chore: Release rosenpass version 0.2.1-rc.1
rosenpass-v0.2.1-rc.1
2023-11-18 22:30:46 +01:00
wucke13
b7444bf9b4
add readme link to rosenpass package
2023-11-18 22:25:05 +01:00
Benjamin Lipp
0051cbd48e
doc: Add unit test for xor_into
2023-11-15 14:32:19 +01:00
Prabhpreet Dua
35f9c3bf68
Cookie reply processing continued
2023-11-14 21:42:48 +05:30
Prabhpreet Dua
ff44002b7c
Cookie reply handler test setup
2023-11-13 20:57:34 +05:30
Prabhpreet Dua
0ce8304c69
Merge branch 'main' into feat/cookie-mechanism
2023-11-13 14:55:10 +05:30
Prabhpreet Dua
5f91feb3a4
Checkpoint- cookie reply handler
2023-11-13 14:47:39 +05:30
Karolin Varner
27746781c0
fix: Doctest should pass buffers of correct length to handle_msg
2023-11-12 14:42:23 +01:00
Karolin Varner
93439858d1
fix crash on undersized buffers going through the lenses
...
Co-authored-by: wucke13 <wucke13@gmail.com >
2023-11-12 14:42:23 +01:00
wucke13
1223048b48
Merge pull request #148 from rosenpass/dev/wucke13-update-lock-files
...
update lock files
2023-11-12 13:44:10 +01:00
wucke13
932bde39cc
flake.lock: Update
...
Flake lock file updates:
• Updated input 'fenix':
'github:nix-community/fenix/add522038f2a32aa1263c8d3c81e1ea2265cc4e1' (2023-08-23)
→ 'github:nix-community/fenix/81ab0b4f7ae9ebb57daa0edf119c4891806e4d3a' (2023-11-12)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/9e3bf69ad3c736893b285f47f4d014ae1aed1cb0' (2023-08-22)
→ 'github:rust-lang/rust-analyzer/5fcf5289e726785d20d3aa4d13d90a43ed248e83' (2023-11-11)
• Updated input 'flake-utils':
'github:numtide/flake-utils/919d646de7be200f3bf08cb76ae1f09402b6f9b4' (2023-07-11)
→ 'github:numtide/flake-utils/ff7b65b44d01cf9ba6a71320833626af21126384' (2023-09-12)
• Updated input 'naersk':
'github:nix-community/naersk/78789c30d64dea2396c9da516bbcc8db3a475207' (2023-08-18)
→ 'github:nix-community/naersk/aeb58d5e8faead8980a807c840232697982d47b9' (2023-10-27)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/78287547942dd8e8afff0ae47fb8e2553db79d7e' (2023-08-08)
→ 'github:NixOS/nixpkgs/34bdaaf1f0b7fb6d9091472edc968ff10a8c2857' (2023-11-01)
2023-11-12 13:29:22 +01:00
wucke13
1d9e62e56b
update Cargo.lock
2023-11-12 13:29:06 +01:00
wucke13
3af722a066
Merge pull request #143 from rosenpass/dev/refactor-rp-to-workspace
...
refactor rp to workspace
2023-11-12 13:27:31 +01:00
wucke13
df60b0bfc3
refine source filter
...
In particular, replace the error prone sourceByRegex filter for the rosenpass derivation with a simple file suffix filter.
2023-11-12 13:16:34 +01:00
wucke13
6274c6fcdd
add workspace Cargo.toml
2023-11-12 13:16:34 +01:00
wucke13
cd00f023fb
move the current rosenpass codebase into a subdir
...
This is preparation to make the rosenpass repo a workspace, which can contain multiple crates.
2023-11-12 13:16:34 +01:00
Prabhpreet Dua
baebb8632f
Merge branch 'main' into feat/cookie-mechanism
2023-11-09 19:33:35 +05:30
Prabhpreet Dua
cb97f90581
cookie mechanism trigger- send cookie reply message under load if cookie not valid
2023-11-09 19:28:02 +05:30
Karolin Varner
13563237cb
chore: rustfmt
2023-11-08 22:05:30 +01:00