Commit b7e81aa3 authored by Valentin Samir's avatar Valentin Samir

Uncomment GOST DS algorithm

parent ad6c0920
...@@ -62,7 +62,7 @@ class Config(object): # pylint: disable=locally-disabled,too-many-instance-attr ...@@ -62,7 +62,7 @@ class Config(object): # pylint: disable=locally-disabled,too-many-instance-attr
DS_ALGORITHMS = { DS_ALGORITHMS = {
1: 'SHA-1', 1: 'SHA-1',
2: 'SHA-256', 2: 'SHA-256',
# 3: 'GOST', (not currently supported on debian) 3: 'GOST',
4: 'SHA-384', 4: 'SHA-384',
} }
...@@ -816,7 +816,7 @@ class Key(object): ...@@ -816,7 +816,7 @@ class Key(object):
out, err = p.communicate() out, err = p.communicate()
p.wait() p.wait()
if err: if err:
raise ValueError(err.decode('utf-8').strip()) print(err.decode('utf-8').strip(), file=sys.stderr)
return out.decode('utf-8') return out.decode('utf-8')
def ds_digest(self, algorithm): def ds_digest(self, algorithm):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment