Home
last modified time | relevance | path

Searched refs:oid (Results 1 – 25 of 172) sorted by relevance

1234567

/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()
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()
124 oid->oid[1] = val - oid->oid[0] * 40; 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()
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()
96 oid.oid[5] != 1 /* pkcs-1 */ || in pkcs8_key_import()
[all …]
Dtlsv1_client_ocsp.c34 static int is_oid_basic_ocsp_resp(struct asn1_oid *oid) in is_oid_basic_ocsp_resp() argument
36 return oid->len == 10 && in is_oid_basic_ocsp_resp()
37 oid->oid[0] == 1 /* iso */ && in is_oid_basic_ocsp_resp()
38 oid->oid[1] == 3 /* identified-organization */ && in is_oid_basic_ocsp_resp()
39 oid->oid[2] == 6 /* dod */ && in is_oid_basic_ocsp_resp()
40 oid->oid[3] == 1 /* internet */ && in is_oid_basic_ocsp_resp()
41 oid->oid[4] == 5 /* security */ && in is_oid_basic_ocsp_resp()
42 oid->oid[5] == 5 /* mechanisms */ && in is_oid_basic_ocsp_resp()
43 oid->oid[6] == 7 /* id-pkix */ && in is_oid_basic_ocsp_resp()
44 oid->oid[7] == 48 /* id-ad */ && in is_oid_basic_ocsp_resp()
[all …]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
DOidTest.java43 private static Object[][] oid = { field in OidTest
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()
141 assertTrue("Failed to encode oid: " + oid[i][0], // error message in test_MappingToIntArray()
142 Arrays.equals((byte[]) oid[i][2], // expected encoding in test_MappingToIntArray()
175 for (int i = 0; i < oid.length; i++) { in test_MappingToString()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
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()
92 return oid; in getOID()
103 ASN1ObjectIdentifier oid) in getName() argument
105 String name = NISTNamedCurves.getName(oid); in getName()
109 name = SECNamedCurves.getName(oid); in getName()
121 name = X962NamedCurves.getName(oid); in getName()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
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 …]
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()
302 return oid; in lookupOidByName()
327 ASN1ObjectIdentifier oid) in getNamedCurveByOid() argument
329 X9ECParameters params = CustomNamedCurves.getByOID(oid); in getNamedCurveByOid()
333 params = X962NamedCurves.getByOID(oid); in getNamedCurveByOid()
336 params = SECNamedCurves.getByOID(oid); in getNamedCurveByOid()
[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/x509/
DX509DefaultEntryConverter.java28 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()
DExtensionsGenerator.java38 ASN1ObjectIdentifier oid, in addExtension() argument
43 this.addExtension(oid, critical, value.toASN1Primitive().getEncoded(ASN1Encoding.DER)); in addExtension()
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()
65 extensions.put(oid, new Extension(oid, critical, new DEROctetString(value))); in addExtension()
DX509ExtensionsGenerator.java39 ASN1ObjectIdentifier oid, in addExtension() argument
45 this.addExtension(oid, critical, value.toASN1Primitive().getEncoded(ASN1Encoding.DER)); in addExtension()
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()
72 extensions.put(oid, new X509Extension(critical, new DEROctetString(value))); in addExtension()
DX509Extensions.java317 ASN1ObjectIdentifier oid = ASN1ObjectIdentifier.getInstance(e.nextElement()); in X509Extensions() local
318 X509Extension ext = (X509Extension)extensions.get(oid); in X509Extensions()
320 this.extensions.put(oid, ext); in X509Extensions()
348 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)e.nextElement(); in X509Extensions() local
351 this.extensions.put(oid, ext); in X509Extensions()
371 ASN1ObjectIdentifier oid) in getExtension() argument
373 return (X509Extension)extensions.get(oid); in getExtension()
393 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)e.nextElement(); in toASN1Primitive() local
394 X509Extension ext = (X509Extension)extensions.get(oid); in toASN1Primitive()
397 v.add(oid); in toASN1Primitive()
[all …]
DExtensions.java108 ASN1ObjectIdentifier oid) in getExtension() argument
110 return (Extension)extensions.get(oid); in getExtension()
119 public ASN1Encodable getExtensionParsedValue(ASN1ObjectIdentifier oid) in getExtensionParsedValue() argument
121 Extension ext = this.getExtension(oid); in getExtensionParsedValue()
148 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)e.nextElement(); in toASN1Primitive() local
149 Extension ext = (Extension)extensions.get(oid); in toASN1Primitive()
201 Object oid = ordering.elementAt(i); in getExtensionOIDs() local
203 if (((Extension)extensions.get(oid)).isCritical() == isCritical) in getExtensionOIDs()
205 oidVec.addElement(oid); in getExtensionOIDs()
/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/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/nist/
DNISTNamedCurves.java20 static void defineCurveAlias(String name, ASN1ObjectIdentifier oid) in defineCurveAlias() argument
22 objIds.put(name.toUpperCase(), oid); in defineCurveAlias() local
23 names.put(oid, name); in defineCurveAlias()
50 ASN1ObjectIdentifier oid = getOID(name); in getByName() local
51 return oid == null ? null : getByOID(oid); in getByName()
61 ASN1ObjectIdentifier oid) in getByOID() argument
63 return SECNamedCurves.getByOID(oid); in getByOID()
82 ASN1ObjectIdentifier oid) in getName() argument
84 return (String)names.get(oid); in getName()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DOIDTokenizer.java11 private String oid; field in OIDTokenizer
20 String oid) in OIDTokenizer() argument
22 this.oid = oid; in OIDTokenizer()
49 int end = oid.indexOf('.', index); in nextToken()
53 token = oid.substring(index); in nextToken()
58 token = oid.substring(index, end); in nextToken()
/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 …]
DX509CRLEntryObject.java143 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier) e.nextElement(); in getExtensionOIDs() local
144 Extension ext = extensions.getExtension(oid); in getExtensionOIDs()
148 set.add(oid.getId()); in getExtensionOIDs()
168 private Extension getExtension(ASN1ObjectIdentifier oid) in getExtension() argument
174 return exts.getExtension(oid); in getExtension()
180 public byte[] getExtensionValue(String oid) in getExtensionValue() argument
182 Extension ext = getExtension(new ASN1ObjectIdentifier(oid)); in getExtensionValue()
279 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)e.nextElement(); in toString() local
280 Extension ext = extensions.getExtension(oid); in toString()
288 if (oid.equals(Extension.reasonCode)) in toString()
[all …]
/external/avahi/avahi-compat-howl/include/discovery/
Ddiscovery.h106 sw_discovery_oid oid,
113 sw_discovery_oid oid,
124 sw_discovery_oid oid,
139 sw_discovery_oid oid,
179 sw_discovery_oid * oid);
195 sw_discovery_oid * oid);
201 sw_discovery_oid oid,
216 sw_discovery_oid * oid);
231 sw_discovery_oid * oid);
246 sw_discovery_oid * oid);
[all …]
/external/tcpdump/
Dmakemib61 oid["iso"]=1
192 if (oid[parent] == "") {
198 if (oid[new] > 0 && oid[new] != value) {
200 inn(FILENAME), parent, new, value, oid[new]
206 if (oid[sib] == value) {
217 oid[new]=value
244 item, item, oid[item], c, s
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DX509CRLEntryObject.java144 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier) e.nextElement(); in getExtensionOIDs() local
145 Extension ext = extensions.getExtension(oid); in getExtensionOIDs()
149 set.add(oid.getId()); in getExtensionOIDs()
169 private Extension getExtension(ASN1ObjectIdentifier oid) in getExtension() argument
175 return exts.getExtension(oid); in getExtension()
181 public byte[] getExtensionValue(String oid) in getExtensionValue() argument
183 Extension ext = getExtension(new ASN1ObjectIdentifier(oid)); in getExtensionValue()
280 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)e.nextElement(); in toString() local
281 Extension ext = extensions.getExtension(oid); in toString()
289 if (oid.equals(X509Extension.reasonCode)) in toString()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
DX509V3CertificateGenerator.java226 String oid, in addExtension() argument
230 this.addExtension(new ASN1ObjectIdentifier(oid), critical, value); in addExtension()
237 ASN1ObjectIdentifier oid, in addExtension() argument
241 extGenerator.addExtension(new ASN1ObjectIdentifier(oid.getId()), critical, value); in addExtension()
250 String oid, in addExtension() argument
254 this.addExtension(new ASN1ObjectIdentifier(oid), critical, value); in addExtension()
261 ASN1ObjectIdentifier oid, in addExtension() argument
265 extGenerator.addExtension(new ASN1ObjectIdentifier(oid.getId()), critical, value); in addExtension()
274 String oid, in copyAndAddExtension() argument
279 byte[] extValue = cert.getExtensionValue(oid); in copyAndAddExtension()
[all …]

1234567