diff options
-rw-r--r-- | e_gost_err.c | 4 | ||||
-rw-r--r-- | e_gost_err.h | 2 | ||||
-rw-r--r-- | gost_ec_keyx.c | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/e_gost_err.c b/e_gost_err.c index 8f3b35b..101f047 100644 --- a/e_gost_err.c +++ b/e_gost_err.c @@ -127,8 +127,8 @@ static ERR_STRING_DATA GOST_str_reasons[] = { {ERR_REASON(GOST_R_INVALID_DIGEST_TYPE), "invalid digest type"}, {ERR_REASON(GOST_R_INVALID_IV_LENGTH), "invalid iv length"}, {ERR_REASON(GOST_R_INVALID_MAC_KEY_LENGTH), "invalid mac key length"}, - {ERR_REASON(GOST_R_INVALID_MAC_KEY_SIZE) ,"invalid mac key size"}, - {ERR_REASON(GOST_R_INVALID_MAC_SIZE) ,"invalid mac size"}, + {ERR_REASON(GOST_R_INVALID_MAC_KEY_SIZE), "invalid mac key size"}, + {ERR_REASON(GOST_R_INVALID_MAC_SIZE), "invalid mac size"}, {ERR_REASON(GOST_R_INVALID_PARAMSET), "invalid paramset"}, {ERR_REASON(GOST_R_KEY_IS_NOT_INITIALIZED), "key is not initialized"}, {ERR_REASON(GOST_R_KEY_PARAMETERS_MISSING), "key parameters missing"}, diff --git a/e_gost_err.h b/e_gost_err.h index 1caaa94..b52811d 100644 --- a/e_gost_err.h +++ b/e_gost_err.h @@ -120,6 +120,8 @@ void ERR_GOST_error(int function, int reason, char *file, int line); # define GOST_R_INVALID_DIGEST_TYPE 111 # define GOST_R_INVALID_IV_LENGTH 112 # define GOST_R_INVALID_MAC_KEY_LENGTH 113 +# define GOST_R_INVALID_MAC_KEY_SIZE 128 +# define GOST_R_INVALID_MAC_SIZE 129 # define GOST_R_INVALID_PARAMSET 114 # define GOST_R_KEY_IS_NOT_INITIALIZED 115 # define GOST_R_KEY_PARAMETERS_MISSING 116 diff --git a/gost_ec_keyx.c b/gost_ec_keyx.c index c2a465b..594329b 100644 --- a/gost_ec_keyx.c +++ b/gost_ec_keyx.c @@ -8,6 +8,7 @@ * Requires OpenSSL 0.9.9 for compilation * **********************************************************************/ #include <openssl/evp.h> +#include <openssl/err.h> #include <openssl/rand.h> #include <string.h> #include <openssl/objects.h> |