{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"},
# 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
* 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>