mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 14:44:21 +01:00
Fixes typo: cyphers -> ciphers
This commit is contained in:
@@ -5,9 +5,9 @@ from conf import SUPPORTED_HASH_FUNCTIONS, SUPPORTED_CIPHERS
|
|||||||
|
|
||||||
|
|
||||||
class Blob:
|
class Blob:
|
||||||
def __init__(self, data, cypher, hash_function):
|
def __init__(self, data, cipher, hash_function):
|
||||||
self.data = data
|
self.data = data
|
||||||
self.cypher = cypher
|
self.cipher = cipher
|
||||||
self.hash_function = hash_function
|
self.hash_function = hash_function
|
||||||
|
|
||||||
# FIXME: We only support SHA256 for now
|
# FIXME: We only support SHA256 for now
|
||||||
@@ -15,9 +15,9 @@ class Blob:
|
|||||||
raise Exception("Hash function not supported ({}). Supported Hash functions: {}"
|
raise Exception("Hash function not supported ({}). Supported Hash functions: {}"
|
||||||
.format(self.hash_function, SUPPORTED_HASH_FUNCTIONS))
|
.format(self.hash_function, SUPPORTED_HASH_FUNCTIONS))
|
||||||
|
|
||||||
# FIXME: We only support SHA256 for now
|
# FIXME: We only support AES-GCM-128 for now
|
||||||
if self.cypher.upper() not in SUPPORTED_CIPHERS:
|
if self.cipher.upper() not in SUPPORTED_CIPHERS:
|
||||||
raise Exception("Cypher not supported ({}). Supported cyphers: {}".format(self.hash_function,
|
raise Exception("Cipher not supported ({}). Supported ciphers: {}".format(self.hash_function,
|
||||||
SUPPORTED_CIPHERS))
|
SUPPORTED_CIPHERS))
|
||||||
|
|
||||||
def encrypt(self, tx_id, debug, logging):
|
def encrypt(self, tx_id, debug, logging):
|
||||||
|
|||||||
Reference in New Issue
Block a user