Home
last modified time | relevance | path

Searched full:oid (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
DX9ObjectIdentifiers.java15 /** Base OID: 1.2.840.10045 */
18 /** OID: 1.2.840.10045.1 */
21 /** OID: 1.2.840.10045.1.1 */
24 /** OID: 1.2.840.10045.1.2 */
27 /** OID: 1.2.840.10045.1.2.3.1 */
30 /** OID: 1.2.840.10045.1.2.3.2 */
33 /** OID: 1.2.840.10045.1.2.3.3 */
36 /** OID: 1.2.840.10045.4 */
39 /** OID: 1.2.840.10045.4.1 */
42 /** OID: 1.2.840.10045.2 */
[all …]
DECNamedCurveTable.java68 ASN1ObjectIdentifier oid = X962NamedCurves.getOID(name); in getOID() local
70 if (oid == null) in getOID()
72 oid = SECNamedCurves.getOID(name); in getOID()
75 if (oid == null) in getOID()
77 oid = NISTNamedCurves.getOID(name); in getOID()
81 // if (oid == null) in getOID()
83 // oid = TeleTrusTNamedCurves.getOID(name); in getOID()
86 // if (oid == null) in getOID()
88 // oid = ANSSINamedCurves.getOID(name); in getOID()
92 return oid; in getOID()
[all …]
/external/wpa_supplicant_8/src/tls/
Dx509v3.c210 if (asn1_get_oid(pos, end - pos, &id->oid, &pos)) in x509_parse_algorithm_identifier()
297 struct asn1_oid oid; in x509_parse_name() local
356 if (asn1_get_oid(seq_pos, seq_end - seq_pos, &oid, &seq_pos)) { in x509_parse_name()
378 if (oid.len == 4 && in x509_parse_name()
379 oid.oid[0] == 2 && oid.oid[1] == 5 && oid.oid[2] == 4) { in x509_parse_name()
381 switch (oid.oid[3]) { in x509_parse_name()
407 } else if (oid.len == 7 && in x509_parse_name()
408 oid.oid[0] == 1 && oid.oid[1] == 2 && in x509_parse_name()
409 oid.oid[2] == 840 && oid.oid[3] == 113549 && in x509_parse_name()
410 oid.oid[4] == 1 && oid.oid[5] == 9 && in x509_parse_name()
[all …]
Dasn1.c15 .oid = { 1, 3, 14, 3, 2, 26 },
20 .oid = { 2, 16, 840, 1, 101, 3, 4, 2, 1 },
90 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) in asn1_parse_oid() argument
96 os_memset(oid, 0, sizeof(*oid)); in asn1_parse_oid()
111 if (oid->len >= ASN1_MAX_OID_LEN) { in asn1_parse_oid()
112 wpa_printf(MSG_DEBUG, "ASN.1: Too long OID value"); in asn1_parse_oid()
115 if (oid->len == 0) { in asn1_parse_oid()
121 oid->oid[0] = val / 40; in asn1_parse_oid()
122 if (oid->oid[0] > 2) in asn1_parse_oid()
123 oid->oid[0] = 2; in asn1_parse_oid()
[all …]
Dtlsv1_cred.c335 static int oid_is_rsadsi(struct asn1_oid *oid) in oid_is_rsadsi() argument
337 return oid->len >= 4 && in oid_is_rsadsi()
338 oid->oid[0] == 1 /* iso */ && in oid_is_rsadsi()
339 oid->oid[1] == 2 /* member-body */ && in oid_is_rsadsi()
340 oid->oid[2] == 840 /* us */ && in oid_is_rsadsi()
341 oid->oid[3] == 113549 /* rsadsi */; in oid_is_rsadsi()
345 static int pkcs12_is_bagtype_oid(struct asn1_oid *oid, unsigned long type) in pkcs12_is_bagtype_oid() argument
347 return oid->len == 9 && in pkcs12_is_bagtype_oid()
348 oid_is_rsadsi(oid) && in pkcs12_is_bagtype_oid()
349 oid->oid[4] == 1 /* pkcs */ && in pkcs12_is_bagtype_oid()
[all …]
Dpkcs5.c38 static int oid_is_rsadsi(struct asn1_oid *oid) in oid_is_rsadsi() argument
40 return oid->len >= 4 && in oid_is_rsadsi()
41 oid->oid[0] == 1 /* iso */ && in oid_is_rsadsi()
42 oid->oid[1] == 2 /* member-body */ && in oid_is_rsadsi()
43 oid->oid[2] == 840 /* us */ && in oid_is_rsadsi()
44 oid->oid[3] == 113549 /* rsadsi */; in oid_is_rsadsi()
48 static int pkcs5_is_oid(struct asn1_oid *oid, unsigned long alg) in pkcs5_is_oid() argument
50 return oid->len == 7 && in pkcs5_is_oid()
51 oid_is_rsadsi(oid) && in pkcs5_is_oid()
52 oid->oid[4] == 1 /* pkcs */ && in pkcs5_is_oid()
[all …]
Dpkcs8.c24 struct asn1_oid oid; in pkcs8_key_import() local
81 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &pos)) { in pkcs8_key_import()
82 wpa_printf(MSG_DEBUG, "PKCS #8: Failed to parse OID " in pkcs8_key_import()
87 asn1_oid_to_str(&oid, obuf, sizeof(obuf)); in pkcs8_key_import()
90 if (oid.len != 7 || in pkcs8_key_import()
91 oid.oid[0] != 1 /* iso */ || in pkcs8_key_import()
92 oid.oid[1] != 2 /* member-body */ || in pkcs8_key_import()
93 oid.oid[2] != 840 /* us */ || in pkcs8_key_import()
94 oid.oid[3] != 113549 /* rsadsi */ || in pkcs8_key_import()
95 oid.oid[4] != 1 /* pkcs */ || in pkcs8_key_import()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/
DSECObjectIdentifiers.java16 /** Base OID: 1.3.132.0 */
19 /** sect163k1 OID: 1.3.132.0.1 */
21 /** sect163r1 OID: 1.3.132.0.2 */
23 /** sect239k1 OID: 1.3.132.0.3 */
25 /** sect113r1 OID: 1.3.132.0.4 */
27 /** sect113r2 OID: 1.3.132.0.5 */
29 /** secp112r1 OID: 1.3.132.0.6 */
31 /** secp112r2 OID: 1.3.132.0.7 */
33 /** secp160r1 OID: 1.3.132.0.8 */
35 /** secp160k1 OID: 1.3.132.0.9 */
[all …]
/external/snakeyaml/src/test/resources/issues/
Dissue56-1.yaml2 oid: 1724265
9 oid: 1724276
17 oid: 1724267
32 oid: 2250
42 oid: 1724261
45 oid: 1724263
50 oid: 1724260
60 oid: 1724270
65 oid: 19094
72 oid: 1727992
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/eac/
DEACObjectIdentifiers.java27 * OID: 0.4.0.127.0.7
37 * OID: 0.4.0.127.0.7.2.2.1
41 /** OID: 0.4.0.127.0.7.2.2.1.1 */
43 /** OID: 0.4.0.127.0.7.2.2.1.2 */
52 * OID: 0.4.0.127.0.7.2.2.3
55 /** OID: 0.4.0.127.0.7.2.2.3.1 */
57 /** OID: 0.4.0.127.0.7.2.2.3.1.1 */
59 /** OID: 0.4.0.127.0.7.2.2.3.2 */
61 /** OID: 0.4.0.127.0.7.2.2.3.2.1 */
70 * OID: 0.4.0.127.0.7.2.2.2
[all …]
/external/avahi/avahi-compat-howl/
Dcompat.c250 static void oid_release(sw_discovery self, sw_discovery_oid oid) { in oid_release() argument
252 assert(oid < OID_MAX); in oid_release()
254 assert(self->oid_table[oid].type != OID_UNUSED); in oid_release()
256 self->oid_table[oid].type = OID_UNUSED; in oid_release()
257 self->oid_table[oid].discovery = NULL; in oid_release()
258 self->oid_table[oid].reply = NULL; in oid_release()
259 self->oid_table[oid].object = NULL; in oid_release()
260 self->oid_table[oid].extra = NULL; in oid_release()
261 self->oid_table[oid].service_data = NULL; in oid_release()
264 static oid_data* oid_get(sw_discovery self, sw_discovery_oid oid) { in oid_get() argument
[all …]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
DOidTest.java36 * ASN.1 DER test for OID type
43 private static Object[][] oid = { field in OidTest
44 //oid array format: string / int array / DER encoding
121 // oid decoder/encoder for testing in test_MappingToIntArray()
125 for (int i = 0; i < oid.length; i++) { in test_MappingToIntArray()
128 (byte[]) oid[i][2])); in test_MappingToIntArray()
130 assertTrue("Failed to decode oid: " + oid[i][0], // error message in test_MappingToIntArray()
131 Arrays.equals((int[]) oid[i][1], // expected array in test_MappingToIntArray()
136 for (int i = 0; i < oid.length; i++) { in test_MappingToIntArray()
139 oid[i][1]).encoded; in test_MappingToIntArray()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x500/
DX500NameStyle.java19 * @param oid the OID associated with the value in the DN.
23 ASN1Encodable stringToValue(ASN1ObjectIdentifier oid, String value); in stringToValue() argument
26 * Return the OID associated with the passed in name.
29 * @return an OID
65 * Return the display name for toString() associated with the OID.
67 * @param oid the OID of interest.
70 String oidToDisplayName(ASN1ObjectIdentifier oid); in oidToDisplayName() argument
73 * Return the acceptable names in a String DN that map to OID.
75 * @param oid the OID of interest.
76 * @return an array of String aliases for the OID, zero length if there are none.
[all …]
DX500NameBuilder.java36 * Add an RDN based on a single OID and a string representation of its value.
38 * @param oid the OID for this RDN.
39 * @param value the string representation of the value the OID refers to.
42 public X500NameBuilder addRDN(ASN1ObjectIdentifier oid, String value) in addRDN() argument
44 this.addRDN(oid, template.stringToValue(oid, value)); in addRDN()
50 * Add an RDN based on a single OID and an ASN.1 value.
52 * @param oid the OID for this RDN.
53 * @param value the ASN.1 value the OID refers to.
56 public X500NameBuilder addRDN(ASN1ObjectIdentifier oid, ASN1Encodable value) in addRDN() argument
58 rdns.addElement(new RDN(oid, value)); in addRDN()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DExtensionsGenerator.java30 * Add an extension with the given oid and the passed in value to be included
33 * @param oid OID for the extension.
38 ASN1ObjectIdentifier oid, in addExtension() argument
43 this.addExtension(oid, critical, value.toASN1Primitive().getEncoded(ASN1Encoding.DER)); in addExtension()
47 * Add an extension with the given oid and the passed in byte array to be wrapped in the
50 * @param oid OID for the extension.
55 ASN1ObjectIdentifier oid, in addExtension() argument
59 if (extensions.containsKey(oid)) in addExtension()
61 throw new IllegalArgumentException("extension " + oid + " already added"); in addExtension()
64 extOrdering.addElement(oid); in addExtension()
[all …]
DX509ExtensionsGenerator.java31 * Add an extension with the given oid and the passed in value to be included
34 * @param oid OID for the extension.
39 ASN1ObjectIdentifier oid, in addExtension() argument
45 this.addExtension(oid, critical, value.toASN1Primitive().getEncoded(ASN1Encoding.DER)); in addExtension()
54 * Add an extension with the given oid and the passed in byte array to be wrapped in the
57 * @param oid OID for the extension.
62 ASN1ObjectIdentifier oid, in addExtension() argument
66 if (extensions.containsKey(oid)) in addExtension()
68 throw new IllegalArgumentException("extension " + oid + " already added"); in addExtension()
71 extOrdering.addElement(oid); in addExtension()
[all …]
DX509DefaultEntryConverter.java20 * Apply default coversion for the given value depending on the oid
23 * @param oid the object identifier for the DN entry
28 ASN1ObjectIdentifier oid, in getConvertedValue() argument
39 throw new RuntimeException("can't recode value for oid " + oid.getId()); in getConvertedValue()
48 if (oid.equals(X509Name.EmailAddress) || oid.equals(X509Name.DC)) in getConvertedValue()
52 …else if (oid.equals(X509Name.DATE_OF_BIRTH)) // accept time string as well as # (for compatibilit… in getConvertedValue()
56 … else if (oid.equals(X509Name.C) || oid.equals(X509Name.SN) || oid.equals(X509Name.DN_QUALIFIER) in getConvertedValue()
57 || oid.equals(X509Name.TELEPHONE_NUMBER)) in getConvertedValue()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DECUtil.java277 ASN1ObjectIdentifier oid = X962NamedCurves.getOID(name); in lookupOidByName() local
279 if (oid == null) in lookupOidByName()
281 oid = SECNamedCurves.getOID(name); in lookupOidByName()
282 if (oid == null) in lookupOidByName()
284 oid = NISTNamedCurves.getOID(name); in lookupOidByName()
287 // if (oid == null) in lookupOidByName()
289 // oid = TeleTrusTNamedCurves.getOID(name); in lookupOidByName()
291 // if (oid == null) in lookupOidByName()
293 // oid = ECGOST3410NamedCurves.getOID(name); in lookupOidByName()
295 // if (oid == null) in lookupOidByName()
[all …]
DPKCS12BagAttributeCarrierImpl.java35 ASN1ObjectIdentifier oid, in setBagAttribute() argument
38 if (pkcs12Attributes.containsKey(oid)) in setBagAttribute()
40 pkcs12Attributes.put(oid, attribute); in setBagAttribute()
44 pkcs12Attributes.put(oid, attribute); in setBagAttribute()
45 pkcs12Ordering.addElement(oid); in setBagAttribute()
50 ASN1ObjectIdentifier oid) in getBagAttribute() argument
52 return (ASN1Encodable)pkcs12Attributes.get(oid); in getBagAttribute()
92 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)e.nextElement(); in writeObject() local
94 aOut.writeObject(oid); in writeObject()
95 aOut.writeObject((ASN1Encodable)pkcs12Attributes.get(oid)); in writeObject()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/misc/
DMiscObjectIdentifiers.java11 /** Netscape cert extensions OID base: 2.16.840.1.113730.1 */
13 /** Netscape cert CertType OID: 2.16.840.1.113730.1.1 */
15 /** Netscape cert BaseURL OID: 2.16.840.1.113730.1.2 */
17 /** Netscape cert RevocationURL OID: 2.16.840.1.113730.1.3 */
19 /** Netscape cert CARevocationURL OID: 2.16.840.1.113730.1.4 */
21 /** Netscape cert RenewalURL OID: 2.16.840.1.113730.1.7 */
23 /** Netscape cert CApolicyURL OID: 2.16.840.1.113730.1.8 */
25 /** Netscape cert SSLServerName OID: 2.16.840.1.113730.1.12 */
27 /** Netscape cert CertComment OID: 2.16.840.1.113730.1.13 */
34 /** Verisign OID base: 2.16.840.1.113733.1 */
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/oiw/
DOIWObjectIdentifiers.java13 /** OID: 1.3.14.3.2.2 */
15 /** OID: 1.3.14.3.2.3 */
17 /** OID: 1.3.14.3.2.4 */
20 /** OID: 1.3.14.3.2.6 */
22 /** OID: 1.3.14.3.2.7 */
24 /** OID: 1.3.14.3.2.8 */
26 /** OID: 1.3.14.3.2.9 */
29 /** OID: 1.3.14.3.2.17 */
32 /** OID: 1.3.14.3.2.26 */
35 /** OID: 1.3.14.3.2.27 */
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/util/
DAsymmetricAlgorithmProvider.java14 ASN1ObjectIdentifier oid) in addSignatureAlgorithm() argument
25 provider.addAlgorithm("Alg.Alias.Signature." + oid, mainName); in addSignatureAlgorithm()
26 provider.addAlgorithm("Alg.Alias.Signature.OID." + oid, mainName); in addSignatureAlgorithm()
29 …protected void registerOid(ConfigurableProvider provider, ASN1ObjectIdentifier oid, String name, A… in registerOid() argument
31 provider.addAlgorithm("Alg.Alias.KeyFactory." + oid, name); in registerOid()
32 provider.addAlgorithm("Alg.Alias.KeyPairGenerator." + oid, name); in registerOid()
34 provider.addKeyInfoConverter(oid, keyFactory); in registerOid()
37 …egisterOidAlgorithmParameters(ConfigurableProvider provider, ASN1ObjectIdentifier oid, String name) in registerOidAlgorithmParameters() argument
39 provider.addAlgorithm("Alg.Alias.AlgorithmParameterGenerator." + oid, name); in registerOidAlgorithmParameters()
40 provider.addAlgorithm("Alg.Alias.AlgorithmParameters." + oid, name); in registerOidAlgorithmParameters()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/isismtt/
DISISMTTObjectIdentifiers.java18 * The id-isismtt-cp-accredited OID indicates that the certificate is a
37 * OID: 1.3.36.8.3.1
45 * OID: 1.3.36.8.3.2
53 * OID: 1.3.36.8.3.3
64 * OID: 1.3.36.8.3.4
72 * OID: 1.3.36.8.3.5
82 * OID: 1.3.36.8.3.6
93 * OID: 1.3.36.8.3.7
105 * OID: 1.3.36.8.3.8
122 * OID: 1.3.36.8.3.9
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
DX509CertificateObject.java406 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)e.nextElement(); in getCriticalExtensionOIDs() local
407 Extension ext = extensions.getExtension(oid); in getCriticalExtensionOIDs()
411 set.add(oid.getId()); in getCriticalExtensionOIDs()
422 private byte[] getExtensionBytes(String oid) in getExtensionBytes() argument
428 Extension ext = exts.getExtension(new ASN1ObjectIdentifier(oid)); in getExtensionBytes()
438 public byte[] getExtensionValue(String oid) in getExtensionValue() argument
444 Extension ext = exts.getExtension(new ASN1ObjectIdentifier(oid)); in getExtensionValue()
475 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)e.nextElement(); in getNonCriticalExtensionOIDs() local
476 Extension ext = extensions.getExtension(oid); in getNonCriticalExtensionOIDs()
480 set.add(oid.getId()); in getNonCriticalExtensionOIDs()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1ObjectIdentifier.java22 * return an OID from the passed in object
168 * Create an OID based on the passed in String.
170 * @param identifier a string representation of an OID.
181 throw new IllegalArgumentException("string " + identifier + " not an OID"); in ASN1ObjectIdentifier()
194 * Create an OID that creates a branch under the current one.
197 * @return the OID for the new created branch.
199 ASN1ObjectIdentifier(ASN1ObjectIdentifier oid, String branchID) in ASN1ObjectIdentifier() argument
203 throw new IllegalArgumentException("string " + branchID + " not a valid OID branch"); in ASN1ObjectIdentifier()
206 this.identifier = oid.getId() + "." + branchID; in ASN1ObjectIdentifier()
210 * Return the OID as a string.
[all …]

12345678910>>...13