Missing hash algorithm
Context in EVP routine is initialized without a hash algorithm
Description
This defect occurs when you use a message digest context in these EVP routines, but you initialize the context without specifying a hash algorithm.
EVP_DigestFinalEVP_DigestSignFinalEVP_SignFinalEVP_VerifyFinal
Risk
Using a message digest context that was initialized without an algorithm to perform a hashing operation might result in a run-time error. Even if the hashing operation is successful, the resulting digest is not secure.
Fix
Specify a hash algorithm when you initial a message digest context that you use in an EVP routine.
Examples
Result Information
| Group: Cryptography |
| Language: C | C++ |
| Default: Off |
Command-Line Syntax:
CRYPTO_MD_NO_ALGORITHM
|
| Impact: Medium |
PQL Name:
std.defects.CRYPTO_MD_NO_ALGORITHM
|
Version History
Introduced in R2019b
See Also
Find defects
(-checkers) | Nonsecure hash algorithm
Topics
- Interpret Polyspace Bug Finder Results in Polyspace Platform User Interface
- Address Polyspace Results Through Bug Fixes or Justifications
- Interpret Bug Finder Results in Polyspace Access Web Interface (Polyspace Access)
- Address Results in Polyspace Access Through Bug Fixes or Justifications (Polyspace Access)