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

Implement secret key protection using AEAD

Open vanitasvitae opened this issue 8 months ago • 1 comments

This PR is based on - and blocked by - #1699

Here, I added two new classes, BcAEADSecretKeyEncryptorBuilder and JcaAEADSecretKeyEncryptorBuilder, which can both be used to AEAD-encrypt PGP secret keys.

First I tried to implement AEAD protection into the existing PBESecretKeyEncryptorBuilder classes, but that turned out to result in ugly code. Let me know what you think of my approach.

vanitasvitae avatar Jun 11 '24 15:06 vanitasvitae