Reflecting deprecated crypto modules.

pull/161/head
jMyles 2018-02-07 02:11:51 -08:00
parent 0d964ca080
commit 6d2c9e3d7b
5 changed files with 7 additions and 8 deletions

View File

@ -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

View File

@ -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):

View File

@ -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

View File

@ -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):

View File

@ -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