diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2018-06-19 17:03:50 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2018-06-19 17:03:50 +0300 |
commit | 5186d798730c1ecec7ed40126beaf493804fcf45 (patch) | |
tree | 9e525ef25d75de1277df081ac3cce9ad76bd5786 /gost_lcl.h | |
parent | 586ebd520657eaed361968c55c1ef3e268cf5053 (diff) | |
download | gost-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |