Domanda

I'd like to make an encryption in PKCS#7 format using BouncyCastle, by using the org.bouncycastle.cms package. I need to define the padding and the initial value for encryption, but the classes of cms package don't allow to define this informations,how can i do that?

È stato utile?

Soluzione

RFC 5652 Cryptographic Message Syntax (CMS), Section 14, page 54 states:

Implementations must randomly generate content-encryption keys, message-authentication keys, initialization vectors (IVs), and padding.

Thus, BouncyCastle implementation follows CMS standard.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top