/external/wpa_supplicant_8/src/tls/ |
D | x509v3.c | 210 if (asn1_get_oid(pos, end - pos, &id->oid, &pos)) in x509_parse_algorithm_identifier() 296 struct asn1_oid oid; in x509_parse_name() local 355 if (asn1_get_oid(seq_pos, seq_end - seq_pos, &oid, &seq_pos)) { in x509_parse_name() 377 if (oid.len == 4 && in x509_parse_name() 378 oid.oid[0] == 2 && oid.oid[1] == 5 && oid.oid[2] == 4) { in x509_parse_name() 380 switch (oid.oid[3]) { in x509_parse_name() 406 } else if (oid.len == 7 && in x509_parse_name() 407 oid.oid[0] == 1 && oid.oid[1] == 2 && in x509_parse_name() 408 oid.oid[2] == 840 && oid.oid[3] == 113549 && in x509_parse_name() 409 oid.oid[4] == 1 && oid.oid[5] == 9 && in x509_parse_name() [all …]
|
D | asn1.c | 15 .oid = { 1, 3, 14, 3, 2, 26 }, 20 .oid = { 2, 16, 840, 1, 101, 3, 4, 2, 1 }, 98 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) in asn1_parse_oid() argument 104 os_memset(oid, 0, sizeof(*oid)); in asn1_parse_oid() 119 if (oid->len >= ASN1_MAX_OID_LEN) { in asn1_parse_oid() 123 if (oid->len == 0) { in asn1_parse_oid() 129 oid->oid[0] = val / 40; in asn1_parse_oid() 130 if (oid->oid[0] > 2) in asn1_parse_oid() 131 oid->oid[0] = 2; in asn1_parse_oid() 132 oid->oid[1] = val - oid->oid[0] * 40; in asn1_parse_oid() [all …]
|
D | tlsv1_cred.c | 335 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 …]
|
D | pkcs5.c | 38 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 …]
|
D | pkcs8.c | 24 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/openssh/ |
D | gss-genr.c | 53 return (ctx != NULL && ctx->oid != GSS_C_NO_OID && in ssh_gssapi_check_oid() 54 ctx->oid->length == len && in ssh_gssapi_check_oid() 55 memcmp(ctx->oid->elements, data, len) == 0); in ssh_gssapi_check_oid() 62 if (ctx->oid != GSS_C_NO_OID) { in ssh_gssapi_set_oid_data() 63 free(ctx->oid->elements); in ssh_gssapi_set_oid_data() 64 free(ctx->oid); in ssh_gssapi_set_oid_data() 66 ctx->oid = xcalloc(1, sizeof(gss_OID_desc)); in ssh_gssapi_set_oid_data() 67 ctx->oid->length = len; in ssh_gssapi_set_oid_data() 68 ctx->oid->elements = xmalloc(len); in ssh_gssapi_set_oid_data() 69 memcpy(ctx->oid->elements, data, len); in ssh_gssapi_set_oid_data() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/util/ |
D | AsymmetricAlgorithmProvider.java | 13 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/ |
D | AsymmetricAlgorithmProvider.java | 17 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/python/cpython2/Lib/idlelib/ |
D | rpc.py | 157 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 …]
|
D | RemoteObjectBrowser.py | 5 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/python/cpython3/Lib/idlelib/ |
D | rpc.py | 162 def register(self, oid, object): argument 163 self.objtable[oid] = object 165 def unregister(self, oid): argument 167 del self.objtable[oid] 174 how, (oid, methodname, args, kwargs) = request 177 if oid not in self.objtable: 178 return ("ERROR", "Unknown object id: %r" % (oid,)) 179 obj = self.objtable[oid] 213 print(msg % (oid, method, args), file=sys.__stderr__) 217 def remotecall(self, oid, methodname, args, kwargs): argument [all …]
|
D | debugobj_r.py | 5 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/asn1/x9/ |
D | ECNamedCurveTable.java | 81 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() 117 return oid; in getOID() 128 ASN1ObjectIdentifier oid) in getName() argument 130 String name = X962NamedCurves.getName(oid); in getName() 134 name = SECNamedCurves.getName(oid); in getName() 139 name = NISTNamedCurves.getName(oid); in getName() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | PKCS12BagAttributeCarrierImpl.java | 35 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/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x9/ |
D | ECNamedCurveTable.java | 83 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() 119 return oid; in getOID() 130 ASN1ObjectIdentifier oid) in getName() argument 132 String name = X962NamedCurves.getName(oid); in getName() 136 name = SECNamedCurves.getName(oid); in getName() 141 name = NISTNamedCurves.getName(oid); in getName() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | PKCS12BagAttributeCarrierImpl.java | 39 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() 96 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)e.nextElement(); in writeObject() local 98 aOut.writeObject(oid); in writeObject() 99 aOut.writeObject((ASN1Encodable)pkcs12Attributes.get(oid)); in writeObject() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
D | X509DefaultEntryConverter.java | 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/asn1/nist/ |
D | NISTNamedCurves.java | 20 static void defineCurve(String name, ASN1ObjectIdentifier oid) in defineCurve() argument 22 objIds.put(name, oid); in defineCurve() 23 names.put(oid, name); in defineCurve() 48 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)objIds.get(Strings.toUpperCase(name)); in getByName() local 50 if (oid != null) in getByName() 52 return getByOID(oid); in getByName() 65 ASN1ObjectIdentifier oid) in getByOID() argument 67 return SECNamedCurves.getByOID(oid); in getByOID() 86 ASN1ObjectIdentifier oid) in getName() argument 88 return (String)names.get(oid); in getName()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/ |
D | X509DefaultEntryConverter.java | 30 ASN1ObjectIdentifier oid, in getConvertedValue() argument 41 throw new RuntimeException("can't recode value for oid " + oid.getId()); in getConvertedValue() 50 if (oid.equals(X509Name.EmailAddress) || oid.equals(X509Name.DC)) in getConvertedValue() 54 …else if (oid.equals(X509Name.DATE_OF_BIRTH)) // accept time string as well as # (for compatibilit… in getConvertedValue() 58 … else if (oid.equals(X509Name.C) || oid.equals(X509Name.SN) || oid.equals(X509Name.DN_QUALIFIER) in getConvertedValue() 59 || oid.equals(X509Name.TELEPHONE_NUMBER)) in getConvertedValue()
|
/external/libcups/cups/ |
D | testsnmp.c | 45 char *oid = NULL; /* Last OID shown */ in main() local 101 oid = argv[i]; in main() 106 if (!oid) in main() 160 printf("OID %s\n", _cupsSNMPOIDToString(packet->object_value.oid, in print_packet() 207 int oid[CUPS_SNMP_MAX_OID]; /* OID */ in show_oid() local 212 if (!_cupsSNMPStringToOID(s, oid, sizeof(oid) / sizeof(oid[0]))) in show_oid() 220 printf("_cupsSNMPWalk(%s): ", _cupsSNMPOIDToString(oid, temp, sizeof(temp))); in show_oid() 222 if (_cupsSNMPWalk(fd, addr, CUPS_SNMP_VERSION_1, community, oid, 5.0, in show_oid() 231 printf("_cupsSNMPWrite(%s): ", _cupsSNMPOIDToString(oid, temp, sizeof(temp))); in show_oid() 234 CUPS_ASN1_GET_REQUEST, 1, oid)) in show_oid() [all …]
|
D | snmp.c | 42 unsigned length, int *oid, int oidsize); 58 const int *oid); 63 static unsigned asn1_size_oid(const int *oid); 161 const int *oid) /* I - OID */ in _cupsSNMPIsOID() argument 170 DEBUG_printf(("4_cupsSNMPIsOID(packet=%p, oid=%p)", packet, oid)); in _cupsSNMPIsOID() 172 if (!packet || !oid) in _cupsSNMPIsOID() 184 i < CUPS_SNMP_MAX_OID && oid[i] >= 0 && packet->object_name[i] >= 0; in _cupsSNMPIsOID() 186 if (oid[i] != packet->object_name[i]) in _cupsSNMPIsOID() 194 i < CUPS_SNMP_MAX_OID && oid[i] == packet->object_name[i])); in _cupsSNMPIsOID() 196 return (i < CUPS_SNMP_MAX_OID && oid[i] == packet->object_name[i]); in _cupsSNMPIsOID() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/nist/ |
D | NISTNamedCurves.java | 22 static void defineCurve(String name, ASN1ObjectIdentifier oid) in defineCurve() argument 24 objIds.put(name, oid); in defineCurve() 25 names.put(oid, name); in defineCurve() 50 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)objIds.get(Strings.toUpperCase(name)); in getByName() local 52 if (oid != null) in getByName() 54 return getByOID(oid); in getByName() 67 ASN1ObjectIdentifier oid) in getByOID() argument 69 return SECNamedCurves.getByOID(oid); in getByOID() 88 ASN1ObjectIdentifier oid) in getName() argument 90 return (String)names.get(oid); in getName()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
D | X509CertificateObject.java | 406 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/ |
D | OIDTokenizer.java | 11 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/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/ |
D | OIDTokenizer.java | 13 private String oid; field in OIDTokenizer 22 String oid) in OIDTokenizer() argument 24 this.oid = oid; in OIDTokenizer() 51 int end = oid.indexOf('.', index); in nextToken() 55 token = oid.substring(index); in nextToken() 60 token = oid.substring(index, end); in nextToken()
|