bc-java icon indicating copy to clipboard operation
bc-java copied to clipboard

JceCMSContentEncryptorBuilder with provided key

Open stevemit opened this issue 1 year ago • 0 comments

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.

stevemit avatar Oct 18 '23 13:10 stevemit