Home
last modified time | relevance | path

Searched refs:cvt_p (Results 1 - 25 of 34) sorted by relevance

12

/third_party/rust/crates/rust-openssl/openssl/src/
H A Dec.rs29 use crate::{cvt, cvt_n, cvt_p, init};
144 cvt_p(ffi::EC_GROUP_new_by_curve_name(nid.as_raw())).map(EcGroup) in from_curve_name()
157 cvt_p(ffi::EC_GROUP_new_curve_GFp( in from_components()
484 let buf = cvt_p(ffi::EC_POINT_point2hex( in to_hex_str()
497 unsafe { cvt_p(ffi::EC_POINT_dup(self.as_ptr(), group.as_ptr())).map(EcPoint) } in to_owned()
640 unsafe { cvt_p(ffi::EC_POINT_new(group.as_ptr())).map(EcPoint) } in new()
674 cvt_p(ffi::EC_POINT_hex2point( in from_hex_str()
801 cvt_p(ffi::EC_KEY_new_by_curve_name(nid.as_raw())).map(|p| EcKey::from_ptr(p)) in from_curve_name()
809 cvt_p(ffi::EC_KEY_new()) in from_group()
852 cvt_p(ff in from_public_key()
[all...]
H A Dbn.rs36 use crate::{cvt, cvt_n, cvt_p, LenType};
108 cvt_p(ffi::BN_CTX_new()).map(BigNumContext) in new()
118 cvt_p(ffi::BN_CTX_secure_new()).map(BigNumContext) in new_secure()
305 unsafe { cvt_p(ffi::BN_dup(self.as_ptr())).map(|b| BigNum::from_ptr(b)) } in to_owned()
666 cvt_p(ffi::BN_mod_sqrt( in mod_sqrt()
725 cvt_p(ffi::BN_mod_inverse( in mod_inverse()
872 let buf = cvt_p(ffi::BN_bn2dec(self.as_ptr()))?; in to_dec_str()
888 let buf = cvt_p(ffi::BN_bn2hex(self.as_ptr()))?; in to_hex_str()
897 cvt_p(ffi::BN_to_ASN1_INTEGER(self.as_ptr(), ptr::null_mut())) in to_asn1_integer()
936 let v = cvt_p(ff in new()
[all...]
H A Dprovider.rs3 use crate::{cvt, cvt_p};
31 let p = cvt_p(ffi::OSSL_PROVIDER_load( in load()
52 let p = cvt_p(ffi::OSSL_PROVIDER_try_load( in try_load()
H A Dbio.rs7 use crate::cvt_p;
26 cvt_p(BIO_new_mem_buf( in new()
54 let bio = unsafe { cvt_p(ffi::BIO_new(ffi::BIO_s_mem()))? }; in new()
H A Dlib_ctx.rs1 use crate::cvt_p;
18 let ptr = cvt_p(ffi::OSSL_LIB_CTX_new())?; in new()
H A Dpkey.rs55 use crate::{cvt, cvt_p};
162 let rsa = cvt_p(ffi::EVP_PKEY_get1_RSA(self.as_ptr()))?; in rsa()
171 let dsa = cvt_p(ffi::EVP_PKEY_get1_DSA(self.as_ptr()))?; in dsa()
180 let dh = cvt_p(ffi::EVP_PKEY_get1_DH(self.as_ptr()))?; in dh()
189 let ec_key = cvt_p(ffi::EVP_PKEY_get1_EC_KEY(self.as_ptr()))?; in ec_key()
409 let evp = cvt_p(ffi::EVP_PKEY_new())?; in from_rsa()
421 let evp = cvt_p(ffi::EVP_PKEY_new())?; in from_dsa()
434 let evp = cvt_p(ffi::EVP_PKEY_new())?; in from_dh()
446 let evp = cvt_p(ffi::EVP_PKEY_new())?; in from_ec_key()
466 let key = cvt_p(ff in hmac()
[all...]
H A Dconf.rs14 use crate::cvt_p;
60 unsafe { cvt_p(ffi::NCONF_new(method.as_ptr())).map(Conf) } in new()
H A Ddh.rs11 use crate::{cvt, cvt_p};
67 let dh = Dh::from_ptr(cvt_p(ffi::DH_new())?); in from_pqg()
116 let dh = Dh::from_ptr(cvt_p(ffi::DH_new())?); in generate_params()
162 cvt_p(ffi::DH_get_1024_160()).map(|p| Dh::from_ptr(p)) in get_1024_160()
172 cvt_p(ffi::DH_get_2048_224()).map(|p| Dh::from_ptr(p)) in get_2048_224()
182 cvt_p(ffi::DH_get_2048_256()).map(|p| Dh::from_ptr(p)) in get_2048_256()
H A Dmd_ctx.rs88 use crate::{cvt, cvt_n, cvt_p};
120 let ptr = cvt_p(EVP_MD_CTX_new())?; in new()
H A Dmacros.rs11 cvt_p($f(bio.as_ptr(),
27 cvt_p($f(bio.as_ptr(),
113 crate::cvt_p($f(::std::ptr::null_mut(), &mut der.as_ptr(), len.try_into().unwrap()))
127 cvt_p($f(bio.as_ptr(), ::std::ptr::null_mut(), None, ::std::ptr::null_mut()))
H A Decdsa.rs14 use crate::{cvt_n, cvt_p, LenType};
36 let sig = cvt_p(ffi::ECDSA_do_sign( in sign()
49 let sig = cvt_p(ffi::ECDSA_SIG_new())?; in from_private_components()
H A Ddsa.rs20 use crate::{cvt, cvt_p};
199 let dsa = Dsa::from_ptr(cvt_p(ffi::DSA_new())?); in from_pqg()
211 let dsa = Dsa::from_ptr(cvt_p(ffi::DSA_new())?); in generate_params()
260 let dsa = Dsa::from_ptr(cvt_p(ffi::DSA_new())?); in from_private_components()
301 let dsa = Dsa::from_ptr(cvt_p(ffi::DSA_new())?); in from_public_components()
442 let sig = cvt_p(ffi::DSA_SIG_new())?; in from_private_components()
H A Dencrypt.rs50 use crate::{cvt, cvt_p};
83 let pctx = cvt_p(ffi::EVP_PKEY_CTX_new(pkey.as_ptr(), ptr::null_mut()))?; in new()
172 let p = cvt_p(ffi::OPENSSL_malloc(label.len() as _))?; in set_rsa_oaep_label()
287 let pctx = cvt_p(ffi::EVP_PKEY_CTX_new(pkey.as_ptr(), ptr::null_mut()))?; in new()
376 let p = cvt_p(ffi::OPENSSL_malloc(label.len() as _))?; in set_rsa_oaep_label()
H A Dpkcs7.rs14 use crate::{cvt, cvt_p};
84 cvt_p(ffi::SMIME_read_PKCS7(input_bio.as_ptr(), &mut bcont_bio)).map(Pkcs7)?; in from_smime()
110 cvt_p(ffi::PKCS7_encrypt( in encrypt()
139 cvt_p(ffi::PKCS7_sign( in sign()
265 let ptr = cvt_p(ffi::PKCS7_get0_signers( in signers()
H A Dderive.rs58 use crate::{cvt, cvt_p};
79 cvt_p(ffi::EVP_PKEY_CTX_new(key.as_ptr(), ptr::null_mut())) in new()
H A Drsa.rs37 use crate::{cvt, cvt_n, cvt_p, LenType};
379 let rsa = cvt_p(ffi::RSA_new())?; in from_public_components()
439 let rsa = cvt_p(ffi::RSA_new())?; in new()
538 let rsa = Rsa::from_ptr(cvt_p(ffi::RSA_new())?); in generate_with_e()
H A Dcms.rs19 use crate::{cvt, cvt_p};
145 let cms = cvt_p(ffi::SMIME_read_CMS(bio.as_ptr(), ptr::null_mut()))?; in smime_read_cms()
192 let cms = cvt_p(ffi::CMS_sign( in sign()
220 let cms = cvt_p(ffi::CMS_encrypt( in encrypt()
H A Dlib.rs199 fn cvt_p<T>(r: *mut T) -> Result<*mut T, ErrorStack> { in cvt_p() functions
H A Dhash.rs43 use crate::{cvt, cvt_p};
249 let ctx = unsafe { cvt_p(EVP_MD_CTX_new())? }; in new()
H A Dsign.rs81 use crate::{cvt, cvt_p};
174 let ctx = cvt_p(EVP_MD_CTX_new())?; in new_intern()
467 let ctx = cvt_p(EVP_MD_CTX_new())?; in new_intern()
H A Dmd.rs4 use crate::cvt_p;
107 let ptr = cvt_p(ffi::EVP_MD_fetch( in fetch()
/third_party/rust/crates/rust-openssl/openssl/src/x509/
H A Dmod.rs41 use crate::{cvt, cvt_n, cvt_p};
87 cvt_p(ffi::X509_STORE_CTX_new()).map(X509StoreContext) in new()
222 cvt_p(ffi::X509_new()).map(|p| X509Builder(X509(p))) in new()
537 let pkey = cvt_p(ffi::X509_get_pubkey(self.as_ptr()))?; in public_key()
611 unsafe { cvt_p(ffi::X509_get1_ocsp(self.as_ptr())).map(|p| Stack::from_ptr(p)) } in ocsp_responders()
931 cvt_p(ffi::X509V3_EXT_nconf(conf, context_ptr, name, value)).map(X509Extension) in new()
982 cvt_p(ffi::X509V3_EXT_nconf_nid(conf, context_ptr, name, value)).map(X509Extension) in new_nid()
1001 cvt_p(ffi::X509_EXTENSION_create_by_OBJ( in new_from_der()
1017 cvt_p(ffi::X509V3_EXT_i2d(nid.as_raw(), critical as _, value)).map(X509Extension)
1053 cvt_p(ff in new()
[all...]
H A Dstore.rs55 use crate::{cvt, cvt_p};
81 cvt_p(ffi::X509_STORE_new()).map(X509StoreBuilder) in new()
118 cvt_p(lookup).map(|ptr| unsafe { X509LookupRef::from_ptr_mut(ptr) }) in add_lookup()
H A Dverify.rs9 use crate::{cvt, cvt_p};
80 cvt_p(ffi::X509_VERIFY_PARAM_new()).map(X509VerifyParam) in new()
/third_party/rust/crates/rust-openssl/openssl/src/ssl/
H A Dbio.rs14 use crate::cvt_p;
47 let bio = cvt_p(BIO_new(method.0.get()))?; in new()
206 let ptr = cvt_p(ffi::BIO_meth_new(ffi::BIO_TYPE_NONE, b"rust\0".as_ptr() as *const _))?; in new()

Completed in 28 milliseconds

12