/external/rust/crates/ring/src/ |
D | error.rs | 147 pub struct KeyRejected(&'static str); struct 149 impl KeyRejected { implementation 156 KeyRejected("InconsistentComponents") in inconsistent_components() 160 KeyRejected("InvalidComponent") in invalid_component() 165 KeyRejected("InvalidEncoding") in invalid_encoding() 170 KeyRejected("RNG failed") in rng_failed() 174 KeyRejected("PublicKeyIsMissing") in public_key_is_missing() 179 KeyRejected("TooSmall") in too_small() 184 KeyRejected("TooLarge") in too_large() 188 KeyRejected("VersionNotSupported") in version_not_supported() [all …]
|
D | pkcs8.rs | 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__() [all …]
|
/external/rust/crates/ring/src/rsa/ |
D | signing.rs | 23 error::{self, KeyRejected}, 139 pub fn from_pkcs8(pkcs8: &[u8]) -> Result<Self, KeyRejected> { in from_pkcs8() argument 164 pub fn from_der(input: &[u8]) -> Result<Self, KeyRejected> { in from_der() argument 165 untrusted::Input::from(input).read_all(KeyRejected::invalid_encoding(), |input| { in from_der() 169 error::KeyRejected::invalid_encoding(), in from_der() 175 fn from_der_reader(input: &mut untrusted::Reader) -> Result<Self, KeyRejected> { in from_der_reader() argument 177 .map_err(|error::Unspecified| KeyRejected::invalid_encoding())?; in from_der_reader() 179 return Err(KeyRejected::version_not_supported()); in from_der_reader() 184 ) -> Result<io::Positive<'a>, KeyRejected> { in from_der_reader() argument 186 .map_err(|error::Unspecified| KeyRejected::invalid_encoding()) in from_der_reader() [all …]
|
D | verification.rs | 39 ) -> Result<Self, error::KeyRejected> { in from_modulus_and_exponent() argument 63 .map_err(|error::Unspecified| error::KeyRejected::unexpected_error())?; in from_modulus_and_exponent() 65 return Err(error::KeyRejected::too_small()); in from_modulus_and_exponent() 68 return Err(error::KeyRejected::too_large()); in from_modulus_and_exponent()
|
/external/rust/crates/ring/src/ec/ |
D | suite_b.rs | 161 ) -> Result<ec::KeyPair, error::KeyRejected> { in key_pair_from_pkcs8() argument 164 ec_private_key.read_all(error::KeyRejected::invalid_encoding(), |input| { in key_pair_from_pkcs8() 169 error::KeyRejected::invalid_encoding(), in key_pair_from_pkcs8() 179 ) -> Result<(untrusted::Input<'a>, untrusted::Input<'a>), error::KeyRejected> { in key_pair_from_pkcs8_() argument 181 .map_err(|error::Unspecified| error::KeyRejected::invalid_encoding())?; in key_pair_from_pkcs8_() 183 return Err(error::KeyRejected::version_not_supported()); in key_pair_from_pkcs8_() 187 .map_err(|error::Unspecified| error::KeyRejected::invalid_encoding())?; in key_pair_from_pkcs8_() 193 .map_err(|error::Unspecified| error::KeyRejected::invalid_encoding())?; in key_pair_from_pkcs8_() 195 return Err(error::KeyRejected::wrong_algorithm()); in key_pair_from_pkcs8_() 207 .map_err(|error::Unspecified| error::KeyRejected::invalid_encoding())?; in key_pair_from_pkcs8_() [all …]
|
/external/rust/crates/ring/src/ec/curve25519/ed25519/ |
D | signing.rs | 76 pub fn from_pkcs8(pkcs8: &[u8]) -> Result<Self, error::KeyRejected> { in from_pkcs8() argument 99 pub fn from_pkcs8_maybe_unchecked(pkcs8: &[u8]) -> Result<Self, error::KeyRejected> { in from_pkcs8_maybe_unchecked() argument 125 ) -> Result<Self, error::KeyRejected> { in from_seed_and_public_key() argument 133 error::KeyRejected::invalid_encoding() in from_seed_and_public_key() 135 error::KeyRejected::inconsistent_components() in from_seed_and_public_key() 152 pub fn from_seed_unchecked(seed: &[u8]) -> Result<Self, error::KeyRejected> { in from_seed_unchecked() argument 155 .map_err(|_| error::KeyRejected::invalid_encoding())?; in from_seed_unchecked() 243 ) -> Result<(untrusted::Input, Option<untrusted::Input>), error::KeyRejected> { in unwrap_pkcs8() argument 249 .map_err(|error::Unspecified| error::KeyRejected::invalid_encoding())?; in unwrap_pkcs8()
|
/external/rust/crates/ring/src/arithmetic/ |
D | bigint.rs | 96 ) -> Result<Self, error::KeyRejected> { in positive_minimal_width_from_be_bytes() argument 100 return Err(error::KeyRejected::invalid_encoding()); in positive_minimal_width_from_be_bytes() 108 .map_err(|error::Unspecified| error::KeyRejected::unexpected_error())?; in positive_minimal_width_from_be_bytes() 235 ) -> Result<(Self, bits::BitLength), error::KeyRejected> { in from_be_bytes_with_bit_length() argument 242 ) -> Result<(Self, bits::BitLength), error::KeyRejected> { in from_nonnegative_with_bit_length() argument 250 fn from_boxed_limbs(n: BoxedLimbs<M>) -> Result<(Self, bits::BitLength), error::KeyRejected> { in from_boxed_limbs() argument 252 return Err(error::KeyRejected::too_large()); in from_boxed_limbs() 255 return Err(error::KeyRejected::unexpected_error()); in from_boxed_limbs() 258 return Err(error::KeyRejected::invalid_component()); in from_boxed_limbs() 261 return Err(error::KeyRejected::unexpected_error()); in from_boxed_limbs() [all …]
|
/external/rust/crates/ring/src/ec/suite_b/ecdsa/ |
D | signing.rs | 108 ) -> Result<Self, error::KeyRejected> { in from_pkcs8() argument 139 ) -> Result<Self, error::KeyRejected> { in from_private_key_and_public_key() argument 154 ) -> Result<Self, error::KeyRejected> { in new() argument 348 ) -> Result<Self, error::KeyRejected> { in new() argument 356 .map_err(|error::Unspecified| error::KeyRejected::rng_failed())?; in new()
|