diff options
author | Linus Nordberg <linus@nordberg.se> | 2021-12-09 11:41:54 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2021-12-09 11:41:54 +0100 |
commit | 7d3f27d440fd0b380ad324e4fa7bc571c825ebdc (patch) | |
tree | b2dfcffb330162edfe0bed84d296a1c8dbfac303 /tools | |
parent | 4507a1f8d540e9ae7c3f947df44e678af75b82c8 (diff) |
split armored ssh signature blob on column 70
This is what ssh-keygen -Y sign does.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/sigsum-sign-leaf.py | 4 |
1 files 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 |