diff --git a/gpg/signer.py b/gpg/signer.py index 1faf0a5..f654b37 100755 --- a/gpg/signer.py +++ b/gpg/signer.py @@ -76,6 +76,7 @@ def split_lines(body, size): lines.append(body[i:i+size] + '\n') return ''.join(lines) + def armor_sig(blob): head = '-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v2\n\n' body = base64.b64encode(blob) @@ -83,6 +84,7 @@ def armor_sig(blob): tail = '-----END PGP SIGNATURE-----\n' return head + split_lines(body + '=' + checksum, 64) + tail + class Signer(object): curve = ecdsa.NIST256p