bc-java
bc-java copied to clipboard
JceCMSContentEncryptorBuilder with provided key
New feature request: JceCMSContentEncryptorBuilder with provided (not generated) secret key. BC 1.75.
The Javadoc for class CMSEncryptedDataGenerator illustrates using a JceCMSContentEncryptorBuilder. This class generates a new encryption key.
The CMS EncryptedData structure can be used for local storage, where one or more storage keys are re-used. Unlike EnvelopedData, EncryptedData has no intermediate encryption key, and there are no CMS recipients. It would help if the class JceCMSContentEncryptorBuilder accepted a reusable key.