mirror of
https://github.com/romanz/amodem.git
synced 2026-02-24 16:18:12 +08:00
gpg: deduce curve name from existing pubkey information
This commit is contained in:
@@ -21,9 +21,7 @@ def main():
|
||||
else:
|
||||
command, user_id = args
|
||||
assert command == '-bsau' # --detach-sign --sign --armor --local-user
|
||||
pubkey = signer.load_from_gpg(user_id)
|
||||
s = signer.Signer(user_id=user_id, created=pubkey['created'])
|
||||
assert s.key_id() == pubkey['key_id']
|
||||
s = signer.load_from_gpg(user_id)
|
||||
|
||||
data = sys.stdin.read()
|
||||
sig = s.sign(data)
|
||||
|
||||
Reference in New Issue
Block a user