Home
last modified time | relevance | path

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

12345678910>>...18

/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.c16 .oid = { 1, 3, 14, 3, 2, 26 },
21 .oid = { 2, 16, 840, 1, 101, 3, 4, 2, 1 },
26 .oid = { 1, 2, 840, 10045, 2, 1 },
31 .oid = { 1, 2, 840, 10045, 3, 1, 7 },
36 .oid = { 1, 3, 132, 0, 34 },
41 .oid = { 1, 3, 132, 0, 35 },
46 .oid = { 1, 3, 36, 3, 3, 2, 8, 1, 1, 7 },
51 .oid = { 1, 3, 36, 3, 3, 2, 8, 1, 1, 11 },
56 .oid = { 1, 3, 36, 3, 3, 2, 8, 1, 1, 13 },
61 .oid = { 1, 2, 840, 113549, 1, 9, 16, 3, 22 },
[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 …]
/external/arm-trusted-firmware/tools/cert_create/src/tbbr/
Dtbb_ext.c24 .oid = TRUSTED_FW_NVCOUNTER_OID,
34 .oid = NON_TRUSTED_FW_NVCOUNTER_OID,
44 .oid = TRUSTED_BOOT_FW_HASH_OID,
53 .oid = TRUSTED_BOOT_FW_CONFIG_HASH_OID,
63 .oid = HW_CONFIG_HASH_OID,
73 .oid = FW_CONFIG_HASH_OID,
83 .oid = TRUSTED_WORLD_PK_OID,
91 .oid = NON_TRUSTED_WORLD_PK_OID,
99 .oid = SCP_FW_CONTENT_CERT_PK_OID,
107 .oid = SCP_FW_HASH_OID,
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
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()
94 ASN1ObjectIdentifier oid, in replaceExtension() argument
99 this.replaceExtension(oid, critical, value.toASN1Primitive().getEncoded(ASN1Encoding.DER)); in replaceExtension()
111 ASN1ObjectIdentifier oid, in replaceExtension() argument
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/
DExtensionsGenerator.java40 ASN1ObjectIdentifier oid, in addExtension() argument
45 this.addExtension(oid, critical, value.toASN1Primitive().getEncoded(ASN1Encoding.DER)); in addExtension()
57 ASN1ObjectIdentifier oid, in addExtension() argument
61 if (extensions.containsKey(oid)) in addExtension()
63 throw new IllegalArgumentException("extension " + oid + " already added"); in addExtension()
66 extOrdering.addElement(oid); in addExtension()
67 extensions.put(oid, new Extension(oid, critical, new DEROctetString(value))); in addExtension()
96 ASN1ObjectIdentifier oid, in replaceExtension() argument
101 this.replaceExtension(oid, critical, value.toASN1Primitive().getEncoded(ASN1Encoding.DER)); in replaceExtension()
113 ASN1ObjectIdentifier oid, in replaceExtension() argument
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/x509/
DExtensionsGenerator.java40 ASN1ObjectIdentifier oid, in addExtension() argument
45 this.addExtension(oid, critical, value.toASN1Primitive().getEncoded(ASN1Encoding.DER)); in addExtension()
57 ASN1ObjectIdentifier oid, in addExtension() argument
61 if (extensions.containsKey(oid)) in addExtension()
63 throw new IllegalArgumentException("extension " + oid + " already added"); in addExtension()
66 extOrdering.addElement(oid); in addExtension()
67 extensions.put(oid, new Extension(oid, critical, new DEROctetString(value))); in addExtension()
96 ASN1ObjectIdentifier oid, in replaceExtension() argument
101 this.replaceExtension(oid, critical, value.toASN1Primitive().getEncoded(ASN1Encoding.DER)); in replaceExtension()
113 ASN1ObjectIdentifier oid, in replaceExtension() argument
[all …]
/external/arm-trusted-firmware/fdts/
Dcot_descriptors.dtsi21 oid = TRUSTED_BOOT_FW_HASH_OID;
24 oid = TRUSTED_BOOT_FW_CONFIG_HASH_OID;
27 oid = HW_CONFIG_HASH_OID;
30 oid = FW_CONFIG_HASH_OID;
40 oid = TRUSTED_WORLD_PK_OID;
43 oid = NON_TRUSTED_WORLD_PK_OID;
54 oid = SCP_FW_CONTENT_CERT_PK_OID;
65 oid = SCP_FW_HASH_OID;
75 oid = SOC_FW_CONTENT_CERT_PK_OID;
86 oid = SOC_AP_FW_HASH_OID;
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/util/
DAsymmetricAlgorithmProvider.java13 ASN1ObjectIdentifier oid) in addSignatureAlgorithm() argument
16 provider.addAlgorithm("Alg.Alias.Signature." + oid, algorithm); in addSignatureAlgorithm()
17 provider.addAlgorithm("Alg.Alias.Signature.OID." + oid, algorithm); in addSignatureAlgorithm()
25 ASN1ObjectIdentifier oid) in addSignatureAlgorithm() argument
36 provider.addAlgorithm("Alg.Alias.Signature." + oid, mainName); in addSignatureAlgorithm()
37 provider.addAlgorithm("Alg.Alias.Signature.OID." + oid, mainName); in addSignatureAlgorithm()
40 …protected void registerOid(ConfigurableProvider provider, ASN1ObjectIdentifier oid, String name, A… in registerOid() argument
42 provider.addAlgorithm("Alg.Alias.KeyFactory." + oid, name); in registerOid()
43 provider.addAlgorithm("Alg.Alias.KeyPairGenerator." + oid, name); in registerOid()
45 provider.addKeyInfoConverter(oid, keyFactory); in registerOid()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/util/
DAsymmetricAlgorithmProvider.java17 ASN1ObjectIdentifier oid) in addSignatureAlgorithm() argument
20 provider.addAlgorithm("Alg.Alias.Signature." + oid, algorithm); in addSignatureAlgorithm()
21 provider.addAlgorithm("Alg.Alias.Signature.OID." + oid, algorithm); in addSignatureAlgorithm()
29 ASN1ObjectIdentifier oid) in addSignatureAlgorithm() argument
40 provider.addAlgorithm("Alg.Alias.Signature." + oid, mainName); in addSignatureAlgorithm()
41 provider.addAlgorithm("Alg.Alias.Signature.OID." + oid, mainName); in addSignatureAlgorithm()
44 …protected void registerOid(ConfigurableProvider provider, ASN1ObjectIdentifier oid, String name, A… in registerOid() argument
46 provider.addAlgorithm("Alg.Alias.KeyFactory." + oid, name); in registerOid()
47 provider.addAlgorithm("Alg.Alias.KeyPairGenerator." + oid, name); in registerOid()
49 provider.addKeyInfoConverter(oid, keyFactory); in registerOid()
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/util/
DAsymmetricAlgorithmProvider.java17 ASN1ObjectIdentifier oid) in addSignatureAlgorithm() argument
20 provider.addAlgorithm("Alg.Alias.Signature." + oid, algorithm); in addSignatureAlgorithm()
21 provider.addAlgorithm("Alg.Alias.Signature.OID." + oid, algorithm); in addSignatureAlgorithm()
29 ASN1ObjectIdentifier oid) in addSignatureAlgorithm() argument
40 provider.addAlgorithm("Alg.Alias.Signature." + oid, mainName); in addSignatureAlgorithm()
41 provider.addAlgorithm("Alg.Alias.Signature.OID." + oid, mainName); in addSignatureAlgorithm()
44 …protected void registerOid(ConfigurableProvider provider, ASN1ObjectIdentifier oid, String name, A… in registerOid() argument
46 provider.addAlgorithm("Alg.Alias.KeyFactory." + oid, name); in registerOid()
47 provider.addAlgorithm("Alg.Alias.KeyPairGenerator." + oid, name); in registerOid()
49 provider.addKeyInfoConverter(oid, keyFactory); in registerOid()
[all …]
/external/arm-trusted-firmware/tools/cert_create/src/dualroot/
Dcot.c216 .oid = TRUSTED_FW_NVCOUNTER_OID,
227 .oid = TRUSTED_BOOT_FW_HASH_OID,
237 .oid = TRUSTED_BOOT_FW_CONFIG_HASH_OID,
248 .oid = HW_CONFIG_HASH_OID,
259 .oid = FW_CONFIG_HASH_OID,
270 .oid = TRUSTED_WORLD_PK_OID,
279 .oid = SCP_FW_CONTENT_CERT_PK_OID,
288 .oid = SCP_FW_HASH_OID,
298 .oid = SOC_FW_CONTENT_CERT_PK_OID,
307 .oid = SOC_AP_FW_HASH_OID,
[all …]
/external/openssh/
Dgss-genr.c69 return (ctx != NULL && ctx->oid != GSS_C_NO_OID && in ssh_gssapi_check_oid()
70 ctx->oid->length == len && in ssh_gssapi_check_oid()
71 memcmp(ctx->oid->elements, data, len) == 0); in ssh_gssapi_check_oid()
78 if (ctx->oid != GSS_C_NO_OID) { in ssh_gssapi_set_oid_data()
79 free(ctx->oid->elements); in ssh_gssapi_set_oid_data()
80 free(ctx->oid); in ssh_gssapi_set_oid_data()
82 ctx->oid = xcalloc(1, sizeof(gss_OID_desc)); in ssh_gssapi_set_oid_data()
83 ctx->oid->length = len; in ssh_gssapi_set_oid_data()
84 ctx->oid->elements = xmalloc(len); in ssh_gssapi_set_oid_data()
85 memcpy(ctx->oid->elements, data, len); in ssh_gssapi_set_oid_data()
[all …]
/external/python/cpython2/Lib/idlelib/
Drpc.py157 def register(self, oid, object): argument
158 self.objtable[oid] = object
160 def unregister(self, oid): argument
162 del self.objtable[oid]
169 how, (oid, methodname, args, kwargs) = request
172 if oid not in self.objtable:
173 return ("ERROR", "Unknown object id: %r" % (oid,))
174 obj = self.objtable[oid]
204 print>>sys.__stderr__, msg % (oid, method, args)
208 def remotecall(self, oid, methodname, args, kwargs): argument
[all …]
DRemoteObjectBrowser.py5 oid = id(wrapper)
6 rpc.objecttable[oid] = wrapper
7 return oid
26 def __init__(self, sockio, oid): argument
28 self.oid = oid
31 value = rpc.MethodProxy(self.sockio, self.oid, name)
35 list = self.sockio.remotecall(self.oid, "_GetSubList", (), {})
36 return [StubObjectTreeItem(self.sockio, oid) for oid in list]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
DECNamedCurveTable.java81 ASN1ObjectIdentifier oid = X962NamedCurves.getOID(name); in getOID() local
83 if (oid == null) in getOID()
85 oid = SECNamedCurves.getOID(name); in getOID()
88 if (oid == null) in getOID()
90 oid = NISTNamedCurves.getOID(name); in getOID()
122 return oid; in getOID()
133 ASN1ObjectIdentifier oid) in getName() argument
135 String name = X962NamedCurves.getName(oid); in getName()
139 name = SECNamedCurves.getName(oid); in getName()
144 name = NISTNamedCurves.getName(oid); in getName()
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/x9/
DECNamedCurveTable.java83 ASN1ObjectIdentifier oid = X962NamedCurves.getOID(name); in getOID() local
85 if (oid == null) in getOID()
87 oid = SECNamedCurves.getOID(name); in getOID()
90 if (oid == null) in getOID()
92 oid = NISTNamedCurves.getOID(name); in getOID()
124 return oid; in getOID()
135 ASN1ObjectIdentifier oid) in getName() argument
137 String name = X962NamedCurves.getName(oid); in getName()
141 name = SECNamedCurves.getName(oid); in getName()
146 name = NISTNamedCurves.getName(oid); in getName()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x9/
DECNamedCurveTable.java83 ASN1ObjectIdentifier oid = X962NamedCurves.getOID(name); in getOID() local
85 if (oid == null) in getOID()
87 oid = SECNamedCurves.getOID(name); in getOID()
90 if (oid == null) in getOID()
92 oid = NISTNamedCurves.getOID(name); in getOID()
124 return oid; in getOID()
135 ASN1ObjectIdentifier oid) in getName() argument
137 String name = X962NamedCurves.getName(oid); in getName()
141 name = SECNamedCurves.getName(oid); in getName()
146 name = NISTNamedCurves.getName(oid); in getName()
[all …]
/external/python/cpython3/Lib/idlelib/
Drpc.py161 def register(self, oid, object): argument
162 self.objtable[oid] = object
164 def unregister(self, oid): argument
166 del self.objtable[oid]
173 how, (oid, methodname, args, kwargs) = request
176 if oid not in self.objtable:
177 return ("ERROR", "Unknown object id: %r" % (oid,))
178 obj = self.objtable[oid]
212 print(msg % (oid, method, args), file=sys.__stderr__)
216 def remotecall(self, oid, methodname, args, kwargs): argument
[all …]
Ddebugobj_r.py5 oid = id(wrapper)
6 rpc.objecttable[oid] = wrapper
7 return oid
26 def __init__(self, sockio, oid): argument
28 self.oid = oid
31 value = rpc.MethodProxy(self.sockio, self.oid, name)
35 sub_list = self.sockio.remotecall(self.oid, "_GetSubList", (), {})
36 return [StubObjectTreeItem(self.sockio, oid) for oid in sub_list]
/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()
91 ASN1ObjectIdentifier oid = ASN1ObjectIdentifier.getInstance(e.nextElement()); in writeObject() local
93 aOut.writeObject(oid); in writeObject()
94 aOut.writeObject((ASN1Encodable)pkcs12Attributes.get(oid)); in writeObject()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/
DPKCS12BagAttributeCarrierImpl.java39 ASN1ObjectIdentifier oid, in setBagAttribute() argument
42 if (pkcs12Attributes.containsKey(oid)) in setBagAttribute()
44 pkcs12Attributes.put(oid, attribute); in setBagAttribute()
48 pkcs12Attributes.put(oid, attribute); in setBagAttribute()
49 pkcs12Ordering.addElement(oid); in setBagAttribute()
54 ASN1ObjectIdentifier oid) in getBagAttribute() argument
56 return (ASN1Encodable)pkcs12Attributes.get(oid); in getBagAttribute()
95 ASN1ObjectIdentifier oid = ASN1ObjectIdentifier.getInstance(e.nextElement()); in writeObject() local
97 aOut.writeObject(oid); in writeObject()
98 aOut.writeObject((ASN1Encodable)pkcs12Attributes.get(oid)); in writeObject()
[all …]
/external/python/cryptography/src/cryptography/x509/
Dname.py12 from cryptography.x509.oid import NameOID, ObjectIdentifier
76 def __init__(self, oid, value, _type=_SENTINEL): argument
77 if not isinstance(oid, ObjectIdentifier):
88 oid == NameOID.COUNTRY_NAME or
89 oid == NameOID.JURISDICTION_COUNTRY_NAME
106 _type = _NAMEOID_DEFAULT_TYPE.get(oid, _ASN1Type.UTF8String)
111 self._oid = oid
115 oid = utils.read_only_property("_oid") variable in NameAttribute
125 key = _NAMEOID_TO_NAME.get(self.oid, self.oid.dotted_string)
133 self.oid == other.oid and
[all …]

12345678910>>...18