aboutsummaryrefslogtreecommitdiff
path: root/gost_md2012.c
diff options
context:
space:
mode:
authorVitaly Chikunov <vt@altlinux.org>2020-05-13 01:55:49 +0300
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>2020-05-13 20:12:23 +0300
commit522de4bf0a1f1d14228034568dc6a3e74e2ffb08 (patch)
treedc48d65f115082f763bf182928acc3408a4e3105 /gost_md2012.c
parent18fd03a780b6f71305bb4af7ae8d74b9bc40293e (diff)
downloadgost-engine-522de4bf0a1f1d14228034568dc6a3e74e2ffb08.zip
gost-engine-522de4bf0a1f1d14228034568dc6a3e74e2ffb08.tar.gz
gost-engine-522de4bf0a1f1d14228034568dc6a3e74e2ffb08.tar.bz2
gost_md: Rework alias support in digest registration
Diffstat (limited to 'gost_md2012.c')
-rw-r--r--gost_md2012.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gost_md2012.c b/gost_md2012.c
index 8d1bde8..3900e5a 100644
--- a/gost_md2012.c
+++ b/gost_md2012.c
@@ -39,6 +39,7 @@ GOST_digest GostR3411_2012_template_digest = {
GOST_digest GostR3411_2012_256_digest = {
.nid = NID_id_GostR3411_2012_256,
+ .alias = "streebog256",
.template = &GostR3411_2012_template_digest,
.result_size = 32,
.init = gost_digest_init256,
@@ -57,6 +58,7 @@ void digest_gost2012_256_destroy(void)
GOST_digest GostR3411_2012_512_digest = {
.nid = NID_id_GostR3411_2012_512,
+ .alias = "streebog512",
.template = &GostR3411_2012_template_digest,
.result_size = 64,
.init = gost_digest_init512,