aboutsummaryrefslogtreecommitdiff
path: root/gost_lcl.h
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2018-06-19 17:03:50 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2018-06-19 17:03:50 +0300
commit5186d798730c1ecec7ed40126beaf493804fcf45 (patch)
tree9e525ef25d75de1277df081ac3cce9ad76bd5786 /gost_lcl.h
parent586ebd520657eaed361968c55c1ef3e268cf5053 (diff)
downloadgost-engine-5186d798730c1ecec7ed40126beaf493804fcf45.zip
gost-engine-5186d798730c1ecec7ed40126beaf493804fcf45.tar.gz
gost-engine-5186d798730c1ecec7ed40126beaf493804fcf45.tar.bz2
Magma CTR (no meshing), compile-only version.
Diffstat (limited to 'gost_lcl.h')
-rw-r--r--gost_lcl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gost_lcl.h b/gost_lcl.h
index 58ac94d..0da46c7 100644
--- a/gost_lcl.h
+++ b/gost_lcl.h
@@ -216,7 +216,11 @@ const EVP_CIPHER *cipher_gost_cbc();
const EVP_CIPHER *cipher_gost_cpacnt();
const EVP_CIPHER *cipher_gost_cpcnt_12();
const EVP_CIPHER *cipher_magma_cbc();
+const EVP_CIPHER *cipher_magma_ctr();
void cipher_gost_destroy();
+
+void inc_counter(unsigned char* buffer, size_t buf_len);
+
# define EVP_MD_CTRL_KEY_LEN (EVP_MD_CTRL_ALG_CTRL+3)
# define EVP_MD_CTRL_SET_KEY (EVP_MD_CTRL_ALG_CTRL+4)
# define EVP_MD_CTRL_MAC_LEN (EVP_MD_CTRL_ALG_CTRL+5)