Main Content
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_DigestFinal
EVP_DigestSignFinal
EVP_SignFinal
EVP_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 |
Version History
Introduced in R2019b
See Also
Find defects
(-checkers)
| Nonsecure hash algorithm
Topics
- Interpret Bug Finder Results in Polyspace Desktop User Interface
- Address Results in Polyspace User Interface 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)