From 7d3f27d440fd0b380ad324e4fa7bc571c825ebdc Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 9 Dec 2021 11:41:54 +0100 Subject: split armored ssh signature blob on column 70 This is what ssh-keygen -Y sign does. --- tools/sigsum-sign-leaf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/sigsum-sign-leaf.py b/tools/sigsum-sign-leaf.py index 19d7f5c..5289f46 100755 --- a/tools/sigsum-sign-leaf.py +++ b/tools/sigsum-sign-leaf.py @@ -35,8 +35,8 @@ def ssh_blob(vk, sig, namespace): 6, bytes(alg, 'ascii'), 83, sigdata)).decode('ascii') while len(b) > 0: - s += b[:72] + '\n' - b = b[72:] + s += b[:70] + '\n' + b = b[70:] s += "-----END SSH SIGNATURE-----\n" return s -- cgit v1.2.3