mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-21 03:55:27 +00:00
codechecks fixup
This commit is contained in:
parent
df4671f90e
commit
02bc5c1f42
@ -1,4 +1,3 @@
|
||||
import os
|
||||
import six
|
||||
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
|
@ -19,19 +19,6 @@ signatures to fail to validate.
|
||||
RSA_PSS_SALT_LENGTH = 32
|
||||
|
||||
|
||||
def create_verifying_key_from_string(public_key_der):
|
||||
"""
|
||||
Create an RSA verifying key from a previously serialized public key.
|
||||
|
||||
:returns: public key
|
||||
"""
|
||||
pub_key = load_der_public_key(
|
||||
public_key_der,
|
||||
backend=default_backend(),
|
||||
)
|
||||
return pub_key
|
||||
|
||||
|
||||
def create_signing_keypair(key_size):
|
||||
"""
|
||||
Create a new RSA signing keypair from scratch. Can be used with
|
||||
@ -88,7 +75,7 @@ def der_string_from_verifying_key(public_key):
|
||||
|
||||
def create_verifying_key_from_string(public_key_der):
|
||||
"""
|
||||
Create an RSA signing key from a previously serialized public key
|
||||
Create an RSA verifying key from a previously serialized public key
|
||||
"""
|
||||
pub_key = load_der_public_key(
|
||||
public_key_der,
|
||||
|
@ -15,7 +15,6 @@ from twisted.python.filepath import FilePath
|
||||
from foolscap.api import Tub, Referenceable, fireEventually, flushEventualQueue
|
||||
from twisted.application import service
|
||||
from allmydata import crypto
|
||||
from allmydata.crypto import ed25519
|
||||
from allmydata.crypto.ed25519 import SigningKey
|
||||
from allmydata.interfaces import InsufficientVersionError
|
||||
from allmydata.introducer.client import IntroducerClient
|
||||
|
Loading…
Reference in New Issue
Block a user