/third_party/rust/crates/rust-openssl/openssl/src/ |
D | pkey_ctx.rs | 122 pub fn new(pkey: &PKeyRef<T>) -> Result<Self, ErrorStack> { in new() argument 134 pub fn new_id(id: Id) -> Result<Self, ErrorStack> { in new_id() argument 149 pub fn encrypt_init(&mut self) -> Result<(), ErrorStack> { in encrypt_init() argument 160 pub fn verify_init(&mut self) -> Result<(), ErrorStack> { in verify_init() argument 171 pub fn verify_recover_init(&mut self) -> Result<(), ErrorStack> { in verify_recover_init() argument 185 pub fn encrypt(&mut self, from: &[u8], to: Option<&mut [u8]>) -> Result<usize, ErrorStack> { in encrypt() argument 201 pub fn encrypt_to_vec(&mut self, from: &[u8], out: &mut Vec<u8>) -> Result<usize, ErrorStack> { in encrypt_to_vec() argument 222 pub fn verify(&mut self, data: &[u8], sig: &[u8]) -> Result<bool, ErrorStack> { in verify() argument 258 ) -> Result<usize, ErrorStack> { in verify_recover() argument 281 pub fn decrypt_init(&mut self) -> Result<(), ErrorStack> { in decrypt_init() argument [all …]
|
D | bn.rs | 168 pub fn add_word(&mut self, w: u32) -> Result<(), ErrorStack> { in add_word() argument 174 pub fn sub_word(&mut self, w: u32) -> Result<(), ErrorStack> { in sub_word() argument 180 pub fn mul_word(&mut self, w: u32) -> Result<(), ErrorStack> { in mul_word() argument 187 pub fn div_word(&mut self, w: u32) -> Result<u64, ErrorStack> { in div_word() argument 201 pub fn mod_word(&self, w: u32) -> Result<u64, ErrorStack> { in mod_word() argument 215 pub fn rand_range(&self, rnd: &mut BigNumRef) -> Result<(), ErrorStack> { in rand_range() argument 222 pub fn pseudo_rand_range(&self, rnd: &mut BigNumRef) -> Result<(), ErrorStack> { in pseudo_rand_range() argument 231 pub fn set_bit(&mut self, n: i32) -> Result<(), ErrorStack> { in set_bit() argument 240 pub fn clear_bit(&mut self, n: i32) -> Result<(), ErrorStack> { in clear_bit() argument 256 pub fn mask_bits(&mut self, n: i32) -> Result<(), ErrorStack> { in mask_bits() argument [all …]
|
D | pkey.rs | 160 pub fn rsa(&self) -> Result<Rsa<T>, ErrorStack> { in rsa() argument 169 pub fn dsa(&self) -> Result<Dsa<T>, ErrorStack> { in dsa() argument 178 pub fn dh(&self) -> Result<Dh<T>, ErrorStack> { in dh() argument 187 pub fn ec_key(&self) -> Result<EcKey<T>, ErrorStack> { in ec_key() argument 264 pub fn raw_public_key(&self) -> Result<Vec<u8>, ErrorStack> { in raw_public_key() argument 315 pub fn raw_private_key(&self) -> Result<Vec<u8>, ErrorStack> { in raw_private_key() argument 336 pub fn private_key_to_pkcs8(&self) -> Result<Vec<u8>, ErrorStack> { in private_key_to_pkcs8() argument 360 ) -> Result<Vec<u8>, ErrorStack> { in private_key_to_pkcs8_passphrase() argument 407 pub fn from_rsa(rsa: Rsa<T>) -> Result<PKey<T>, ErrorStack> { in from_rsa() argument 419 pub fn from_dsa(dsa: Dsa<T>) -> Result<PKey<T>, ErrorStack> { in from_dsa() argument [all …]
|
D | encrypt.rs | 102 pub fn rsa_padding(&self) -> Result<Padding, ErrorStack> { in rsa_padding() argument 117 pub fn set_rsa_padding(&mut self, padding: Padding) -> Result<(), ErrorStack> { in set_rsa_padding() argument 134 pub fn set_rsa_mgf1_md(&mut self, md: MessageDigest) -> Result<(), ErrorStack> { in set_rsa_mgf1_md() argument 152 pub fn set_rsa_oaep_md(&mut self, md: MessageDigest) -> Result<(), ErrorStack> { in set_rsa_oaep_md() argument 170 pub fn set_rsa_oaep_label(&mut self, label: &[u8]) -> Result<(), ErrorStack> { in set_rsa_oaep_label() argument 221 pub fn encrypt(&self, from: &[u8], to: &mut [u8]) -> Result<usize, ErrorStack> { in encrypt() argument 241 pub fn encrypt_len(&self, from: &[u8]) -> Result<usize, ErrorStack> { in encrypt_len() argument 306 pub fn rsa_padding(&self) -> Result<Padding, ErrorStack> { in rsa_padding() argument 321 pub fn set_rsa_padding(&mut self, padding: Padding) -> Result<(), ErrorStack> { in set_rsa_padding() argument 338 pub fn set_rsa_mgf1_md(&mut self, md: MessageDigest) -> Result<(), ErrorStack> { in set_rsa_mgf1_md() argument [all …]
|
D | ec.rs | 141 pub fn from_curve_name(nid: Nid) -> Result<EcGroup, ErrorStack> { in from_curve_name() argument 155 ) -> Result<EcGroup, ErrorStack> { in from_components() argument 178 ) -> Result<(), ErrorStack> { in components_gfp() argument 205 ) -> Result<(), ErrorStack> { in components_gf2m() argument 224 ) -> Result<(), ErrorStack> { in cofactor() argument 264 ) -> Result<(), ErrorStack> { in set_generator() argument 282 ) -> Result<(), ErrorStack> { in order() argument 342 ) -> Result<(), ErrorStack> { in add() argument 364 ) -> Result<(), ErrorStack> { in mul() argument 386 ) -> Result<(), ErrorStack> { in mul_generator() argument [all …]
|
D | md_ctx.rs | 130 pub fn digest_init(&mut self, digest: &MdRef) -> Result<(), ErrorStack> { in digest_init() argument 197 pub fn digest_update(&mut self, data: &[u8]) -> Result<(), ErrorStack> { in digest_update() argument 212 pub fn digest_sign_update(&mut self, data: &[u8]) -> Result<(), ErrorStack> { in digest_sign_update() argument 227 pub fn digest_verify_update(&mut self, data: &[u8]) -> Result<(), ErrorStack> { in digest_verify_update() argument 242 pub fn digest_final(&mut self, out: &mut [u8]) -> Result<usize, ErrorStack> { in digest_final() argument 262 pub fn digest_final_xof(&mut self, out: &mut [u8]) -> Result<(), ErrorStack> { in digest_final_xof() argument 280 pub fn digest_sign_final(&mut self, out: Option<&mut [u8]>) -> Result<usize, ErrorStack> { in digest_sign_final() argument 295 pub fn digest_sign_final_to_vec(&mut self, out: &mut Vec<u8>) -> Result<usize, ErrorStack> { in digest_sign_final_to_vec() argument 310 pub fn digest_verify_final(&mut self, signature: &[u8]) -> Result<bool, ErrorStack> { in digest_verify_final() argument 330 pub fn digest_sign(&mut self, from: &[u8], to: Option<&mut [u8]>) -> Result<usize, ErrorStack> { in digest_sign() argument [all …]
|
D | sign.rs | 203 pub fn rsa_padding(&self) -> Result<Padding, ErrorStack> { in rsa_padding() argument 218 pub fn set_rsa_padding(&mut self, padding: Padding) -> Result<(), ErrorStack> { in set_rsa_padding() argument 235 pub fn set_rsa_pss_saltlen(&mut self, len: RsaPssSaltlen) -> Result<(), ErrorStack> { in set_rsa_pss_saltlen() argument 252 pub fn set_rsa_mgf1_md(&mut self, md: MessageDigest) -> Result<(), ErrorStack> { in set_rsa_mgf1_md() argument 270 pub fn update(&mut self, buf: &[u8]) -> Result<(), ErrorStack> { in update() argument 289 pub fn len(&self) -> Result<usize, ErrorStack> { in len() argument 294 fn len_intern(&self) -> Result<usize, ErrorStack> { in len_intern() argument 307 fn len_intern(&self) -> Result<usize, ErrorStack> { in len_intern() argument 329 pub fn sign(&self, buf: &mut [u8]) -> Result<usize, ErrorStack> { in sign() argument 344 pub fn sign_to_vec(&self) -> Result<Vec<u8>, ErrorStack> { in sign_to_vec() argument [all …]
|
D | dh.rs | 45 pub fn check_key(&self) -> Result<bool, ErrorStack> { in check_key() argument 55 pub fn from_params(p: BigNum, g: BigNum, q: BigNum) -> Result<Dh<Params>, ErrorStack> { in from_params() argument 65 ) -> Result<Dh<Params>, ErrorStack> { in from_pqg() argument 80 pub fn set_public_key(self, pub_key: BigNum) -> Result<Dh<Public>, ErrorStack> { in set_public_key() argument 90 pub fn set_private_key(self, priv_key: BigNum) -> Result<Dh<Private>, ErrorStack> { in set_private_key() argument 103 pub fn set_key(self, pub_key: BigNum, priv_key: BigNum) -> Result<Dh<Private>, ErrorStack> { in set_key() argument 114 pub fn generate_params(prime_len: u32, generator: u32) -> Result<Dh<Params>, ErrorStack> { in generate_params() argument 129 pub fn generate_key(self) -> Result<Dh<Private>, ErrorStack> { in generate_key() argument 247 pub fn compute_key(&self, public_key: &BigNumRef) -> Result<Vec<u8>, ErrorStack> { in compute_key() argument
|
D | provider.rs | 28 pub fn load(ctx: Option<&LibCtxRef>, name: &str) -> Result<Self, ErrorStack> { in load() argument 49 ) -> Result<Self, ErrorStack> { in try_load() argument 67 pub fn set_default_search_path(ctx: Option<&LibCtxRef>, path: &str) -> Result<(), ErrorStack> { in set_default_search_path() argument
|
D | cipher_ctx.rs | 124 ) -> Result<(), ErrorStack> { in encrypt_init() argument 144 ) -> Result<(), ErrorStack> { in decrypt_init() argument 160 ) -> Result<(), ErrorStack> { in cipher_init() argument 329 pub fn rand_key(&self, buf: &mut [u8]) -> Result<(), ErrorStack> { in rand_key() argument 350 pub fn set_key_length(&mut self, len: usize) -> Result<(), ErrorStack> { in set_key_length() argument 401 pub fn set_iv_length(&mut self, len: usize) -> Result<(), ErrorStack> { in set_iv_length() argument 442 pub fn tag(&self, tag: &mut [u8]) -> Result<(), ErrorStack> { in tag() argument 461 pub fn set_tag_length(&mut self, len: usize) -> Result<(), ErrorStack> { in set_tag_length() argument 478 pub fn set_tag(&mut self, tag: &[u8]) -> Result<(), ErrorStack> { in set_tag() argument 507 pub fn set_data_len(&mut self, len: usize) -> Result<(), ErrorStack> { in set_data_len() argument [all …]
|
D | error.rs | 39 pub struct ErrorStack(Vec<Error>); struct 41 impl ErrorStack { impl 59 impl ErrorStack { impl 66 impl fmt::Display for ErrorStack { implementation 84 impl error::Error for ErrorStack {} implementation
|
D | rsa.rs | 131 ) -> Result<usize, ErrorStack> { in private_decrypt() argument 159 ) -> Result<usize, ErrorStack> { in private_encrypt() argument 238 pub fn check_key(&self) -> Result<bool, ErrorStack> { in check_key() argument 303 ) -> Result<usize, ErrorStack> { in public_decrypt() argument 330 ) -> Result<usize, ErrorStack> { in public_encrypt() argument 377 pub fn from_public_components(n: BigNum, e: BigNum) -> Result<Rsa<Public>, ErrorStack> { in from_public_components() argument 437 pub fn new(n: BigNum, e: BigNum, d: BigNum) -> Result<RsaPrivateKeyBuilder, ErrorStack> { in new() argument 453 pub fn set_factors(self, p: BigNum, q: BigNum) -> Result<RsaPrivateKeyBuilder, ErrorStack> { in set_factors() argument 472 ) -> Result<RsaPrivateKeyBuilder, ErrorStack> { in set_crt_params() argument 516 ) -> Result<Rsa<Private>, ErrorStack> { in from_private_components() argument [all …]
|
D | envelope.rs | 79 pub fn update(&mut self, input: &[u8], output: &mut [u8]) -> Result<usize, ErrorStack> { in update() argument 92 pub fn finalize(&mut self, output: &mut [u8]) -> Result<usize, ErrorStack> { in finalize() argument 134 pub fn update(&mut self, input: &[u8], output: &mut [u8]) -> Result<usize, ErrorStack> { in update() argument 147 pub fn finalize(&mut self, output: &mut [u8]) -> Result<usize, ErrorStack> { in finalize() argument
|
D | asn1.rs | 203 pub fn diff(&self, compare: &Self) -> Result<TimeDiff, ErrorStack> { in diff() argument 219 pub fn compare(&self, other: &Self) -> Result<Ordering, ErrorStack> { in compare() argument 314 fn from_period(period: c_long) -> Result<Asn1Time, ErrorStack> { in from_period() argument 324 pub fn days_from_now(days: u32) -> Result<Asn1Time, ErrorStack> { in days_from_now() argument 330 pub fn from_unix(time: time_t) -> Result<Asn1Time, ErrorStack> { in from_unix() argument 342 pub fn from_str(s: &str) -> Result<Asn1Time, ErrorStack> { in from_str() argument 358 pub fn from_str_x509(s: &str) -> Result<Asn1Time, ErrorStack> { in from_str_x509() argument 440 pub fn as_utf8(&self) -> Result<OpensslString, ErrorStack> { in as_utf8() argument 510 pub fn from_bn(bn: &BigNumRef) -> Result<Self, ErrorStack> { in from_bn() argument 541 pub fn to_bn(&self) -> Result<BigNum, ErrorStack> { in to_bn() argument [all …]
|
D | dsa.rs | 197 pub fn from_pqg(p: BigNum, q: BigNum, g: BigNum) -> Result<Dsa<Params>, ErrorStack> { in from_pqg() argument 208 pub fn generate_params(bits: u32) -> Result<Dsa<Params>, ErrorStack> { in generate_params() argument 227 pub fn generate_key(self) -> Result<Dsa<Private>, ErrorStack> { in generate_key() argument 241 pub fn generate(bits: u32) -> Result<Dsa<Private>, ErrorStack> { in generate() argument 257 ) -> Result<Dsa<Private>, ErrorStack> { in from_private_components() argument 298 ) -> Result<Dsa<Public>, ErrorStack> { in from_public_components() argument 440 pub fn from_private_components(r: BigNum, s: BigNum) -> Result<Self, ErrorStack> { in from_private_components() argument
|
D | ocsp.rs | 132 pub fn check_validity(&self, nsec: u32, maxsec: Option<u32>) -> Result<(), ErrorStack> { in check_validity() argument 164 ) -> Result<(), ErrorStack> { in verify() argument 227 ) -> Result<OcspCertId, ErrorStack> { in from_cert() argument 255 ) -> Result<OcspResponse, ErrorStack> { in create() argument 294 pub fn basic(&self) -> Result<OcspBasicResponse, ErrorStack> { in basic() argument 335 pub fn add_id(&mut self, id: OcspCertId) -> Result<&mut OcspOneReqRef, ErrorStack> { in add_id() argument
|
D | lib.rs | 199 fn cvt_p<T>(r: *mut T) -> Result<*mut T, ErrorStack> { in cvt_p() argument 208 fn cvt(r: c_int) -> Result<c_int, ErrorStack> { in cvt() argument 217 fn cvt_n(r: c_int) -> Result<c_int, ErrorStack> { in cvt_n() argument
|
D | pkcs5.rs | 39 ) -> Result<KeyIvPair, ErrorStack> { in bytes_to_key() argument 97 ) -> Result<(), ErrorStack> { in pbkdf2_hmac() argument 128 ) -> Result<(), ErrorStack> { in scrypt() argument
|
D | derive.rs | 125 pub fn len(&mut self) -> Result<usize, ErrorStack> { in len() argument 139 pub fn derive(&mut self, buf: &mut [u8]) -> Result<usize, ErrorStack> { in derive() argument 157 pub fn derive_to_vec(&mut self) -> Result<Vec<u8>, ErrorStack> { in derive_to_vec() argument
|
D | hash.rs | 246 pub fn new(ty: MessageDigest) -> Result<Hasher, ErrorStack> { in new() argument 261 fn init(&mut self) -> Result<(), ErrorStack> { in init() argument 277 pub fn update(&mut self, data: &[u8]) -> Result<(), ErrorStack> { in update() argument 293 pub fn finish(&mut self) -> Result<DigestBytes, ErrorStack> { in finish() argument 319 pub fn finish_xof(&mut self, buf: &mut [u8]) -> Result<(), ErrorStack> { in finish_xof() argument 436 pub fn hash(t: MessageDigest, data: &[u8]) -> Result<DigestBytes, ErrorStack> { in hash() argument 457 pub fn hash_xof(t: MessageDigest, data: &[u8], buf: &mut [u8]) -> Result<(), ErrorStack> { in hash_xof() argument
|
/third_party/rust/crates/rust-openssl/openssl/src/x509/ |
D | store.rs | 97 pub fn add_cert(&mut self, cert: X509) -> Result<(), ErrorStack> { in add_cert() argument 107 pub fn set_default_paths(&mut self) -> Result<(), ErrorStack> { in set_default_paths() argument 116 ) -> Result<&mut X509LookupRef<T>, ErrorStack> { in add_lookup() argument 124 pub fn set_flags(&mut self, flags: X509VerifyFlags) -> Result<(), ErrorStack> { in set_flags() argument 131 pub fn set_purpose(&mut self, purpose: X509PurposeId) -> Result<(), ErrorStack> { in set_purpose() argument 138 pub fn set_param(&mut self, param: &X509VerifyParamRef) -> Result<(), ErrorStack> { in set_param() argument 175 pub fn add_dir(&mut self, name: &str, file_type: SslFiletype) -> Result<(), ErrorStack> { in add_dir() argument 211 ) -> Result<(), ErrorStack> { in load_cert_file() argument 229 ) -> Result<i32, ErrorStack> { in load_crl_file() argument
|
D | mod.rs | 133 ) -> Result<T, ErrorStack> in init() argument 167 pub fn verify_cert(&mut self) -> Result<bool, ErrorStack> { in verify_cert() argument 228 pub fn set_not_after(&mut self, not_after: &Asn1TimeRef) -> Result<(), ErrorStack> { in set_not_after() argument 234 pub fn set_not_before(&mut self, not_before: &Asn1TimeRef) -> Result<(), ErrorStack> { in set_not_before() argument 244 pub fn set_version(&mut self, version: i32) -> Result<(), ErrorStack> { in set_version() argument 250 pub fn set_serial_number(&mut self, serial_number: &Asn1IntegerRef) -> Result<(), ErrorStack> { in set_serial_number() argument 262 pub fn set_issuer_name(&mut self, issuer_name: &X509NameRef) -> Result<(), ErrorStack> { in set_issuer_name() argument 291 pub fn set_subject_name(&mut self, subject_name: &X509NameRef) -> Result<(), ErrorStack> { in set_subject_name() argument 348 pub fn append_extension(&mut self, extension: X509Extension) -> Result<(), ErrorStack> { in append_extension() argument 354 pub fn append_extension2(&mut self, extension: &X509ExtensionRef) -> Result<(), ErrorStack> { in append_extension2() argument [all …]
|
D | verify.rs | 96 pub fn set_flags(&mut self, flags: X509VerifyFlags) -> Result<(), ErrorStack> { in set_flags() argument 102 pub fn clear_flags(&mut self, flags: X509VerifyFlags) -> Result<(), ErrorStack> { in clear_flags() argument 121 pub fn set_host(&mut self, host: &str) -> Result<(), ErrorStack> { in set_host() argument 136 pub fn set_ip(&mut self, ip: IpAddr) -> Result<(), ErrorStack> { in set_ip() argument 187 pub fn set_purpose(&mut self, purpose: X509PurposeId) -> Result<(), ErrorStack> { in set_purpose() argument
|
/third_party/rust/crates/rust-openssl/openssl/src/ssl/ |
D | connector.rs | 28 fn ctx(method: SslMethod) -> Result<SslContextBuilder, ErrorStack> { in ctx() argument 74 pub fn builder(method: SslMethod) -> Result<SslConnectorBuilder, ErrorStack> { in builder() argument 96 pub fn configure(&self) -> Result<ConnectConfiguration, ErrorStack> { in configure() argument 182 pub fn into_ssl(mut self, domain: &str) -> Result<Ssl, ErrorStack> { in into_ssl() argument 234 pub fn mozilla_intermediate_v5(method: SslMethod) -> Result<SslAcceptorBuilder, ErrorStack> { in mozilla_intermediate_v5() argument 261 pub fn mozilla_modern_v5(method: SslMethod) -> Result<SslAcceptorBuilder, ErrorStack> { in mozilla_modern_v5() argument 278 pub fn mozilla_intermediate(method: SslMethod) -> Result<SslAcceptorBuilder, ErrorStack> { in mozilla_intermediate() argument 306 pub fn mozilla_modern(method: SslMethod) -> Result<SslAcceptorBuilder, ErrorStack> { in mozilla_modern() argument
|
D | mod.rs | 711 pub fn new(method: SslMethod) -> Result<SslContextBuilder, ErrorStack> { in new() argument 805 pub fn set_verify_cert_store(&mut self, cert_store: X509Store) -> Result<(), ErrorStack> { in set_verify_cert_store() argument 848 pub fn set_tmp_dh(&mut self, dh: &DhRef<Params>) -> Result<(), ErrorStack> { in set_tmp_dh() argument 875 pub fn set_tmp_ecdh(&mut self, key: &EcKeyRef<Params>) -> Result<(), ErrorStack> { in set_tmp_ecdh() argument 905 pub fn set_default_verify_paths(&mut self) -> Result<(), ErrorStack> { in set_default_verify_paths() argument 913 pub fn set_ca_file<P: AsRef<Path>>(&mut self, file: P) -> Result<(), ErrorStack> { in set_ca_file() argument 940 pub fn add_client_ca(&mut self, cacert: &X509Ref) -> Result<(), ErrorStack> { in add_client_ca() argument 953 pub fn set_session_id_context(&mut self, sid_ctx: &[u8]) -> Result<(), ErrorStack> { in set_session_id_context() argument 975 ) -> Result<(), ErrorStack> { in set_certificate_file() argument 996 ) -> Result<(), ErrorStack> { in set_certificate_chain_file() argument [all …]
|