KeyPair protectionKeys = context.consumeProtectionKeys();
logger.trace("Encrypting meta file of file '{}' in a hybrid manner.", context.getFile().getName());
HybridEncryptedContent encrypted = H2HEncryptionUtil.encryptHybrid(metaFile, metaFile.getId());
encrypted.setBasedOnKey(metaFile.getVersionKey());
encrypted.generateVersionKey();
Parameters parameters = new Parameters()
.setLocationKey(H2HEncryptionUtil.key2String(metaFile.getId()))
.setContentKey(H2HConstants.META_FILE).setVersionKey(encrypted.getVersionKey())
.setData(encrypted).setProtectionKeys(protectionKeys).setTTL(metaFile.getTimeToLive());