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

implement PartialEq on MessageDigest #1081

Closed
npmccallum opened this issue Mar 14, 2019 · 1 comment
Closed

implement PartialEq on MessageDigest #1081

npmccallum opened this issue Mar 14, 2019 · 1 comment

Comments

@npmccallum
Copy link
Contributor

npmccallum commented Mar 14, 2019

It isn't currently clear how to compare two MessageDigest instances for equality. Please implement PartialEq so that developers don't try to work around the situation incorrectly.

@sfackler
Copy link
Owner

sfackler commented Mar 14, 2019

MessageDigest implements Deref<Target = [u8]>, so you can just get the buffers out of them and compare however you like.

EDIT: Derp, I was thinking of the wrong thing.

sfackler added a commit that referenced this issue Mar 17, 2019
matkarlg pushed a commit to matkarlg/rust-openssl that referenced this issue Aug 17, 2019
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

No branches or pull requests

2 participants