sign release with OpenSSL.crypto.sign (last remaining use of ed25519)

This commit is contained in:
j 2016-01-18 19:36:21 +05:30
commit 14b2c99ab3
5 changed files with 67 additions and 21 deletions

View file

@ -16,7 +16,6 @@ import subprocess
import base64
import ox
import ed25519
from OpenSSL.crypto import (
load_privatekey, load_certificate,
dump_privatekey, dump_certificate,
@ -123,6 +122,7 @@ def valid(key, value, sig):
'''
validate that value was signed by key
'''
import ed25519
if isinstance(sig, str):
sig = sig.encode()
if isinstance(value, str):