a ûÎòfÈ ã@sDddlmZddlZGdd„deƒZe ej¡Gdd„deƒƒZdS)é)ÚsixNc@s(eZdZdZdd„Zdd„Zdd„ZdS) Ú CryptoResultzB The result of an SDK encryption or decryption operation. cCs||_||_dS)a  Creates a CryptoResult object. :param bytes data: The encrypted or decrypted bytes associated with this CryptoResult. :param dict encryption_context: The encryption_context associated with this CryptoResult. N)Ú_dataÚ_encryption_context)ÚselfÚdataZencryption_context©rú9/usr/lib/python3.9/site-packages/oci/encryption/models.pyÚ__init__ s zCryptoResult.__init__cCs|jS)zt Returns the encrypted or decrypted bytes associated with this CryptoResult. :rtype: bytes )r©rrrr Úget_dataszCryptoResult.get_datacCs|jS)a& Returns the encryption context associated with this CryptoResult. Note that the SDK may internally add keys to the encryption context so the context returned is guaranteed to be a superset of the context passed in but not an exact match. :rtype: dict )rr rrr Úget_encryption_context"s z#CryptoResult.get_encryption_contextN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r r r rrrr r s rc@s:eZdZdZejdd„ƒZejdd„ƒZejdd„ƒZdS) ÚCryptoResultStreamzI The result of an SDK stream encryption or decryption operation. cCsdS)z~ Read up to size bytes from the resulting encrypted or decrypted data and return them. :rtype: bytes Nr)rÚsizerrr Úread3szCryptoResultStream.readcCsdS)aÄ Close this CryptoResultStream and release the internal buffer. Once the CryptoResultStream is closed, any operation on the stream (e.g. reading) will raise a ValueError. As a convenience, it is allowed to call this method more than once; only the first call, however, will have an effect. Note: this does not close the underlying stream that the caller passed in during initialization. :rtype: None Nrr rrr Úclose<s zCryptoResultStream.closecCsdS)a< Returns the encryption context associated with the stream being encrypted or decrypted. Note that the SDK may internally add keys to the encryption context so the context returned is guaranteed to be a superset of the context passed in but not an exact match. :rtype: dict Nrr rrr r Ks z)CryptoResultStream.get_encryption_contextN) rrrrÚabcÚabstractmethodrrr rrrr r.s  r)Z oci._vendorrrÚobjectrZ add_metaclassÚABCMetarrrrr Ús %