<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "OpenSSL",
  "identifier" : "/documentation/OpenSSL/OpenSSLError/invalidInput(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "OpenSSL"
    ],
    "preciseIdentifier" : "s:7OpenSSL0A8SSLErrorO12invalidInputyACSScACmF"
  },
  "title" : "OpenSSLError.invalidInput(_:)"
}
-->

# OpenSSLError.invalidInput(_:)

Thrown when raw input bytes do not satisfy a size or format
constraint.

```
case invalidInput(String)
```

## Discussion

Produced by [`init(rawValue:)`](/documentation/OpenSSL/SHA256/SHA256Digest/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.