From: Nikos Mavrogiannopoulos Date: Mon, 19 Jul 2010 11:37:34 +0000 (+0200) Subject: Added RSA with SHA224. X-Git-Tag: gnutls_2_11_3~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a6fc6ffc658c6218afc83223bd3d890b0bc4c92;p=thirdparty%2Fgnutls.git Added RSA with SHA224. --- diff --git a/lib/gnutls_algorithms.c b/lib/gnutls_algorithms.c index b8aec3707d..1f2ad36383 100644 --- a/lib/gnutls_algorithms.c +++ b/lib/gnutls_algorithms.c @@ -1898,6 +1898,8 @@ typedef struct gnutls_sign_entry gnutls_sign_entry; static const gnutls_sign_entry sign_algorithms[] = { {"RSA-SHA1", SIG_RSA_SHA1_OID, GNUTLS_SIGN_RSA_SHA1, GNUTLS_PK_RSA, GNUTLS_MAC_SHA1, {2, 1}}, + {"RSA-SHA224", SIG_RSA_SHA224_OID, GNUTLS_SIGN_RSA_SHA224, GNUTLS_PK_RSA, + GNUTLS_MAC_SHA224, {3, 1}}, {"RSA-SHA256", SIG_RSA_SHA256_OID, GNUTLS_SIGN_RSA_SHA256, GNUTLS_PK_RSA, GNUTLS_MAC_SHA256, {4, 1}}, {"RSA-SHA384", SIG_RSA_SHA384_OID, GNUTLS_SIGN_RSA_SHA384, GNUTLS_PK_RSA, diff --git a/lib/x509/common.h b/lib/x509/common.h index 3ab4644e89..34981bd936 100644 --- a/lib/x509/common.h +++ b/lib/x509/common.h @@ -56,6 +56,7 @@ #define SIG_RSA_MD5_OID "1.2.840.113549.1.1.4" #define SIG_RSA_MD2_OID "1.2.840.113549.1.1.2" #define SIG_RSA_SHA1_OID "1.2.840.113549.1.1.5" +#define SIG_RSA_SHA224_OID "1.2.840.113549.1.1.14" #define SIG_RSA_SHA256_OID "1.2.840.113549.1.1.11" #define SIG_RSA_SHA384_OID "1.2.840.113549.1.1.12" #define SIG_RSA_SHA512_OID "1.2.840.113549.1.1.13"