Case
OpenSSLError.invalidInput(_:)
Thrown when raw input bytes do not satisfy a size or format constraint.
case invalidInput(String)
Discussion
Produced by init(rawValue:) when the caller supplies a Data value whose length is not exactly 32 bytes. The associated String explains the constraint and the observed input.
Typical remediation: fix the call site to supply bytes of the required length; never pad, truncate, or silently retry — the constraint exists because the downstream consumer cannot interpret a partial digest.