Add FIPS RSA error code.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 20 Sep 2013 12:24:08 +0000 (13:24 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 1 Oct 2013 13:01:17 +0000 (14:01 +0100)
Add some RSA error codes used by the FIPS module.

crypto/rsa/rsa.h
crypto/rsa/rsa_err.c

index 5f269e577af498c6d7f43f618e9113ac5b467dd9..428eb9b904636eacd89a9dc3b046b8cde3d2204a 100644 (file)
@@ -459,6 +459,9 @@ void ERR_load_RSA_strings(void);
 /* Function codes. */
 #define RSA_F_CHECK_PADDING_MD                          140
 #define RSA_F_DO_RSA_PRINT                              146
+#define RSA_F_FIPS_RSA_SIGN_DIGEST                      149
+#define RSA_F_FIPS_RSA_VERIFY                           150
+#define RSA_F_FIPS_RSA_VERIFY_DIGEST                    151
 #define RSA_F_INT_RSA_VERIFY                            145
 #define RSA_F_MEMORY_LOCK                               100
 #define RSA_F_OLD_RSA_PRIV_DECODE                       147
index 46e0bf99806c63280ce3f3e29ea39d5d4ebb711a..aac8f349077609caae8d6eaa209a78da813a0ddb 100644 (file)
@@ -1,6 +1,6 @@
 /* crypto/rsa/rsa_err.c */
 /* ====================================================================
- * Copyright (c) 1999-2011 The OpenSSL Project.  All rights reserved.
+ * Copyright (c) 1999-2013 The OpenSSL Project.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -72,6 +72,9 @@ static ERR_STRING_DATA RSA_str_functs[]=
        {
 {ERR_FUNC(RSA_F_CHECK_PADDING_MD),     "CHECK_PADDING_MD"},
 {ERR_FUNC(RSA_F_DO_RSA_PRINT), "DO_RSA_PRINT"},
+{ERR_FUNC(RSA_F_FIPS_RSA_SIGN_DIGEST), "FIPS_rsa_sign_digest"},
+{ERR_FUNC(RSA_F_FIPS_RSA_VERIFY),      "FIPS_rsa_verify"},
+{ERR_FUNC(RSA_F_FIPS_RSA_VERIFY_DIGEST),       "FIPS_rsa_verify_digest"},
 {ERR_FUNC(RSA_F_INT_RSA_VERIFY),       "INT_RSA_VERIFY"},
 {ERR_FUNC(RSA_F_MEMORY_LOCK),  "MEMORY_LOCK"},
 {ERR_FUNC(RSA_F_OLD_RSA_PRIV_DECODE),  "OLD_RSA_PRIV_DECODE"},