diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2018-11-18 15:06:43 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2018-11-25 11:19:22 +0300 |
commit | 4820e7bcbca56cc2d7e41793be90afffb7f4265f (patch) | |
tree | a6012c0f647b1a700c351b661c8927ea25f5f76e | |
parent | a2174a814239d97858f544d92ce1e5f811879554 (diff) | |
download | gost-engine-4820e7bcbca56cc2d7e41793be90afffb7f4265f.zip gost-engine-4820e7bcbca56cc2d7e41793be90afffb7f4265f.tar.gz gost-engine-4820e7bcbca56cc2d7e41793be90afffb7f4265f.tar.bz2 |
GOST md aliases
-rw-r--r-- | gost_eng.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -102,6 +102,8 @@ static int gost_engine_finish(ENGINE* e) { } static int gost_engine_destroy(ENGINE* e) { + EVP_delete_digest_alias("streebog256"); + EVP_delete_digest_alias("streebog512"); digest_gost_destroy(); digest_gost2012_256_destroy(); digest_gost2012_512_destroy(); @@ -233,6 +235,11 @@ static int bind_gost(ENGINE* e, const char* id) { goto end; } + if(!EVP_add_digest_alias(SN_id_GostR3411_2012_256, "streebog256") + || !EVP_add_digest_alias(SN_id_GostR3411_2012_512, "streebog512")) { + goto end; + } + ENGINE_register_all_complete(); ERR_load_GOST_strings(); |