Home
last modified time | relevance | path

Searched refs:Nid (Results 1 – 24 of 24) sorted by relevance

/third_party/rust/crates/rust-openssl/openssl/src/
Dnid.rs17 pub digest: Nid,
20 pub pkey: Nid,
49 pub struct Nid(c_int); struct
52 impl Nid { impl
54 pub fn from_raw(raw: c_int) -> Nid { in from_raw() argument
55 Nid(raw) in from_raw()
66 pub fn create(oid: &str, sn: &str, ln: &str) -> Result<Nid, ErrorStack> { in create() argument
76 Ok(Nid(raw)) in create()
92 digest: Nid(digest), in signature_algorithms()
93 pkey: Nid(pkey), in signature_algorithms()
[all …]
Dhash.rs42 use crate::nid::Nid;
72 pub fn from_nid(type_: Nid) -> Option<MessageDigest> { in from_nid()
189 pub fn type_(&self) -> Nid { in type_() argument
190 Nid::from_raw(unsafe { ffi::EVP_MD_type(self.0) }) in type_()
522 assert_eq!(MessageDigest::md5().type_().as_raw(), Nid::MD5.as_raw()); in test_md5()
585 assert_eq!(MessageDigest::sha1().type_().as_raw(), Nid::SHA1.as_raw()); in test_sha1()
603 Nid::SHA256.as_raw() in test_sha256()
623 Nid::SHA512.as_raw() in test_sha512()
643 Nid::SHA3_224.as_raw() in test_sha3_224()
663 Nid::SHA3_256.as_raw() in test_sha3_256()
[all …]
Dec.rs25 use crate::nid::Nid;
133 pub fn from_curve_name(nid: Nid) -> Result<EcGroup, ErrorStack> { in from_curve_name()
299 pub fn curve_name(&self) -> Option<Nid> { in curve_name() argument
302 Some(Nid::from_raw(nid)) in curve_name()
743 pub fn from_curve_name(nid: Nid) -> Result<EcKey<Params>, ErrorStack> { in from_curve_name()
977 use crate::nid::Nid;
981 EcKey::from_curve_name(Nid::X9_62_PRIME256V1).unwrap(); in key_new_by_curve_name()
986 let group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap(); in generate()
1013 let group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap(); in ec_point_set_affine()
1071 let named_group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap(); in ec_group_set_generator()
[all …]
Dpkcs12.rs11 use crate::nid::Nid;
101 nid_key: Nid::UNDEF, in builder()
102 nid_cert: Nid::UNDEF, in builder()
130 nid_key: Nid,
131 nid_cert: Nid,
170 pub fn key_algorithm(&mut self, nid: Nid) -> &mut Self { in key_algorithm()
176 pub fn cert_algorithm(&mut self, nid: Nid) -> &mut Self { in cert_algorithm()
289 use crate::nid::Nid;
339 name.append_entry_by_nid(Nid::COMMONNAME, subject_name) in create()
Dmd.rs9 use crate::nid::Nid;
82 pub fn from_nid(type_: Nid) -> Option<&'static MdRef> { in from_nid()
232 pub fn type_(&self) -> Nid { in type_() argument
233 unsafe { Nid::from_raw(ffi::EVP_MD_type(self.as_ptr())) } in type_()
Dderive.rs158 use crate::nid::Nid;
163 let group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap(); in derive_without_peer()
172 let group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap(); in test_ec_key_derive()
Decdsa.rs153 use crate::nid::Nid;
163 let group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap(); in sign_and_verify()
191 let group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap(); in check_private_components()
211 let group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap(); in serialize_deserialize()
Dcipher.rs9 use crate::nid::Nid;
105 pub fn from_nid(nid: Nid) -> Option<&'static CipherRef> { in from_nid()
454 pub fn nid(&self) -> Nid { in nid() argument
456 Nid::from_raw(nid) in nid()
Dasn1.rs41 use crate::nid::Nid;
624 pub fn nid(&self) -> Nid { in nid() argument
625 unsafe { Nid::from_raw(ffi::OBJ_obj2nid(self.as_ptr())) } in nid()
669 use crate::nid::Nid;
750 assert_eq!(object.nid(), Nid::SHA256); in object_from_str()
Dpkey.rs888 use crate::nid::Nid;
1020 let ec_key = EcKey::from_curve_name(Nid::X9_62_PRIME256V1).unwrap(); in test_ec_key_accessor()
1048 let group = crate::ec::EcGroup::from_curve_name(crate::nid::Nid::X9_62_PRIME256V1).unwrap(); in test_ec_key_conversion()
1059 let group = crate::ec::EcGroup::from_curve_name(crate::nid::Nid::SECP521R1).unwrap(); in test_security_bits()
1158 let group = crate::ec::EcGroup::from_curve_name(Nid::SECP256K1).unwrap(); in test_raw_key_fail()
Derror.rs404 use crate::nid::Nid;
408 let stack = Nid::create("not-an-oid", "invalid", "invalid").unwrap_err(); in test_error_library_code()
Dsymm.rs57 use crate::nid::Nid;
81 pub fn from_nid(nid: Nid) -> Option<Cipher> { in from_nid()
95 pub fn nid(&self) -> Nid { in nid() argument
97 Nid::from_raw(nid) in nid()
Dpkey_ctx.rs637 use crate::nid::Nid;
694 let group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap(); in derive()
Dsign.rs653 use crate::nid::Nid;
835 let group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap(); in ec()
/third_party/rust/crates/rust-openssl/openssl/src/x509/
Dextension.rs22 use crate::nid::Nid;
82 X509Extension::new_nid(None, None, Nid::BASIC_CONSTRAINTS, &value) in build()
217 X509Extension::new_nid(None, None, Nid::KEY_USAGE, &value) in build()
367 X509Extension::new_nid(None, None, Nid::EXT_KEY_USAGE, &value) in build()
401 X509Extension::new_nid(None, Some(ctx), Nid::SUBJECT_KEY_IDENTIFIER, &value) in build()
462 X509Extension::new_nid(None, Some(ctx), Nid::AUTHORITY_KEY_IDENTIFIER, &value) in build()
544 X509Extension::new_nid(None, Some(ctx), Nid::SUBJECT_ALT_NAME, &value) in build()
Dtests.rs6 use crate::nid::Nid;
92 let cn = subject.entries_by_nid(Nid::COMMONNAME).next().unwrap(); in test_subject_read_cn()
102 let cn = subject.entries_by_nid(Nid::COMMONNAME).next().unwrap(); in test_nid_values()
106 .entries_by_nid(Nid::PKCS9_EMAILADDRESS) in test_nid_values()
111 let friendly = subject.entries_by_nid(Nid::FRIENDLYNAME).next().unwrap(); in test_nid_values()
125 Nid::PKCS9_EMAILADDRESS.as_raw() in test_nameref_iterator()
130 assert_eq!(cn.object().nid().as_raw(), Nid::COMMONNAME.as_raw()); in test_nameref_iterator()
134 assert_eq!(friendly.object().nid().as_raw(), Nid::FRIENDLYNAME.as_raw()); in test_nameref_iterator()
148 let cn = subject.entries_by_nid(Nid::USERID).next().unwrap(); in test_nid_uid_value()
222 name.append_entry_by_nid(Nid::COMMONNAME, "foobar.com") in x509_builder()
[all …]
Dmod.rs34 use crate::nid::Nid;
839 name: Nid, in new_nid() argument
860 pub unsafe fn add_alias(to: Nid, from: Nid) -> Result<(), ErrorStack> { in add_alias() argument
947 pub fn append_entry_by_nid(&mut self, field: Nid, value: &str) -> Result<(), ErrorStack> { in append_entry_by_nid() argument
970 field: Nid, in append_entry_by_nid_with_type() argument
1037 pub fn entries_by_nid(&self, nid: Nid) -> X509NameEntries<'_> { in entries_by_nid()
1096 nid: Option<Nid>,
/third_party/rust/crates/rust-openssl/openssl/src/ssl/
Dconnector.rs378 use crate::nid::Nid;
380 let curve = EcKey::from_curve_name(Nid::X9_62_PRIME256V1)?;
421 use crate::nid::Nid;
493 match subject_name.entries_by_nid(Nid::COMMONNAME).next() {
Dmod.rs69 use crate::nid::Nid;
2038 pub fn cipher_nid(&self) -> Option<Nid> { in cipher_nid() argument
2043 Some(Nid::from_raw(n)) in cipher_nid()
/third_party/rust/crates/rust-openssl/openssl/
DCHANGELOG.md65 * Added `Nid::BRAINPOOL_P256R1`, `Nid::BRAINPOOL_P384R1`, `Nid::BRAINPOOL_P512R1`.
77 * Added SHA-3 constants to `Nid`.
118 * Added `Nid::create`.
485 * Added `Nid::signature_algorithms`, `Nid::long_name`, and `Nid::short_name`.
/third_party/rust/crates/rust-openssl/openssl/src/ssl/test/
Dmod.rs874 use crate::nid::Nid; in tmp_ecdh_callback()
881 EcKey::from_curve_name(Nid::X9_62_PRIME256V1) in tmp_ecdh_callback()
924 use crate::nid::Nid; in tmp_ecdh_callback_ssl()
932 EcKey::from_curve_name(Nid::X9_62_PRIME256V1) in tmp_ecdh_callback_ssl()
/third_party/icu/icu4c/source/data/region/
Dvai_Latn.txt151 NL{"Nidɔlɛŋ"}
/third_party/flutter/skia/third_party/externals/icu/source/data/region/
Dvai_Latn.txt151 NL{"Nidɔlɛŋ"}
/third_party/skia/third_party/externals/icu/source/data/region/
Dvai_Latn.txt151 NL{"Nidɔlɛŋ"}