From 0d5a49e150b6ba3387780d88c57335566ec8cb2f Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 20 Sep 2013 13:24:08 +0100 Subject: [PATCH] Add FIPS RSA error code. Add some RSA error codes used by the FIPS module. --- crypto/rsa/rsa.h | 3 +++ crypto/rsa/rsa_err.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/crypto/rsa/rsa.h b/crypto/rsa/rsa.h index 5f269e577a..428eb9b904 100644 --- a/crypto/rsa/rsa.h +++ b/crypto/rsa/rsa.h @@ -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 diff --git a/crypto/rsa/rsa_err.c b/crypto/rsa/rsa_err.c index 46e0bf9980..aac8f34907 100644 --- a/crypto/rsa/rsa_err.c +++ b/crypto/rsa/rsa_err.c @@ -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"}, -- 2.25.1