def _generate_encryption_data_dict(kek, cek, iv):
<EOL>wrapped_cek = kek.wrap_key(cek)<EOL>wrapped_content_key = OrderedDict()<EOL>wrapped_content_key['<STR_LIT>'] = kek.get_kid()<EOL>wrapped_content_key['<STR_LIT>'] = _encode_base64(wrapped_cek)<EOL>wrapped_content_key['<STR_LIT>'] = kek.get_key_wrap_algorithm()<EOL>encryption_agent = OrderedDict()<EOL>encryption_agent['<STR_LIT>'] = _ENCRYPTION_PROTOCOL_V1<EOL>encryption_agent['<STR_LIT>'] = _EncryptionAlgorithm.AES_CBC_256<EOL>encryption_data_dict = OrderedDict()<EOL>encryption_data_dict['<STR_LIT>'] = wrapped_content_key<EOL>encryption_data_dict['<STR_LIT>'] = encryption_agent<EOL>encryption_data_dict['<STR_LIT>'] = _encode_base64(iv)<EOL>encryption_data_dict['<STR_LIT>'] = {'<STR_LIT>': '<STR_LIT>' + __version__}<EOL>return encryption_data_dict<EOL>
Generates and returns the encryption metadata as a dict.

:param object kek: The key encryption key. See calling functions for more information.
:param bytes cek: The content encryption key.
:param bytes iv: The initialization vector.
:return: A dict containing all the encryption metadata.
:rtype: dict