Decode [`KeyData`] for the specified algorithm. # Errors - Returns [`Error::AlgorithmUnknown`] if the provided `algorithm` is unknown or unsupported by this library. - Returns [`Error::Encoding`] in the event of an encoding error.
(reader: &mut impl Reader, algorithm: Algorithm)