Searched refs:oid (Results 1 - 25 of 152) sorted by relevance

1234567

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
H A DOIDTokenizer.java11 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 DGSSNameTest.java31 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 DRemoteRef.java23 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 DX509ExtensionsGenerator.java35 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 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,
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 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,
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 DAsymmetricAlgorithmProvider.java14 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 Dasn1.c79 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 Dpkcs8.c24 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 Dx509v3.c210 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[
715 x509_id_ce_oid(struct asn1_oid *oid) argument
1078 x509_parse_extension_data(struct x509_certificate *cert, struct asn1_oid *oid, const u8 *pos, size_t len) argument
1112 struct asn1_oid oid; local
1413 x509_rsadsi_oid(struct asn1_oid *oid) argument
1423 x509_pkcs_oid(struct asn1_oid *oid) argument
1431 x509_digest_oid(struct asn1_oid *oid) argument
1439 x509_sha1_oid(struct asn1_oid *oid) argument
1451 x509_sha256_oid(struct asn1_oid *oid) argument
1589 struct asn1_oid oid; local
[all...]
H A Dpkcs5.c29 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 Dasn1.c79 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 Dpkcs8.c24 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 Dx509v3.c210 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[
715 x509_id_ce_oid(struct asn1_oid *oid) argument
1078 x509_parse_extension_data(struct x509_certificate *cert, struct asn1_oid *oid, const u8 *pos, size_t len) argument
1112 struct asn1_oid oid; local
1413 x509_rsadsi_oid(struct asn1_oid *oid) argument
1423 x509_pkcs_oid(struct asn1_oid *oid) argument
1431 x509_digest_oid(struct asn1_oid *oid) argument
1439 x509_sha1_oid(struct asn1_oid *oid) argument
1451 x509_sha256_oid(struct asn1_oid *oid) argument
1589 struct asn1_oid oid; local
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/tls/
H A Dasn1.c79 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 Dpkcs8.c24 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 Dx509v3.c210 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[
715 x509_id_ce_oid(struct asn1_oid *oid) argument
1078 x509_parse_extension_data(struct x509_certificate *cert, struct asn1_oid *oid, const u8 *pos, size_t len) argument
1112 struct asn1_oid oid; local
1413 x509_rsadsi_oid(struct asn1_oid *oid) argument
1423 x509_pkcs_oid(struct asn1_oid *oid) argument
1431 x509_digest_oid(struct asn1_oid *oid) argument
1439 x509_sha1_oid(struct asn1_oid *oid) argument
1451 x509_sha256_oid(struct asn1_oid *oid) argument
1589 struct asn1_oid oid; local
[all...]
/external/wpa_supplicant_6/wpa_supplicant/src/tls/
H A Dasn1.c88 int asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid, argument
96 os_memset(oid, 0, sizeof(*oid));
121 if (oid->len >= ASN1_MAX_OID_LEN) {
125 if (oid->len == 0) {
131 oid->oid[0] = val / 40;
132 if (oid->oid[0] > 2)
133 oid
144 asn1_oid_to_str(struct asn1_oid *oid, char *buf, size_t len) argument
[all...]
H A Dx509v3.c213 if (asn1_get_oid(pos, end - pos, &id->oid, &pos))
300 struct asn1_oid oid; local
357 if (asn1_get_oid(seq_pos, seq_end - seq_pos, &oid, &seq_pos)) {
379 if (oid.len == 4 &&
380 oid.oid[0] == 2 && oid.oid[1] == 5 && oid.oid[
686 x509_id_ce_oid(struct asn1_oid *oid) argument
818 x509_parse_extension_data(struct x509_certificate *cert, struct asn1_oid *oid, const u8 *pos, size_t len) argument
849 struct asn1_oid oid; local
1150 x509_rsadsi_oid(struct asn1_oid *oid) argument
1160 x509_pkcs_oid(struct asn1_oid *oid) argument
1168 x509_digest_oid(struct asn1_oid *oid) argument
1176 x509_sha1_oid(struct asn1_oid *oid) argument
1188 x509_sha256_oid(struct asn1_oid *oid) argument
1326 struct asn1_oid oid; local
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/interfaces/
H A DPKCS12BagAttributeCarrier.java15 ASN1ObjectIdentifier oid,
19 DERObjectIdentifier oid);
14 setBagAttribute( ASN1ObjectIdentifier oid, ASN1Encodable attribute) argument
18 getBagAttribute( DERObjectIdentifier oid) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/nist/
H A DNISTNamedCurves.java20 static void defineCurve(String name, ASN1ObjectIdentifier oid) argument
22 objIds.put(name, oid);
23 names.put(oid, name);
45 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)objIds.get(Strings.toUpperCase(name));
47 if (oid != null)
49 return getByOID(oid);
59 * @param oid an object identifier representing a named curve, if present.
62 ASN1ObjectIdentifier oid)
64 return SECNamedCurves.getByOID(oid);
83 ASN1ObjectIdentifier oid)
61 getByOID( ASN1ObjectIdentifier oid) argument
82 getName( ASN1ObjectIdentifier oid) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
H A DPKCS12BagAttributeCarrierImpl.java36 ASN1ObjectIdentifier oid,
39 if (pkcs12Attributes.containsKey(oid))
41 pkcs12Attributes.put(oid, attribute);
45 pkcs12Attributes.put(oid, attribute);
46 pkcs12Ordering.addElement(oid);
51 DERObjectIdentifier 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( DERObjectIdentifier oid) argument
[all...]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
H A DOidTest.java43 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 Dgss-genr.c52 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/jcajce/provider/asymmetric/ec/
H A DECUtil.java164 ASN1ObjectIdentifier oid = X962NamedCurves.getOID(name);
166 if (oid == null)
168 oid = SECNamedCurves.getOID(name);
169 if (oid == null)
171 oid = NISTNamedCurves.getOID(name);
174 // if (oid == null)
176 // oid = TeleTrusTNamedCurves.getOID(name);
178 // if (oid == null)
180 // oid = ECGOST3410NamedCurves.getOID(name);
185 return oid;
188 getNamedCurveByOid( ASN1ObjectIdentifier oid) argument
211 getCurveName( ASN1ObjectIdentifier oid) argument
[all...]

Completed in 379 milliseconds

1234567