Sobelow.Crypto.WeakSignature (Sobelow v0.18.1)

View Source

Weak digests in digital signatures

MD5 and SHA-1 lack the collision resistance required for new digital signatures. Prefer a modern signature scheme and an appropriate digest such as SHA-256 or stronger. HMAC is a different construction and is not classified by this check.

Literal :md5 and :sha selections in :crypto.sign/4,5, verify/5,6, :public_key.sign/3,4 and verify/4,5 receive high confidence regardless of input taint. Verification may be needed for historical data; review the protocol before removing legacy support. Dynamic digest values are not resolved. Keys, padding and signature parameters are not validated.

https://www.rfc-editor.org/rfc/rfc6151 https://csrc.nist.gov/projects/hash-functions

$ mix sobelow -i Crypto.WeakSignature

Summary

Functions

details()

id()

parse_def(fun)

rule()

run(fun, meta_file)