diff options
author | Vitaly Chikunov <vt@altlinux.org> | 2018-07-26 07:34:07 +0300 |
---|---|---|
committer | Vitaly Chikunov <vt@altlinux.org> | 2018-07-26 18:52:29 +0300 |
commit | 488f3da97f0833c1608bffb6ea510be4314cef7f (patch) | |
tree | 978ef8e65063fe833cc6290c8e41d81826885f30 /gost_eng.c | |
parent | 234823a6d6971a72b29247a4893db5a61f8b992a (diff) | |
download | gost-engine-488f3da97f0833c1608bffb6ea510be4314cef7f.zip gost-engine-488f3da97f0833c1608bffb6ea510be4314cef7f.tar.gz gost-engine-488f3da97f0833c1608bffb6ea510be4314cef7f.tar.bz2 |
Add kuznyechik_ctracpkm
Diffstat (limited to 'gost_eng.c')
-rw-r--r-- | gost_eng.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -49,6 +49,7 @@ static int gost_cipher_nids[] = { NID_grasshopper_ctr, NID_magma_cbc, NID_magma_ctr, + NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm, 0 }; @@ -253,6 +254,7 @@ static int bind_gost(ENGINE* e, const char* id) { || !EVP_add_cipher(cipher_gost_grasshopper_cfb()) || !EVP_add_cipher(cipher_gost_grasshopper_ofb()) || !EVP_add_cipher(cipher_gost_grasshopper_ctr()) + || !EVP_add_cipher(cipher_gost_grasshopper_ctracpkm()) || !EVP_add_cipher(cipher_magma_cbc()) || !EVP_add_cipher(cipher_magma_ctr()) || !EVP_add_digest(digest_gost()) @@ -332,6 +334,8 @@ static int gost_ciphers(ENGINE* e, const EVP_CIPHER** cipher, *cipher = cipher_gost_grasshopper_ofb(); } else if (nid == NID_grasshopper_ctr) { *cipher = cipher_gost_grasshopper_ctr(); + } else if (nid == NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm) { + *cipher = cipher_gost_grasshopper_ctracpkm(); } else if (nid == NID_magma_cbc) { *cipher = cipher_magma_cbc(); } else if (nid == NID_magma_ctr) { |