Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dht)!: add message padding for message decryption, to reduce message length leaks (fixes #4140) #4362

Merged
Merged
Changes from 47 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
2f10996
address points in issue #4138 and companions
jorgeantonio21 Jul 22, 2022
a103aba
Merge branch 'development' into ja-derived-keys
jorgeantonio21 Jul 22, 2022
33da112
correct bugs in chacha20poly1305 utilization
jorgeantonio21 Jul 22, 2022
0b17607
address domain separation regarding challenge generation for mac origin
jorgeantonio21 Jul 22, 2022
da661f8
run cargo fmt
jorgeantonio21 Jul 22, 2022
aee19eb
add tests for failure modes of new authentication encryption for key …
jorgeantonio21 Jul 22, 2022
b6e29d5
renaming
jorgeantonio21 Jul 22, 2022
95a9948
run cargo fmt
jorgeantonio21 Jul 22, 2022
ed61369
clippy: too many lines
jorgeantonio21 Jul 22, 2022
20b9323
rename origin_mac to message_signature
jorgeantonio21 Jul 24, 2022
58c5e5a
run cargo fmt
jorgeantonio21 Jul 24, 2022
cc743e3
add output type for ecdh exchange
jorgeantonio21 Jul 25, 2022
5600252
add new use of hashing API
jorgeantonio21 Jul 25, 2022
c2bb431
merge message-challenge-with-api branch
jorgeantonio21 Jul 26, 2022
2fa7515
add changes
jorgeantonio21 Jul 26, 2022
27f1ab6
add generic constant length array size for generate_ecdh_secret method
jorgeantonio21 Jul 26, 2022
08da5bc
add pad message length
jorgeantonio21 Jul 26, 2022
ea94992
add minor changes
jorgeantonio21 Jul 26, 2022
c3a1d0a
Merge branch 'development' into ja-derived-keys
jorgeantonio21 Jul 27, 2022
25a47d3
merge derived keys
jorgeantonio21 Jul 27, 2022
34ddce6
add small change
jorgeantonio21 Jul 27, 2022
39b9804
merge development
jorgeantonio21 Jul 28, 2022
c0ee6e4
add logic to message length
jorgeantonio21 Jul 28, 2022
d53e82a
add tests and de-pad of message
jorgeantonio21 Jul 29, 2022
266d4dd
refactor necessary tests
jorgeantonio21 Jul 29, 2022
2901a41
add further tests for encryption/decryption possible failure cases
jorgeantonio21 Jul 29, 2022
9353c71
Merge branch 'development' into ja-message-length-leaked
jorgeantonio21 Jul 29, 2022
a17362c
remove unused comms_dht_hash
jorgeantonio21 Jul 29, 2022
b025015
Merge branch 'development' into ja-message-length-leaked
jorgeantonio21 Jul 29, 2022
27afc0f
Merge branch 'development' into ja-message-length-leaked
aviator-app[bot] Aug 2, 2022
a8adfbf
Merge branch 'ja-message-length-leaked' of github.com:jorgeantonio21/…
jorgeantonio21 Aug 2, 2022
eb250be
Update comms/dht/src/crypt.rs
jorgeantonio21 Aug 2, 2022
4fe8ded
address PR comments
jorgeantonio21 Aug 2, 2022
c562e48
Merge branch 'ja-message-length-leaked' of github.com:jorgeantonio21/…
jorgeantonio21 Aug 2, 2022
2f2bc50
Update comms/dht/src/lib.rs
jorgeantonio21 Aug 2, 2022
0c9ff7c
add changes
jorgeantonio21 Aug 2, 2022
43a49b2
Update comms/dht/src/crypt.rs
jorgeantonio21 Aug 2, 2022
74452b7
add changes
jorgeantonio21 Aug 2, 2022
b40d3e4
Merge branch 'ja-message-length-leaked' of github.com:jorgeantonio21/…
jorgeantonio21 Aug 2, 2022
8907c53
Update comms/dht/src/crypt.rs
jorgeantonio21 Aug 2, 2022
c6a80d9
add changes
jorgeantonio21 Aug 2, 2022
2d74b9a
Merge branch 'ja-message-length-leaked' of github.com:jorgeantonio21/…
jorgeantonio21 Aug 2, 2022
cca12af
add prepend length test for padding
jorgeantonio21 Aug 2, 2022
aa7d48d
add cargo fmt
jorgeantonio21 Aug 2, 2022
2ebfc60
add assert for message modified length
jorgeantonio21 Aug 2, 2022
83edad3
Merge branch 'development' into ja-message-length-leaked
jorgeantonio21 Aug 2, 2022
3b01738
cargo clippy
jorgeantonio21 Aug 2, 2022
b8bbe9e
Merge branch 'development' into ja-message-length-leaked
sdbondi Aug 3, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading