Home
last modified time | relevance | path

Searched full:oid (Results 1 – 25 of 2941) sorted by relevance

12345678910>>...118

/aosp_15_r20/external/wpa_supplicant_8/src/tls/
H A Dx509v3.c207 if (asn1_get_oid(pos, end - pos, &id->oid, &pos)) in x509_parse_algorithm_identifier()
290 struct asn1_oid oid; in x509_parse_name() local
342 if (asn1_get_oid(seq_pos, seq_end - seq_pos, &oid, &seq_pos)) { in x509_parse_name()
371 if (oid.len == 4 && in x509_parse_name()
372 oid.oid[0] == 2 && oid.oid[1] == 5 && oid.oid[2] == 4) { in x509_parse_name()
374 switch (oid.oid[3]) { in x509_parse_name()
400 } else if (oid.len == 7 && in x509_parse_name()
401 oid.oid[0] == 1 && oid.oid[1] == 2 && in x509_parse_name()
402 oid.oid[2] == 840 && oid.oid[3] == 113549 && in x509_parse_name()
403 oid.oid[4] == 1 && oid.oid[5] == 9 && in x509_parse_name()
[all …]
H A 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 …]
H A 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 …]
H A 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 …]
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/tests/suites/
H A Dtest_suite_oid.data1 OID get Any Policy certificate policy
4 OID get certificate policy invalid oid
7 OID get certificate policy wrong oid - id-ce-authorityKeyIdentifier
10 OID get Ext Key Usage - id-kp-serverAuth
13 OID get Ext Key Usage - id-kp-clientAuth
16 OID get Ext Key Usage - id-kp-codeSigning
19 OID get Ext Key Usage - id-kp-emailProtection
22 OID get Ext Key Usage - id-kp-timeStamping
25 OID get Ext Key Usage - id-kp-OCSPSigning
28 OID get Ext Key Usage - id-kp-wisun-fan-device
[all …]
/aosp_15_r20/external/mbedtls/tests/suites/
H A Dtest_suite_oid.data1 OID get Any Policy certificate policy
4 OID get certificate policy invalid oid
7 OID get certificate policy wrong oid - id-ce-authorityKeyIdentifier
10 OID get Ext Key Usage - id-kp-serverAuth
13 OID get Ext Key Usage - id-kp-clientAuth
16 OID get Ext Key Usage - id-kp-codeSigning
19 OID get Ext Key Usage - id-kp-emailProtection
22 OID get Ext Key Usage - id-kp-timeStamping
25 OID get Ext Key Usage - id-kp-OCSPSigning
28 OID get Ext Key Usage - id-kp-wisun-fan-device
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/crypto/x509/
Doid_test.go53 oid, ok := newOIDFromDER(v.raw)
55 t.Errorf("newOIDFromDER(%v) = (%v, %v); want = (OID, %v)", v.raw, oid, ok, v.valid)
63 if str := oid.String(); str != v.str {
64 t.Errorf("(%#v).String() = %v, want; %v", oid, str, v.str)
76 o, ok := oid.toASN1OID()
78 t.Errorf("(%#v).toASN1OID() = (%v, %v); want = (%v, %v)", oid, o, ok, asn1OID, shouldOk)
83 t.Errorf("(%#v).toASN1OID() = (%v, true); want = (%v, true)", oid, o, asn1OID)
89 t.Errorf("OIDFromInts(%v) = (%v, %v); want = (%v, nil)", v.ints, oid2, err, oid)
91 if !oid2.Equal(oid) {
92 t.Errorf("OIDFromInts(%v) = (%v, nil); want = (%v, nil)", v.ints, oid2, oid)
[all …]
Doid.go19 errInvalidOID = errors.New("invalid oid")
22 // An OID represents an ASN.1 OBJECT IDENTIFIER.
23 type OID struct { struct
28 func ParseOID(oid string) (OID, error) {
29 var o OID
30 return o, o.unmarshalOIDText(oid)
33 func newOIDFromDER(der []byte) (OID, bool) {
35 return OID{}, false
44 return OID{}, false
51 return OID{der}, true
[all …]
/aosp_15_r20/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
H A DX9ObjectIdentifiers.java15 /** Base OID: 1.2.840.10045 */
18 /** OID: 1.2.840.10045.1 */
21 /** OID: 1.2.840.10045.1.1 */
24 /** OID: 1.2.840.10045.1.2 */
27 /** OID: 1.2.840.10045.1.2.3.1 */
30 /** OID: 1.2.840.10045.1.2.3.2 */
33 /** OID: 1.2.840.10045.1.2.3.3 */
36 /** OID: 1.2.840.10045.4 */
39 /** OID: 1.2.840.10045.4.1 */
42 /** OID: 1.2.840.10045.2 */
[all …]
H A 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()
95 if (oid == null) in getOID()
97 oid = TeleTrusTNamedCurves.getOID(name); in getOID()
100 if (oid == null) in getOID()
102 oid = ANSSINamedCurves.getOID(name); in getOID()
105 if (oid == null) in getOID()
[all …]
/aosp_15_r20/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/x9/
H A DX9ObjectIdentifiers.java17 /** Base OID: 1.2.840.10045 */
20 /** OID: 1.2.840.10045.1 */
23 /** OID: 1.2.840.10045.1.1 */
26 /** OID: 1.2.840.10045.1.2 */
29 /** OID: 1.2.840.10045.1.2.3.1 */
32 /** OID: 1.2.840.10045.1.2.3.2 */
35 /** OID: 1.2.840.10045.1.2.3.3 */
38 /** OID: 1.2.840.10045.4 */
41 /** OID: 1.2.840.10045.4.1 */
44 /** OID: 1.2.840.10045.2 */
[all …]
H A 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()
97 if (oid == null) in getOID()
99 oid = TeleTrusTNamedCurves.getOID(name); in getOID()
102 if (oid == null) in getOID()
104 oid = ANSSINamedCurves.getOID(name); in getOID()
107 if (oid == null) in getOID()
[all …]
/aosp_15_r20/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x9/
H A DX9ObjectIdentifiers.java17 /** Base OID: 1.2.840.10045 */
20 /** OID: 1.2.840.10045.1 */
23 /** OID: 1.2.840.10045.1.1 */
26 /** OID: 1.2.840.10045.1.2 */
29 /** OID: 1.2.840.10045.1.2.3.1 */
32 /** OID: 1.2.840.10045.1.2.3.2 */
35 /** OID: 1.2.840.10045.1.2.3.3 */
38 /** OID: 1.2.840.10045.4 */
41 /** OID: 1.2.840.10045.4.1 */
44 /** OID: 1.2.840.10045.2 */
[all …]
H A 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()
97 if (oid == null) in getOID()
99 oid = TeleTrusTNamedCurves.getOID(name); in getOID()
102 if (oid == null) in getOID()
104 oid = ANSSINamedCurves.getOID(name); in getOID()
107 if (oid == null) in getOID()
[all …]
/aosp_15_r20/external/mbedtls/include/mbedtls/
H A Doid.h2 * \file oid.h
4 * \brief Object Identifier (OID) database
27 /** OID is not found. */
55 * Maximum number of OID components allowed
60 * Top level OID tuples
68 * ISO Member bodies OID parts
79 * ISO Identified organization OID parts
97 * ISO ITU OID parts
107 … MBEDTLS_OID_ISO_ITU_US_ORG MBEDTLS_OID_ORG_NETSCAPE /* Netscape OID {joint-iso-itu-t(2)…
469 * \brief Base OID descriptor structure
[all …]
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/include/mbedtls/
H A Doid.h2 * \file oid.h
4 * \brief Object Identifier (OID) database
27 /** OID is not found. */
55 * Maximum number of OID components allowed
60 * Top level OID tuples
68 * ISO Member bodies OID parts
79 * ISO Identified organization OID parts
97 * ISO ITU OID parts
107 … MBEDTLS_OID_ISO_ITU_US_ORG MBEDTLS_OID_ORG_NETSCAPE /* Netscape OID {joint-iso-itu-t(2)…
474 * \brief Base OID descriptor structure
[all …]
/aosp_15_r20/libcore/ojluni/src/main/java/sun/security/x509/
H A DAlgorithmId.java41 * defined according to OID and (where relevant) parameters.
48 * <P>The OID constants defined in this class correspond to some widely
92 * @param oid the identifier for the algorithm
94 public AlgorithmId(ObjectIdentifier oid) { in AlgorithmId() argument
95 algid = oid; in AlgorithmId()
101 * @param oid the identifier for the algorithm.
104 public AlgorithmId(ObjectIdentifier oid, AlgorithmParameters algparams) { in AlgorithmId() argument
105 algid = oid; in AlgorithmId()
110 private AlgorithmId(ObjectIdentifier oid, DerValue params) in AlgorithmId() argument
112 this.algid = oid; in AlgorithmId()
[all …]
/aosp_15_r20/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
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, in addExtension() argument
43 this.addExtension(oid, critical, value.toASN1Primitive().getEncoded(ASN1Encoding.DER)); in addExtension()
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, 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()
[all …]
/aosp_15_r20/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/x509/
H A DExtensionsGenerator.java32 * Add an extension with the given oid and the passed in value to be included
35 * @param oid OID for the extension.
40 ASN1ObjectIdentifier oid, in addExtension() argument
45 this.addExtension(oid, critical, value.toASN1Primitive().getEncoded(ASN1Encoding.DER)); in addExtension()
49 * Add an extension with the given oid and the passed in byte array to be wrapped in the
52 * @param oid OID for the extension.
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()
[all …]
/aosp_15_r20/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/
H A DExtensionsGenerator.java32 * Add an extension with the given oid and the passed in value to be included
35 * @param oid OID for the extension.
40 ASN1ObjectIdentifier oid, in addExtension() argument
45 this.addExtension(oid, critical, value.toASN1Primitive().getEncoded(ASN1Encoding.DER)); in addExtension()
49 * Add an extension with the given oid and the passed in byte array to be wrapped in the
52 * @param oid OID for the extension.
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()
[all …]
/aosp_15_r20/external/snakeyaml/src/test/resources/issues/
H A Dissue56-1.yaml2 oid: 1724265
9 oid: 1724276
17 oid: 1724267
32 oid: 2250
42 oid: 1724261
45 oid: 1724263
50 oid: 1724260
60 oid: 1724270
65 oid: 19094
72 oid: 1727992
[all …]
/aosp_15_r20/external/libcups/cups/
H A Dsnmp.c38 unsigned length, int *oid, int oidsize);
54 const int *oid);
59 static unsigned asn1_size_oid(const int *oid);
79 * '_cupsSNMPCopyOID()' - Copy an OID.
84 int * /* O - New OID */
85 _cupsSNMPCopyOID(int *dst, /* I - Destination OID */ in _cupsSNMPCopyOID()
86 const int *src, /* I - Source OID */ in _cupsSNMPCopyOID()
154 * '_cupsSNMPIsOID()' - Test whether a SNMP response contains the specified OID.
156 * The array pointed to by "oid" is terminated by the value -1.
161 const int *oid) /* I - OID */ in _cupsSNMPIsOID() argument
[all …]
/aosp_15_r20/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/
H A DX509v3CertificateBuilder.java120 * Return if the extension indicated by OID is present.
122 * @param oid the OID for the extension of interest.
125 public boolean hasExtension(ASN1ObjectIdentifier oid) in hasExtension() argument
127 return doGetExtension(oid) != null; in hasExtension()
131 * Return the current value of the extension for OID.
133 * @param oid the OID for the extension we want to fetch.
136 public Extension getExtension(ASN1ObjectIdentifier oid) in getExtension() argument
138 return doGetExtension(oid); in getExtension()
141 private Extension doGetExtension(ASN1ObjectIdentifier oid) in doGetExtension() argument
145 return exts.getExtension(oid); in doGetExtension()
[all …]
/aosp_15_r20/external/bouncycastle/repackaged_platform/bcpkix/src/main/java/com/android/internal/org/bouncycastle/cert/
H A DX509v3CertificateBuilder.java122 * Return if the extension indicated by OID is present.
124 * @param oid the OID for the extension of interest.
127 public boolean hasExtension(ASN1ObjectIdentifier oid) in hasExtension() argument
129 return doGetExtension(oid) != null; in hasExtension()
133 * Return the current value of the extension for OID.
135 * @param oid the OID for the extension we want to fetch.
138 public Extension getExtension(ASN1ObjectIdentifier oid) in getExtension() argument
140 return doGetExtension(oid); in getExtension()
143 private Extension doGetExtension(ASN1ObjectIdentifier oid) in doGetExtension() argument
147 return exts.getExtension(oid); in doGetExtension()
[all …]
/aosp_15_r20/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/
H A DSECObjectIdentifiers.java18 /** Base OID: 1.3.132.0 */
21 /** sect163k1 OID: 1.3.132.0.1 */
23 /** sect163r1 OID: 1.3.132.0.2 */
25 /** sect239k1 OID: 1.3.132.0.3 */
27 /** sect113r1 OID: 1.3.132.0.4 */
29 /** sect113r2 OID: 1.3.132.0.5 */
31 /** secp112r1 OID: 1.3.132.0.6 */
33 /** secp112r2 OID: 1.3.132.0.7 */
35 /** secp160r1 OID: 1.3.132.0.8 */
37 /** secp160k1 OID: 1.3.132.0.9 */
[all …]

12345678910>>...118