Decrypt the cipher text and validate the auth tag if present Args: cipher_text (bytes): Cipher text to decrypt iv (bytes): IV if block mode aad (bytes): Additional Authenticated Data to verify if auth mode tag (bytes): Authentication t
(self, cipher_text, iv=None, aad=None, tag=None)
| 38 | raise NotImplementedError() |
| 39 | |
| 40 | def decrypt(self, cipher_text, iv=None, aad=None, tag=None): |
| 41 | """ |
| 42 | Decrypt the cipher text and validate the auth tag if present |
| 43 | Args: |
| 44 | cipher_text (bytes): Cipher text to decrypt |
| 45 | iv (bytes): IV if block mode |
| 46 | aad (bytes): Additional Authenticated Data to verify if auth mode |
| 47 | tag (bytes): Authentication tag if auth mode |
| 48 | |
| 49 | Returns: |
| 50 | bytes: Decrypted value |
| 51 | """ |
| 52 | raise NotImplementedError() |
| 53 | |
| 54 | def wrap_key(self, key_data): |
| 55 | """ |
no outgoing calls