diff -r ece3df019add -r cf642210ecb7 cryptoservices/certificateandkeymgmt/inc/x509cert.h --- a/cryptoservices/certificateandkeymgmt/inc/x509cert.h Tue Nov 24 09:06:03 2009 +0200 +++ b/cryptoservices/certificateandkeymgmt/inc/x509cert.h Thu Dec 17 09:28:34 2009 +0200 @@ -33,30 +33,71 @@ #include #include +/* These OIDs have been defined for PKCS#1 with the + * superior reference to OID 1.2.840.113549.1.1 + * {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1)} + */ +// RSA (PKCS #1 v1.5) key transport algorithm _LIT(KRSA,"1.2.840.113549.1.1.1"); +// MD2 with RSA Encryption _LIT(KMD2WithRSA,"1.2.840.113549.1.1.2"); +// RSA (PKCS #1 v1.5) with MD5 signature _LIT(KMD5WithRSA,"1.2.840.113549.1.1.4"); +// RSA (PKCS #1 v1.5) with SHA-1 signature _LIT(KSHA1WithRSA,"1.2.840.113549.1.1.5"); - +// SHA256 with RSA Encryption _LIT(KSHA256WithRSA,"1.2.840.113549.1.1.11"); +// SHA384 with RSA Encryption _LIT(KSHA384WithRSA,"1.2.840.113549.1.1.12"); +// SHA512 with RSA Encryption _LIT(KSHA512WithRSA,"1.2.840.113549.1.1.13"); +// SHA224 with RSA Encryption _LIT(KSHA224WithRSA,"1.2.840.113549.1.1.14"); +/* + * These OIDs have been defined for PKIX with the + * superior reference to OID 1.2.840.10040. + */ +// Digital Signature Algorithm (DSA), also known as the Digital Signature Standard (DSS) _LIT(KDSA,"1.2.840.10040.4.1"); +// ANSI X9.57 DSA signature generated with SHA-1 hash (DSA x9.30) _LIT(KDSAWithSHA1, "1.2.840.10040.4.3"); +/* + * These OIDs have been defined for ANSI X9 standard with + * superior reference to oid 1.2.840.10046. + * {iso(1) member-body(2) us(840) ansi-x942(10046) number-types(2)} + */ +// ANSI X9.42 Ephemeral-Static Diffie-Hellman key agreement algorithm _LIT(KDH,"1.2.840.10046.2.1"); +/* + * These OIDs have been defined for digest algorithms with + * superior reference to oid 1.2.840.113549.2 + * {iso(1) member-body(2) us(840) rsadsi(113549) digestAlgorithm(2)} + */ _LIT(KMD5,"1.2.840.113549.2.5"); _LIT(KMD2,"1.2.840.113549.2.2"); -_LIT(KSHA1,"1.3.14.3.2.26"); +/* + * These OIDs have been defined for hash algorithms conforming NIST algorithms + * with superior reference to oid 2.16.840.1.101.3.4.2 + * {joint-iso-itu-t(2) country(16) us(840) organization(1) gov(101) csor(3) nistAlgorithm(4) hashAlgs(2)} + */ _LIT(KSHA256,"2.16.840.1.101.3.4.2.1"); _LIT(KSHA384,"2.16.840.1.101.3.4.2.2"); _LIT(KSHA512,"2.16.840.1.101.3.4.2.3"); _LIT(KSHA224,"2.16.840.1.101.3.4.2.4"); +/* + * These OIDs are for OIW Security Special Interest Group defined algorithms + * with superior reference to oid 1.3.14.3.2 + * {iso(1) identified-organization(3) oiw(14) secsig(3) algorithms(2)} + */ +// SHA1 with RSA signature (obsolete) +_LIT(KSHA1WithRSASignature,"1.3.14.3.2.29"); +// Hash algorithm identifier SHA-1 (Secure Hash Algorithm, Revision 1) +_LIT(KSHA1,"1.3.14.3.2.26"); /** The maximum number of allowed data elements. *