Adds EncryptedBlob unittests

This commit is contained in:
Sergi Delgado Segura
2019-10-07 16:53:32 +01:00
parent 10656c5955
commit 8403f871ca
2 changed files with 43 additions and 0 deletions

View File

@@ -5,6 +5,8 @@ from cryptography.hazmat.primitives.ciphers.aead import AESGCM
from pisa import logging
# FIXME: EncryptedBlob is assuming AESGCM. A cipher field should be part of the object and the decryption should be
# performed depending on the cipher.
class EncryptedBlob:
def __init__(self, data):
self.data = data