aboutsummaryrefslogtreecommitdiff
path: root/e_gost_err.c
diff options
context:
space:
mode:
authorVictor Wagner <vitus@wagner.pp.ru>2015-08-23 15:31:58 +0300
committerVictor Wagner <vitus@wagner.pp.ru>2015-08-23 15:31:58 +0300
commitbe94de0b86a7ac68bfe5949e113ad08fd444f374 (patch)
treed71e6a416715e9dd7da195897e95a814e407e255 /e_gost_err.c
parentce40d60dfafceef6b964d741aba51ff068c59213 (diff)
downloadgost-engine-be94de0b86a7ac68bfe5949e113ad08fd444f374.zip
gost-engine-be94de0b86a7ac68bfe5949e113ad08fd444f374.tar.gz
gost-engine-be94de0b86a7ac68bfe5949e113ad08fd444f374.tar.bz2
Added CBC mode for gost and contril command to set size of MAC (from 1 to 8 bytes)
Diffstat (limited to 'e_gost_err.c')
-rw-r--r--e_gost_err.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/e_gost_err.c b/e_gost_err.c
index c641c60..376d18b 100644
--- a/e_gost_err.c
+++ b/e_gost_err.c
@@ -139,6 +139,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_PARAMSET), "invalid paramset"},
{ERR_REASON(GOST_R_KEY_IS_NOT_INITALIZED), "key is not initalized"},
{ERR_REASON(GOST_R_KEY_IS_NOT_INITIALIZED), "key is not initialized"},