Lines Matching refs:KeyRejected
74 ) -> Result<(untrusted::Input<'a>, Option<untrusted::Input<'a>>), error::KeyRejected> { in unwrap_key() argument
92 ) -> Result<(untrusted::Input<'a>, Option<untrusted::Input<'a>>), error::KeyRejected> { in unwrap_key_() argument
93 input.read_all(error::KeyRejected::invalid_encoding(), |input| { in unwrap_key_()
97 error::KeyRejected::invalid_encoding(), in unwrap_key_()
107 ) -> Result<(untrusted::Input<'a>, Option<untrusted::Input<'a>>), error::KeyRejected> { in unwrap_key__() argument
109 .map_err(|error::Unspecified| error::KeyRejected::invalid_encoding())?; in unwrap_key__()
117 return Err(error::KeyRejected::version_not_supported()); in unwrap_key__()
121 .map_err(|error::Unspecified| error::KeyRejected::invalid_encoding())?; in unwrap_key__()
123 return Err(error::KeyRejected::wrong_algorithm()); in unwrap_key__()
131 return Err(error::KeyRejected::version_not_supported()); in unwrap_key__()
136 .map_err(|error::Unspecified| error::KeyRejected::invalid_encoding())?; in unwrap_key__()
141 .map_err(|error::Unspecified| error::KeyRejected::invalid_encoding())?; in unwrap_key__()
146 return Err(error::KeyRejected::public_key_is_missing()); in unwrap_key__()
154 .map_err(|error::Unspecified| error::KeyRejected::invalid_encoding())?; in unwrap_key__()