sign release with OpenSSL.crypto.sign (last remaining use of ed25519)
This commit is contained in:
parent
5a920ca053
commit
14b2c99ab3
5 changed files with 67 additions and 21 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue