pub fn decode_string(
encoded: &str,
algorithm: Algorithm,
) -> Result<Decoded, Error>Expand description
decode_string(ctx, str, type).
§Errors
Error::DecodingFail for a malformed string, or whatever
crate::params::validate_inputs returns — the C runs the full validation
before accepting the string, so a well-formed string with a zero-length salt
yields Error::SaltTooShort and not Error::DecodingFail.
See the module documentation for the known divergences from the C (unrepresentable versions, embedded NULs, and raw/non-ASCII input).