Skip to content

Commit

Permalink
interop with OpenSSL indirect POP
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeev-0 committed Sep 10, 2024
1 parent dc86d42 commit fee48a8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,15 +432,15 @@ public static PKIBody generateEncryptedIpCpKupBody(final int bodyType, X509Certi
throws CertificateEncodingException, CMSException {
// encrypt certificate
// KDF2
AlgorithmIdentifier kdfAlgorithm = new AlgorithmIdentifier(
X9ObjectIdentifiers.id_kdf_kdf2,
new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha256, DERNull.INSTANCE));
// AlgorithmIdentifier kdfAlgorithm = new AlgorithmIdentifier(
// X9ObjectIdentifiers.id_kdf_kdf2,
// new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha256, DERNull.INSTANCE));
// KDF3
// AlgorithmIdentifier kdfAlgorithm = new AlgorithmIdentifier(
// X9ObjectIdentifiers.id_kdf_kdf3,
// new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha256, DERNull.INSTANCE));
// SHAKE256
// AlgorithmIdentifier kdfAlgorithm = new AlgorithmIdentifier(NISTObjectIdentifiers.id_shake256);
// SHAKE256
AlgorithmIdentifier kdfAlgorithm = new AlgorithmIdentifier(NISTObjectIdentifiers.id_shake256);

CMSEnvelopedDataGenerator envGen = new CMSEnvelopedDataGenerator();
// Issuer + serialnumber
Expand Down

0 comments on commit fee48a8

Please sign in to comment.