Questions tagged [bouncycastle]
Bouncy Castle is a cryptography API providing various cryptography, encryption, and security protocols. There are fairly similar libraries in both C# and Java that implement the API. Additionally, Bouncy Castle provides a JCE-compliant crypto provider for Java.
bouncycastle
3,165
questions
0
votes
0
answers
44
views
AES GCM Java BouncyCastle decryption fails second time
Using the below lines of code for Encrypting and Decrypting using BouncyCastle for decrypting data received from a 3rd party source based on C. First encryption and decryption works fine(basis the ...
0
votes
0
answers
58
views
Generating RSA Signature in C# Without CRT Parameters Using System.Security.Cryptography or BouncyCastle
I'm working on a C# application (Framework 4.7.2, Visual Studio 2019, upgrading is not an option) that needs to generate a signature for a given sequence of bytes using RSA. My dataset contains only ...
1
vote
1
answer
125
views
How do I use XSalsa20 and Poly1305 primitives in Bouncycastle for AEAD
I want to use BouncyCastle to immitate the default AEAD scheme of libsodium (X25519 ECDH followed by XSalsa20 symmetric cipher with Poly1305 KDF).
I was able to do the DH with X25519 KeyAgreement to ...
0
votes
1
answer
24
views
The type org.bouncycastle.cms.cmsutils is not visible
I want to subclass some BC classes, in my Java project, but I faced issue with import of CMSUtils class. In order to reproduce issue in a simple project, I created quick-start Maven project (Eclipse ...
0
votes
1
answer
71
views
No RSA/ECB/OAEPPadding on Red Hat 8
I'm not versed in cryptography and am pulling my hair out. I have the following (simplified) setup and code.
Maven setup to use BouncyCastle
<dependency>
<groupId>org.bouncycastle</...
0
votes
1
answer
29
views
Tomcat - Java11 - Unable to present ECDSA certificate during SSL handshake as client
Recently, our organisation migrated one of our Java application codes from Java 8 to Java 11. Now, we are facing one unique issue with our application. Our tomcat server is running into a strange ...
0
votes
1
answer
70
views
java.lang.IllegalArgumentException: Invalid point encoding 0x30
I have a public key, and its corresponded signature, R, S values generated by nodejs (v20.14.0) with the function as below
const { privateKey, publicKey } = crypto.generateKeyPairSync('ec', {
...
0
votes
0
answers
28
views
Spring-Boot HTTPS-server with special SSLContext enabled
I have a standard Spring-Boot 3 app that has configured an embedded webserver (standard Tomcat) with TLS.
pom.xml
...
<dependency>
<groupId>org.springframework.boot</...
-1
votes
0
answers
58
views
Scalar is not in the interval[1, n-1] issue with latest BouncyCastle version 1.78.1
Our application needs a unlimited jce support and we use BouncyCastle as security provider.
We were using BouncyCastle V1.54 earlier and there was no issue, now we are upgrading BouncyCastle to latest ...
-1
votes
0
answers
84
views
java.lang.ClassCastException: class org.bouncycastle.asn1.DLApplicationSpecific cannot be cast to class org.bouncycastle.asn1.ASN1TaggedObject
I am trying to read a file from a samba share. For this I want to use the jcifs-ng lib. Threfore I got the jcifs-ng jar (version 2.1.10) and added it to my build path and wrote the following code:
...
0
votes
0
answers
30
views
Create single jar for a project with Bouncy Castle dependencies that can run on Oracle JRE
I'm making a project that has dependencies (also made by me) that themselves depend on Bouncy Castle, which includes signature files for its jar, and if these are present in the shaded jar, the JVM ...
0
votes
0
answers
92
views
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.bouncycastle.jce.provider.BouncyCastleProvider"
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.bouncycastle.jce.provider.BouncyCastleProvider" on path: DexPathList[***]at dalvik.system.BaseDexClassLoader.findClass(...
0
votes
0
answers
59
views
org.bouncycastle.crypto.fips.FipsOperationError: Module checksum failed: expected
I am using below driver and dependency packages
<dependency>
<groupId>net.snowflake</groupId>
<artifactId>snowflake-jdbc-fips</artifactId>
...
-1
votes
1
answer
94
views
AWS - createCertificateFromCsr - Fail to connect
till now we created a certificate using sdk method IotClient.CreateKeysAndCertificate. And easily manage to connect from the client side with the private key and certificate using iot device sdk
...
-1
votes
0
answers
47
views
unable to encrypt file with pgp public key and recipient as uid string instead of email format using Java bouncy-pgp
I am currently facing issue with applying pgp encryption with public key on text content as string where recipient as UID(916A6C32).
Java code gives exception as :"org.bouncycastle.openpgp....