Function nix_compat::nixhash::decode_digest
source ยท fn decode_digest(s: &[u8], algo: HashAlgo) -> NixHashResult<NixHash>
Expand description
Decode a plain digest depending on the hash algo specified externally. hexlower, nixbase32 and base64 encodings are supported - the encoding is inferred from the input length.