summaryrefslogtreecommitdiff
path: root/lib/x509/pkcs12_encr.c
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2017-01-28 06:01:01 +0300
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2018-06-23 12:20:16 +0300
commit8062f19086f9e54e87359a3924072927e20104ee (patch)
treee4c828ff6aee97eb13a036ab0418707705ed3583 /lib/x509/pkcs12_encr.c
parent9a8ae7b205279bd8e6d2c34bdd45750bb294df7e (diff)
downloadgnutls-8062f19086f9e54e87359a3924072927e20104ee.tar.gz
Support PKCS#12 key derivation with GOST digests
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'lib/x509/pkcs12_encr.c')
-rw-r--r--lib/x509/pkcs12_encr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/x509/pkcs12_encr.c b/lib/x509/pkcs12_encr.c
index 5faf75f69c..9d9c1d64a9 100644
--- a/lib/x509/pkcs12_encr.c
+++ b/lib/x509/pkcs12_encr.c
@@ -61,9 +61,14 @@ _gnutls_pkcs12_string_to_key(const mac_entry_st * me,
unsigned v_size = 0;
switch (me->id) {
+ case GNUTLS_DIG_GOSTR_94:
+ v_size = 32;
+ break;
case GNUTLS_DIG_SHA1:
case GNUTLS_DIG_SHA224:
case GNUTLS_DIG_SHA256:
+ case GNUTLS_DIG_STREEBOG_256:
+ case GNUTLS_DIG_STREEBOG_512:
v_size = 64;
break;
case GNUTLS_DIG_SHA384: