/
lib
/
python3.9
/
site-packages
/
oci
/
encryption
/
__pycache__
/
Upload File
HOME
a ���f� � @ s0 d dl mZmZ d dlmZ G dd� de�ZdS )� )� algorithms�modes)�Enumc @ s2 e Zd ZdZdejejdddddfZd dd�Z dS ) � AlgorithmzS Represents an Algorithm that can be used to encrypt and decrypt payloads. r � � � Nc C s4 || _ || _|| _|| _|| _|| _|| _|| _dS )a6 :param bytes id: (required) Identifier for this algorithm used in serialization :param cryptography.hazmat.primitives.ciphers.CipherAlgorithm algorithm: (required) Encryption algorithm to use. :param cryptography.hazmat.primitives.ciphers.modes.Mode mode: (required) Mode to use. :param int key_len: (required) Length of the key (in bytes). :param int iv_len: (required) Length of the initialization vector (in bytes). :param int tag_len: (optional) Length of the authentication tag (in bytes), if applicable. :param cryptography.hazmat.primitives.padding padding: (optional) Padding to use. :param int block_size: (optional) Size of each block. N)�id� algorithm�mode�key_len�iv_len�tag_len�padding� block_size) �selfr r r r r r r r � r �=/usr/lib/python3.9/site-packages/oci/encryption/algorithms.py�__init__ s $zAlgorithm.__init__)NNN) �__name__� __module__�__qualname__�__doc__r ZAESr ZGCMZAES_256_GCM_IV12_TAG16r r r r r r s � �r N)Z&cryptography.hazmat.primitives.ciphersr r �enumr r r r r r �<module> s