I have done migrating project from itext2.1.7.jar to itext5.5.13.jar but While testing the pdf which are having signatures am getting the below error: java.lang.NoSuchMethodError: org.bouncycastle.asn1.x509.GeneralName.getDERObject() This is the method where I am getting error: In my class path I have placed: 1.bcprov-jdk15on-1.49.jar 2.bcpkix-jdk15on-1.49.jar 3.itextpdf-5.5.13.jar BouncyCastle libs I have added according the pom.xml which I got while downloading itextpdf. This project
Tag: bouncycastle
Encryption/Decryption with bouncycastle-java and RSAES-OAEP
I am not an expert with encryption, but i am trying to create an CMSEnvelopedDataGenerator with bouncycastle 1.67, where the session key is encrypted with RSAES-OAEP (1.2.840.113549.1.1.7) For now my …
Loading pkcs12 file with BouncyCastle fails on unknown PRF algorithm (hmacWithSHA256)
we have a certificate in a pkcs#12 format provided by a 3rd party (not managed by us). We must sign emails with this certificate before sending them to this specific customer from our platform. There were no issues with the old certificate, but as it is about to expire we need to replace it by a newer one, which has
How to selectively use approved-only mode with BouncyCastle JSSE provider + FIPS provider?
In a small piece of sample code running on Java 8, I’m trying to follow the advice from the bc-fips-1.0.2.jar user guide, Legion of the Bouncy Castle Inc. BC-FJA 1.0.2 (Bouncy Castle FIPS Java API) …
Is there a way to encrypt/decrypt using Bouncy Castle without using compression
I’m looking for a way to encrypt/decrypt files/byte arrays without calling compression of input. To be more precises don’t want to use something like ByteArrayOutputStream bOut = new …