def _dict_to_encryption_data(encryption_data_dict):
try:<EOL><INDENT>if encryption_data_dict['<STR_LIT>']['<STR_LIT>'] != _ENCRYPTION_PROTOCOL_V1:<EOL><INDENT>raise ValueError(_ERROR_UNSUPPORTED_ENCRYPTION_VERSION)<EOL><DEDENT><DEDENT>except KeyError:<EOL><INDENT>raise ValueError(_ERROR_UNSUPPORTED_ENCRYPTION_VERSION)<EOL><DEDENT>wrapped_content_key = encryption_data_dict['<STR_LIT>']<EOL>wrapped_content_key = _WrappedContentKey(wrapped_content_key['<STR_LIT>'],<EOL>_decode_base64_to_bytes(wrapped_content_key['<STR_LIT>']),<EOL>wrapped_content_key['<STR_LIT>'])<EOL>encryption_agent = encryption_data_dict['<STR_LIT>']<EOL>encryption_agent = _EncryptionAgent(encryption_agent['<STR_LIT>'],<EOL>encryption_agent['<STR_LIT>'])<EOL>if '<STR_LIT>' in encryption_data_dict:<EOL><INDENT>key_wrapping_metadata = encryption_data_dict['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>key_wrapping_metadata = None<EOL><DEDENT>encryption_data = _EncryptionData(_decode_base64_to_bytes(encryption_data_dict['<STR_LIT>']),<EOL>encryption_agent,<EOL>wrapped_content_key,<EOL>key_wrapping_metadata)<EOL>return encryption_data<EOL>
Converts the specified dictionary to an EncryptionData object for
eventual use in decryption.

:param dict encryption_data_dict:
    The dictionary containing the encryption data.
:return: an _EncryptionData object built from the dictionary.
:rtype: _EncryptionData