mirror of https://github.com/nucypher/nucypher.git
Reflecting deprecated crypto modules.
parent
0d964ca080
commit
6d2c9e3d7b
|
@ -2,10 +2,10 @@ from io import BytesIO
|
|||
|
||||
import msgpack
|
||||
|
||||
from nkms.crypto import (default_algorithm, pre_from_algorithm,
|
||||
symmetric_from_algorithm)
|
||||
# from nkms.crypto import (default_algorithm, pre_from_algorithm,
|
||||
# symmetric_from_algorithm)
|
||||
from nkms.keystore.keystore import KeyStore
|
||||
from nkms.network import dummy
|
||||
|
||||
|
||||
|
||||
class Client(object):
|
||||
|
@ -147,7 +147,7 @@ class Client(object):
|
|||
Returns an EncryptedFile object from a file_path and header_path.
|
||||
|
||||
:param bytes file_path: Path of the encrypted file
|
||||
:param bytes
|
||||
:param bytes
|
||||
"""
|
||||
pass
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import sha3
|
||||
|
||||
from nkms.keystore.db import Base
|
||||
from sqlalchemy import Column, Integer, LargeBinary, relationship, ForeignKey
|
||||
from sqlalchemy import Column, Integer, LargeBinary, ForeignKey
|
||||
from sqlalchemy.orm import relationship
|
||||
|
||||
|
||||
class Key(Base):
|
||||
|
|
|
@ -102,7 +102,6 @@ class Policy(object):
|
|||
|
||||
self.alices_signature = alices_signature
|
||||
|
||||
|
||||
class MoreContractsThanKFrags(TypeError):
|
||||
"""
|
||||
Raised when a Policy has been used to generate Contracts with Ursulas in sufficient number
|
||||
|
|
|
@ -2,7 +2,7 @@ import io
|
|||
import os
|
||||
from nkms.storage.header import Header
|
||||
from nkms.storage.constants import NONCE_COUNTER_BYTE_SIZE, PADDING_LENGTH
|
||||
from nkms.crypto import default_algorithm, symmetric_from_algorithm
|
||||
# from nkms.crypto import default_algorithm, symmetric_from_algorithm
|
||||
|
||||
|
||||
class EncryptedFile(object):
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import unittest
|
||||
from nacl.utils import EncryptedMessage
|
||||
from nkms.crypto import _internal
|
||||
from nkms.crypto import api
|
||||
from npre import elliptic_curve as ec
|
||||
from npre import umbral
|
||||
|
|
Loading…
Reference in New Issue