RUSTSEC-2019-0026

generichash::Digest::eq always return true

Issued
Package
sodiumoxide (crates.io)
Type
Vulnerability
Aliases
Details
https://github.com/sodiumoxide/sodiumoxide/pull/381
Patched
  • >=0.2.5
Keywords
  • cryptography
Affected Functions
Version
sodiumoxide::crypto::generichash::Digest::eq
  • <0.2.5, >=0.2.0
sodiumoxide::crypto::generichash::Digest::ne
  • <0.2.5, >=0.2.0

Description

PartialEq implementation for generichash::Digest has compared itself to itself.

Digest::eq always returns true and Digest::ne always returns false.

More