aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2022-03-25 14:37:26 +0100
committerLinus Nordberg <linus@nordberg.se>2022-03-25 14:37:26 +0100
commit6b8bdb5f5c01b04c201dde5a40ebb7ff58c4a64d (patch)
tree2c2e2c3ea979311a2ab5d78cc607ebe5d35084fd
parent51ee50298902d2afe0a148246df09437efaa8a3c (diff)
change default signing algo to sha256
-rwxr-xr-xtools/sigsum-sign-leaf.py2
-rwxr-xr-xtools/sigsum-verify-leaf.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/sigsum-sign-leaf.py b/tools/sigsum-sign-leaf.py
index 5289f46..6cf3398 100755
--- a/tools/sigsum-sign-leaf.py
+++ b/tools/sigsum-sign-leaf.py
@@ -11,7 +11,7 @@ from nacl.signing import VerifyKey, SigningKey
from nacl.encoding import HexEncoder
from libsigntools import checksum_stdin, ssh_to_sign
-alg = 'sha512'
+alg = 'sha256'
def ssh_blob(vk, sig, namespace):
vkdata = struct.pack('!I11sI32s',
diff --git a/tools/sigsum-verify-leaf.py b/tools/sigsum-verify-leaf.py
index d8a15fa..6e7d508 100755
--- a/tools/sigsum-verify-leaf.py
+++ b/tools/sigsum-verify-leaf.py
@@ -9,7 +9,7 @@ from nacl.signing import VerifyKey
from nacl.encoding import HexEncoder
from libsigntools import checksum_stdin, ssh_to_sign
-alg = 'sha512'
+alg = 'sha256'
def main():
keyfile = sys.argv[1]