/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
H A D | OIDTokenizer.java | 11 private String oid; field in class:OIDTokenizer 15 String oid) 17 this.oid = oid; 34 int end = oid.indexOf('.', index); 38 token = oid.substring(index); 43 token = oid.substring(index, end); 14 OIDTokenizer( String oid) argument
|
/external/apache-harmony/auth/src/test/java/common/org/ietf/jgss/ |
H A D | GSSNameTest.java | 31 Oid oid= new Oid("1.3.6.1.5.6.3"); 32 assertTrue(oid.equals(GSSName.NT_ANONYMOUS)); 36 Oid oid= new Oid("1.3.6.1.5.6.4"); 37 assertTrue(oid.equals(GSSName.NT_EXPORT_NAME)); 41 Oid oid= new Oid("1.3.6.1.5.6.2"); 42 assertTrue(oid.equals(GSSName.NT_HOSTBASED_SERVICE)); 46 Oid oid= new Oid("1.2.840.113554.1.2.1.2"); 47 assertTrue(oid.equals(GSSName.NT_MACHINE_UID_NAME)); 51 Oid oid= new Oid("1.2.840.113554.1.2.1.3"); 52 assertTrue(oid [all...] |
/external/javassist/src/main/javassist/tools/rmi/ |
H A D | RemoteRef.java | 23 public int oid; field in class:RemoteRef 27 oid = i; 32 oid = i;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
H A D | X509ExtensionsGenerator.java | 35 DERObjectIdentifier oid, 39 addExtension(new ASN1ObjectIdentifier(oid.getId()), critical, value); 46 DERObjectIdentifier oid, 50 addExtension(new ASN1ObjectIdentifier(oid.getId()), critical, value); 54 * Add an extension with the given oid and the passed in value to be included 57 * @param oid OID for the extension. 62 ASN1ObjectIdentifier oid, 68 this.addExtension(oid, critical, value.toASN1Primitive().getEncoded(ASN1Encoding.DER)); 77 * Add an extension with the given oid and the passed in byte array to be wrapped in the 80 * @param oid OI 34 addExtension( DERObjectIdentifier oid, boolean critical, ASN1Encodable value) argument 45 addExtension( DERObjectIdentifier oid, boolean critical, byte[] value) argument 61 addExtension( ASN1ObjectIdentifier oid, boolean critical, ASN1Encodable value) argument 84 addExtension( ASN1ObjectIdentifier oid, boolean critical, byte[] value) argument [all...] |
H A D | X509DefaultEntryConverter.java | 20 * Apply default coversion for the given value depending on the oid 23 * @param oid the object identifier for the DN entry 28 ASN1ObjectIdentifier oid, 39 throw new RuntimeException("can't recode value for oid " + oid.getId()); 48 if (oid.equals(X509Name.EmailAddress) || oid.equals(X509Name.DC)) 52 else if (oid.equals(X509Name.DATE_OF_BIRTH)) // accept time string as well as # (for compatibility) 56 else if (oid.equals(X509Name.C) || oid 27 getConvertedValue( ASN1ObjectIdentifier oid, String value) argument [all...] |
H A D | ExtensionsGenerator.java | 30 * 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, 43 this.addExtension(oid, critical, value.toASN1Primitive().getEncoded(ASN1Encoding.DER)); 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, 59 if (extensions.containsKey(oid)) 61 throw new IllegalArgumentException("extension " + oid + " already added"); 64 extOrdering.addElement(oid); 37 addExtension( ASN1ObjectIdentifier oid, boolean critical, ASN1Encodable value) argument 54 addExtension( ASN1ObjectIdentifier oid, boolean critical, byte[] value) argument [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/util/ |
H A D | AsymmetricAlgorithmProvider.java | 14 ASN1ObjectIdentifier oid) 25 provider.addAlgorithm("Alg.Alias.Signature." + oid, mainName); 26 provider.addAlgorithm("Alg.Alias.Signature.OID." + oid, mainName); 29 protected void registerOid(ConfigurableProvider provider, ASN1ObjectIdentifier oid, String name, AsymmetricKeyInfoConverter keyFactory) argument 31 provider.addAlgorithm("Alg.Alias.KeyFactory." + oid, name); 32 provider.addAlgorithm("Alg.Alias.KeyPairGenerator." + oid, name); 34 provider.addKeyInfoConverter(oid, keyFactory); 37 protected void registerOidAlgorithmParameters(ConfigurableProvider provider, ASN1ObjectIdentifier oid, String name) argument 39 provider.addAlgorithm("Alg.Alias.AlgorithmParameterGenerator." + oid, name); 40 provider.addAlgorithm("Alg.Alias.AlgorithmParameters." + oid, nam 9 addSignatureAlgorithm( ConfigurableProvider provider, String digest, String algorithm, String className, ASN1ObjectIdentifier oid) argument [all...] |
/external/wpa_supplicant_8/hostapd/src/tls/ |
H A D | asn1.c | 79 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) argument 85 os_memset(oid, 0, sizeof(*oid)); 100 if (oid->len >= ASN1_MAX_OID_LEN) { 104 if (oid->len == 0) { 110 oid->oid[0] = val / 40; 111 if (oid->oid[0] > 2) 112 oid 123 asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid, const u8 **next) argument 143 asn1_oid_to_str(struct asn1_oid *oid, char *buf, size_t len) argument [all...] |
H A D | pkcs8.c | 24 struct asn1_oid oid; local 81 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &pos)) { 87 asn1_oid_to_str(&oid, obuf, sizeof(obuf)); 90 if (oid.len != 7 || 91 oid.oid[0] != 1 /* iso */ || 92 oid.oid[1] != 2 /* member-body */ || 93 oid.oid[ [all...] |
H A D | x509v3.c | 210 if (asn1_get_oid(pos, end - pos, &id->oid, &pos)) 297 struct asn1_oid oid; local 356 if (asn1_get_oid(seq_pos, seq_end - seq_pos, &oid, &seq_pos)) { 378 if (oid.len == 4 && 379 oid.oid[0] == 2 && oid.oid[1] == 5 && oid.oid[ 714 x509_id_ce_oid(struct asn1_oid *oid) argument 1077 x509_parse_extension_data(struct x509_certificate *cert, struct asn1_oid *oid, const u8 *pos, size_t len) argument 1111 struct asn1_oid oid; local 1412 x509_rsadsi_oid(struct asn1_oid *oid) argument 1422 x509_pkcs_oid(struct asn1_oid *oid) argument 1430 x509_digest_oid(struct asn1_oid *oid) argument 1438 x509_sha1_oid(struct asn1_oid *oid) argument 1450 x509_sha256_oid(struct asn1_oid *oid) argument 1588 struct asn1_oid oid; local [all...] |
H A D | pkcs5.c | 29 static enum pkcs5_alg pkcs5_get_alg(struct asn1_oid *oid) argument 31 if (oid->len == 7 && 32 oid->oid[0] == 1 /* iso */ && 33 oid->oid[1] == 2 /* member-body */ && 34 oid->oid[2] == 840 /* us */ && 35 oid->oid[ 50 struct asn1_oid oid; local [all...] |
/external/wpa_supplicant_8/src/tls/ |
H A D | asn1.c | 79 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) argument 85 os_memset(oid, 0, sizeof(*oid)); 100 if (oid->len >= ASN1_MAX_OID_LEN) { 104 if (oid->len == 0) { 110 oid->oid[0] = val / 40; 111 if (oid->oid[0] > 2) 112 oid 123 asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid, const u8 **next) argument 143 asn1_oid_to_str(struct asn1_oid *oid, char *buf, size_t len) argument [all...] |
H A D | pkcs8.c | 24 struct asn1_oid oid; local 81 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &pos)) { 87 asn1_oid_to_str(&oid, obuf, sizeof(obuf)); 90 if (oid.len != 7 || 91 oid.oid[0] != 1 /* iso */ || 92 oid.oid[1] != 2 /* member-body */ || 93 oid.oid[ [all...] |
H A D | x509v3.c | 210 if (asn1_get_oid(pos, end - pos, &id->oid, &pos)) 297 struct asn1_oid oid; local 356 if (asn1_get_oid(seq_pos, seq_end - seq_pos, &oid, &seq_pos)) { 378 if (oid.len == 4 && 379 oid.oid[0] == 2 && oid.oid[1] == 5 && oid.oid[ 714 x509_id_ce_oid(struct asn1_oid *oid) argument 1077 x509_parse_extension_data(struct x509_certificate *cert, struct asn1_oid *oid, const u8 *pos, size_t len) argument 1111 struct asn1_oid oid; local 1412 x509_rsadsi_oid(struct asn1_oid *oid) argument 1422 x509_pkcs_oid(struct asn1_oid *oid) argument 1430 x509_digest_oid(struct asn1_oid *oid) argument 1438 x509_sha1_oid(struct asn1_oid *oid) argument 1450 x509_sha256_oid(struct asn1_oid *oid) argument 1588 struct asn1_oid oid; local [all...] |
H A D | pkcs5.c | 29 static enum pkcs5_alg pkcs5_get_alg(struct asn1_oid *oid) argument 31 if (oid->len == 7 && 32 oid->oid[0] == 1 /* iso */ && 33 oid->oid[1] == 2 /* member-body */ && 34 oid->oid[2] == 840 /* us */ && 35 oid->oid[ 50 struct asn1_oid oid; local [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/tls/ |
H A D | asn1.c | 79 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) argument 85 os_memset(oid, 0, sizeof(*oid)); 100 if (oid->len >= ASN1_MAX_OID_LEN) { 104 if (oid->len == 0) { 110 oid->oid[0] = val / 40; 111 if (oid->oid[0] > 2) 112 oid 123 asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid, const u8 **next) argument 143 asn1_oid_to_str(struct asn1_oid *oid, char *buf, size_t len) argument [all...] |
H A D | pkcs8.c | 24 struct asn1_oid oid; local 81 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &pos)) { 87 asn1_oid_to_str(&oid, obuf, sizeof(obuf)); 90 if (oid.len != 7 || 91 oid.oid[0] != 1 /* iso */ || 92 oid.oid[1] != 2 /* member-body */ || 93 oid.oid[ [all...] |
H A D | x509v3.c | 210 if (asn1_get_oid(pos, end - pos, &id->oid, &pos)) 297 struct asn1_oid oid; local 356 if (asn1_get_oid(seq_pos, seq_end - seq_pos, &oid, &seq_pos)) { 378 if (oid.len == 4 && 379 oid.oid[0] == 2 && oid.oid[1] == 5 && oid.oid[ 714 x509_id_ce_oid(struct asn1_oid *oid) argument 1077 x509_parse_extension_data(struct x509_certificate *cert, struct asn1_oid *oid, const u8 *pos, size_t len) argument 1111 struct asn1_oid oid; local 1412 x509_rsadsi_oid(struct asn1_oid *oid) argument 1422 x509_pkcs_oid(struct asn1_oid *oid) argument 1430 x509_digest_oid(struct asn1_oid *oid) argument 1438 x509_sha1_oid(struct asn1_oid *oid) argument 1450 x509_sha256_oid(struct asn1_oid *oid) argument 1588 struct asn1_oid oid; local [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/interfaces/ |
H A D | PKCS12BagAttributeCarrier.java | 14 ASN1ObjectIdentifier oid, 18 ASN1ObjectIdentifier oid); 13 setBagAttribute( ASN1ObjectIdentifier oid, ASN1Encodable attribute) argument 17 getBagAttribute( ASN1ObjectIdentifier oid) argument
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/nist/ |
H A D | NISTNamedCurves.java | 20 static void defineCurve(String name, ASN1ObjectIdentifier oid) argument 22 objIds.put(name, oid); 23 names.put(oid, name); 48 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)objIds.get(Strings.toUpperCase(name)); 50 if (oid != null) 52 return getByOID(oid); 62 * @param oid an object identifier representing a named curve, if present. 65 ASN1ObjectIdentifier oid) 67 return SECNamedCurves.getByOID(oid); 86 ASN1ObjectIdentifier oid) 64 getByOID( ASN1ObjectIdentifier oid) argument 85 getName( ASN1ObjectIdentifier oid) argument [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
H A D | PKCS12BagAttributeCarrierImpl.java | 36 ASN1ObjectIdentifier oid, 39 if (pkcs12Attributes.containsKey(oid)) 41 pkcs12Attributes.put(oid, attribute); 45 pkcs12Attributes.put(oid, attribute); 46 pkcs12Ordering.addElement(oid); 51 ASN1ObjectIdentifier oid) 53 return (ASN1Encodable)pkcs12Attributes.get(oid); 93 DERObjectIdentifier oid = (DERObjectIdentifier)e.nextElement(); 95 aOut.writeObject(oid); 96 aOut.writeObject((ASN1Encodable)pkcs12Attributes.get(oid)); 35 setBagAttribute( ASN1ObjectIdentifier oid, ASN1Encodable attribute) argument 50 getBagAttribute( ASN1ObjectIdentifier oid) argument [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x500/ |
H A D | X500NameStyle.java | 19 * @param oid the OID associated with the value in the DN. 23 ASN1Encodable stringToValue(ASN1ObjectIdentifier oid, String value); argument 67 * @param oid the OID of interest. 70 String oidToDisplayName(ASN1ObjectIdentifier oid); argument 75 * @param oid the OID of interest. 78 String[] oidToAttrNames(ASN1ObjectIdentifier oid); argument
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/ |
H A D | OidTest.java | 43 private static Object[][] oid = { field in class:OidTest 44 //oid array format: string / int array / DER encoding 121 // oid decoder/encoder for testing 125 for (int i = 0; i < oid.length; i++) { 128 (byte[]) oid[i][2])); 130 assertTrue("Failed to decode oid: " + oid[i][0], // error message 131 Arrays.equals((int[]) oid[i][1], // expected array 136 for (int i = 0; i < oid.length; i++) { 139 oid[ [all...] |
/external/openssh/ |
H A D | gss-genr.c | 52 return (ctx != NULL && ctx->oid != GSS_C_NO_OID && 53 ctx->oid->length == len && 54 memcmp(ctx->oid->elements, data, len) == 0); 61 if (ctx->oid != GSS_C_NO_OID) { 62 xfree(ctx->oid->elements); 63 xfree(ctx->oid); 65 ctx->oid = xmalloc(sizeof(gss_OID_desc)); 66 ctx->oid->length = len; 67 ctx->oid->elements = xmalloc(len); 68 memcpy(ctx->oid 73 ssh_gssapi_set_oid(Gssctxt *ctx, gss_OID oid) argument 252 ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host) argument [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x500/style/ |
H A D | X500NameTokenizer.java | 17 String oid) 19 this(oid, ','); 23 String oid, 26 this.value = oid; 16 X500NameTokenizer( String oid) argument 22 X500NameTokenizer( String oid, char separator) argument
|