31 #include <s32std.h> |
31 #include <s32std.h> |
32 #include <signed.h> |
32 #include <signed.h> |
33 #include <x500dn.h> |
33 #include <x500dn.h> |
34 #include <asn1enc.h> |
34 #include <asn1enc.h> |
35 |
35 |
|
36 /* These OIDs have been defined for PKCS#1 with the |
|
37 * superior reference to OID 1.2.840.113549.1.1 |
|
38 * {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1)} |
|
39 */ |
|
40 // RSA (PKCS #1 v1.5) key transport algorithm |
36 _LIT(KRSA,"1.2.840.113549.1.1.1"); |
41 _LIT(KRSA,"1.2.840.113549.1.1.1"); |
|
42 // MD2 with RSA Encryption |
37 _LIT(KMD2WithRSA,"1.2.840.113549.1.1.2"); |
43 _LIT(KMD2WithRSA,"1.2.840.113549.1.1.2"); |
|
44 // RSA (PKCS #1 v1.5) with MD5 signature |
38 _LIT(KMD5WithRSA,"1.2.840.113549.1.1.4"); |
45 _LIT(KMD5WithRSA,"1.2.840.113549.1.1.4"); |
|
46 // RSA (PKCS #1 v1.5) with SHA-1 signature |
39 _LIT(KSHA1WithRSA,"1.2.840.113549.1.1.5"); |
47 _LIT(KSHA1WithRSA,"1.2.840.113549.1.1.5"); |
40 |
48 // SHA256 with RSA Encryption |
41 _LIT(KSHA256WithRSA,"1.2.840.113549.1.1.11"); |
49 _LIT(KSHA256WithRSA,"1.2.840.113549.1.1.11"); |
|
50 // SHA384 with RSA Encryption |
42 _LIT(KSHA384WithRSA,"1.2.840.113549.1.1.12"); |
51 _LIT(KSHA384WithRSA,"1.2.840.113549.1.1.12"); |
|
52 // SHA512 with RSA Encryption |
43 _LIT(KSHA512WithRSA,"1.2.840.113549.1.1.13"); |
53 _LIT(KSHA512WithRSA,"1.2.840.113549.1.1.13"); |
|
54 // SHA224 with RSA Encryption |
44 _LIT(KSHA224WithRSA,"1.2.840.113549.1.1.14"); |
55 _LIT(KSHA224WithRSA,"1.2.840.113549.1.1.14"); |
45 |
56 |
|
57 /* |
|
58 * These OIDs have been defined for PKIX with the |
|
59 * superior reference to OID 1.2.840.10040. |
|
60 */ |
|
61 // Digital Signature Algorithm (DSA), also known as the Digital Signature Standard (DSS) |
46 _LIT(KDSA,"1.2.840.10040.4.1"); |
62 _LIT(KDSA,"1.2.840.10040.4.1"); |
|
63 // ANSI X9.57 DSA signature generated with SHA-1 hash (DSA x9.30) |
47 _LIT(KDSAWithSHA1, "1.2.840.10040.4.3"); |
64 _LIT(KDSAWithSHA1, "1.2.840.10040.4.3"); |
48 |
65 |
|
66 /* |
|
67 * These OIDs have been defined for ANSI X9 standard with |
|
68 * superior reference to oid 1.2.840.10046. |
|
69 * {iso(1) member-body(2) us(840) ansi-x942(10046) number-types(2)} |
|
70 */ |
|
71 // ANSI X9.42 Ephemeral-Static Diffie-Hellman key agreement algorithm |
49 _LIT(KDH,"1.2.840.10046.2.1"); |
72 _LIT(KDH,"1.2.840.10046.2.1"); |
50 |
73 |
|
74 /* |
|
75 * These OIDs have been defined for digest algorithms with |
|
76 * superior reference to oid 1.2.840.113549.2 |
|
77 * {iso(1) member-body(2) us(840) rsadsi(113549) digestAlgorithm(2)} |
|
78 */ |
51 _LIT(KMD5,"1.2.840.113549.2.5"); |
79 _LIT(KMD5,"1.2.840.113549.2.5"); |
52 _LIT(KMD2,"1.2.840.113549.2.2"); |
80 _LIT(KMD2,"1.2.840.113549.2.2"); |
53 _LIT(KSHA1,"1.3.14.3.2.26"); |
81 |
54 |
82 /* |
|
83 * These OIDs have been defined for hash algorithms conforming NIST algorithms |
|
84 * with superior reference to oid 2.16.840.1.101.3.4.2 |
|
85 * {joint-iso-itu-t(2) country(16) us(840) organization(1) gov(101) csor(3) nistAlgorithm(4) hashAlgs(2)} |
|
86 */ |
55 _LIT(KSHA256,"2.16.840.1.101.3.4.2.1"); |
87 _LIT(KSHA256,"2.16.840.1.101.3.4.2.1"); |
56 _LIT(KSHA384,"2.16.840.1.101.3.4.2.2"); |
88 _LIT(KSHA384,"2.16.840.1.101.3.4.2.2"); |
57 _LIT(KSHA512,"2.16.840.1.101.3.4.2.3"); |
89 _LIT(KSHA512,"2.16.840.1.101.3.4.2.3"); |
58 _LIT(KSHA224,"2.16.840.1.101.3.4.2.4"); |
90 _LIT(KSHA224,"2.16.840.1.101.3.4.2.4"); |
59 |
91 |
|
92 /* |
|
93 * These OIDs are for OIW Security Special Interest Group defined algorithms |
|
94 * with superior reference to oid 1.3.14.3.2 |
|
95 * {iso(1) identified-organization(3) oiw(14) secsig(3) algorithms(2)} |
|
96 */ |
|
97 // SHA1 with RSA signature (obsolete) |
|
98 _LIT(KSHA1WithRSASignature,"1.3.14.3.2.29"); |
|
99 // Hash algorithm identifier SHA-1 (Secure Hash Algorithm, Revision 1) |
|
100 _LIT(KSHA1,"1.3.14.3.2.26"); |
60 |
101 |
61 /** The maximum number of allowed data elements. |
102 /** The maximum number of allowed data elements. |
62 * |
103 * |
63 * @since v7.0 */ |
104 * @since v7.0 */ |
64 const TInt KX509MaxDataElements = 10; |
105 const TInt KX509MaxDataElements = 10; |