HomeSort by relevance Sort by last modified time
    Searched refs:oid (Results 1 - 25 of 182) sorted by null

1 2 3 4 5 6 7 8

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
OIDTokenizer.java 4 * class for breaking up an OID into it's component tokens, ala
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);
  /external/apache-harmony/auth/src/test/java/common/org/ietf/jgss/
GSSNameTest.java 31 Oid oid= new Oid("1.3.6.1.5.6.3"); local
32 assertTrue(oid.equals(GSSName.NT_ANONYMOUS));
36 Oid oid= new Oid("1.3.6.1.5.6.4"); local
37 assertTrue(oid.equals(GSSName.NT_EXPORT_NAME));
41 Oid oid= new Oid("1.3.6.1.5.6.2") local
46 Oid oid= new Oid("1.2.840.113554.1.2.1.2"); local
51 Oid oid= new Oid("1.2.840.113554.1.2.1.3"); local
56 Oid oid= new Oid("1.2.840.113554.1.2.1.1"); local
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/security/asn1/
ObjectIdentifier.java 28 * Instance of this class represents ObjectIdentifier (OID).
31 * OID is represented as a sequence of subidentifier.
43 /** OID as array of integers */
44 private final int[] oid; field in class:ObjectIdentifier
46 /** OID as string */
50 * Creates ObjectIdentifier(OID) from array of integers.
52 * @param oid array of integers
53 * @throws IllegalArgumentException if oid is invalid or null
55 public ObjectIdentifier(int[] oid) {
56 validate(oid);
243 int[] oid = new int[count]; local
    [all...]
ASN1Oid.java 79 int[] oid = new int[oidElement]; local
80 for (int id = 1, i = 0; id < oid.length; id++, i++) {
88 oid[id] = oidElement;
90 // Special handling for the first packed OID element
91 if (oid[1] > 79) {
92 oid[0] = 2;
93 oid[1] = oid[1] - 80;
95 oid[0] = oid[1] / 40
106 int[] oid = (int[]) out.content; local
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/security/utils/
ObjectIdentifier.java 27 * Instance of this class represents ObjectIdentifier (OID).
29 * OID is represented as a sequence of subidentifier.
42 //OID as array of integers
43 private final int[] oid; field in class:ObjectIdentifier
48 //OID as string
51 // stores the following: "OID." + soid
54 // OID alias name
57 // OID's group
61 * Creates ObjectIdentifier(OID) from array of integers.
63 * @param oid - array of integer
    [all...]
  /external/javassist/src/main/javassist/tools/rmi/
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/
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 th
    [all...]
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.equals(X509Name.SN) || oid.equals(X509Name.DN_QUALIFIER
    [all...]
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))
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/util/
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)
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)
39 provider.addAlgorithm("Alg.Alias.AlgorithmParameterGenerator." + oid, name)
    [all...]
  /external/wpa_supplicant_8/src/tls/
asn1.c 79 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid)
85 os_memset(oid, 0, sizeof(*oid));
100 if (oid->len >= ASN1_MAX_OID_LEN) {
101 wpa_printf(MSG_DEBUG, "ASN.1: Too long OID value");
104 if (oid->len == 0) {
110 oid->oid[0] = val / 40;
111 if (oid->oid[0] > 2
    [all...]
pkcs8.c 24 struct asn1_oid oid; local
81 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &pos)) {
82 wpa_printf(MSG_DEBUG, "PKCS #8: Failed to parse OID "
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[2] != 840 /* us */ |
    [all...]
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[2] == 4)
1112 struct asn1_oid oid; local
1589 struct asn1_oid oid; local
    [all...]
pkcs5.c 29 static enum pkcs5_alg pkcs5_get_alg(struct asn1_oid *oid)
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[3] == 113549 /* rsadsi */ &
50 struct asn1_oid oid; local
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/interfaces/
PKCS12BagAttributeCarrier.java 14 ASN1ObjectIdentifier oid,
18 ASN1ObjectIdentifier oid);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/nist/
NISTNamedCurves.java 20 static void defineCurve(String name, ASN1ObjectIdentifier oid)
22 objIds.put(name, oid);
23 names.put(oid, name);
45 ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)objIds.get(Strings.toUpperCase(name)); local
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)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
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(); local
95 aOut.writeObject(oid);
96 aOut.writeObject((ASN1Encodable)pkcs12Attributes.get(oid));
117 ASN1ObjectIdentifier oid; local
    [all...]
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
OidTest.java 36 * ASN.1 DER test for OID type
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++)
    [all...]
  /external/openssh/
gss-genr.c 48 /* Check that the OID in a data stream matches that in the context */
52 return (ctx != NULL && ctx->oid != GSS_C_NO_OID &&
53 ctx->oid->length == len &&
54 memcmp(ctx->oid->elements, data, len) == 0);
57 /* Set the contexts OID from a data stream */
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
    [all...]
  /libcore/luni/src/main/java/java/security/cert/
X509Extension.java 39 * OID.
41 * @param oid
44 * if no extension for the specified OID can be found.
46 public byte[] getExtensionValue(String oid);
  /libcore/luni/src/main/java/org/apache/harmony/security/pkcs7/
ContentInfo.java 53 private final int[] oid; field in class:ContentInfo
57 private ContentInfo(int[] oid, Object content, byte[] encoding) {
58 this.oid = oid;
64 if (Arrays.equals(oid, SIGNED_DATA)) {
75 return oid;
91 res.append("\n== ContentType (OID): ");
92 for (int i : oid) {
117 values[0] = ci.oid;
119 if (Arrays.equals(ci.oid, DATA))
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/
AttributeTable.java 59 ASN1ObjectIdentifier oid,
62 Object value = attributes.get(oid);
66 attributes.put(oid, a);
86 attributes.put(oid, v);
93 public Attribute get(DERObjectIdentifier oid)
95 return get(new ASN1ObjectIdentifier(oid.getId()));
99 * Return the first attribute matching the OBJECT IDENTIFIER oid.
101 * @param oid type of attribute required.
102 * @return first attribute found of type oid.
105 ASN1ObjectIdentifier oid)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/digest/
DigestAlgorithmProvider.java 29 ASN1ObjectIdentifier oid)
33 provider.addAlgorithm("Alg.Alias.Mac." + oid, mainName);
34 provider.addAlgorithm("Alg.Alias.KeyGenerator." + oid, mainName);
  /external/tcpdump/
makemib 52 * struct mib somename = { desc, oid-octet, type, child-pointer, next-pointer
63 oid["iso"]=1
194 if (oid[parent] == "") {
200 if (oid[new] > 0 && oid[new] != value) {
202 inn(FILENAME), parent, new, value, oid[new]
208 if (oid[sib] == value) {
219 oid[new]=value
233 # newitem=sofar"."item"("oid[item]")"
246 item, item, oid[item], c,
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x500/style/
X500NameTokenizer.java 17 String oid)
19 this(oid, ',');
23 String oid,
26 this.value = oid;

Completed in 1227 milliseconds

1 2 3 4 5 6 7 8