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: use dht inbound error for decryption (see issue #4596) #4601

Merged
merged 14 commits into from
Sep 5, 2022

Conversation

jorgeantonio21
Copy link
Contributor

@jorgeantonio21 jorgeantonio21 commented Sep 1, 2022

Description

Use DhtInboundError for DHT message decryption.

Motivation and Context

After an internal discussion, it was decided to output an error of DhtInboundError instead of DhtOutboundError, in comms/dht/src/crypt.rs:131 and comms/dht/src/inbound/decryption.rs:409.

Fixes #4596

How Has This Been Tested?

Run cargo build

sdbondi
sdbondi previously approved these changes Sep 1, 2022
@sdbondi
Copy link
Member

sdbondi commented Sep 1, 2022

I think let's merge after #4594

@jorgeantonio21 jorgeantonio21 changed the title fix: use dht inbound error for decryption fix: use dht inbound error for decryption (see issue #4596) Sep 1, 2022
@AaronFeickert
Copy link
Collaborator

I think let's merge after #4594

Yeah, this will conflict. Plus, there's a desire to provide more specific error types for decryption and padding failure modes in order to make tests cleaner.

@AaronFeickert
Copy link
Collaborator

Mentioning issue #4596 so it links properly.

@jorgeantonio21 jorgeantonio21 marked this pull request as ready for review September 4, 2022 17:28
Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect - thanks

@sdbondi sdbondi merged commit d9ef267 into tari-project:development Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DHT] decrypt should return DhtInboundError
3 participants