diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2018-11-18 15:06:43 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2018-11-18 15:06:43 +0300 |
commit | 0b50e0028fa9d2cfb9648f8f3209e89d75e311c1 (patch) | |
tree | dff33367331152ce5428907f69acb802211f5b1a /gost_eng.c | |
parent | ee7efcec44edd11e64b5c4ad76e72e2a7acbdf9d (diff) | |
download | gost-engine-0b50e0028fa9d2cfb9648f8f3209e89d75e311c1.zip gost-engine-0b50e0028fa9d2cfb9648f8f3209e89d75e311c1.tar.gz gost-engine-0b50e0028fa9d2cfb9648f8f3209e89d75e311c1.tar.bz2 |
GOST md aliases
Diffstat (limited to 'gost_eng.c')
-rw-r--r-- | gost_eng.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -122,6 +122,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(); @@ -293,6 +295,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(); |