Top "Bouncycastle" questions

Bouncy Castle is a cryptography API providing various cryptography, encryption, and security protocols.

Generating the CSR using BouncyCastle API

I am new to the security side of Java and stumbled across this library called BouncyCastle. But the examples that …

java security certificate bouncycastle
How can I read a BouncyCastle private key PEM file using JCA?

In one of our applications private keys are stored using BouncyCastle's PEMWriter. At the moment I am investigating if we …

java openssl bouncycastle pem jca
ECDSA signature generation using secp256r1 curve and SHA256 algorithm - BouncyCastle

I am trying to generate signature using ECDSA with secp256r1 curve (P256) and SHA256 algorithm for message hash. Also …

java bouncycastle sha256 ecdsa
Bouncycastle DER length IO error:

This is my method: import org.bouncycastle.asn1.ASN1InputStream; import java.io.ByteArrayInputStream; ... public static byte[] toDERBytes(byte[] data) …

java bouncycastle der
Codes to generate a public key in an elliptic curve algorithm using a given private key

I need to implement ECC (Elliptic Curve Cryptography) algorithm using jdk 1.7. I tried using bouncy castle, sunEC, but all of …

java bouncycastle elliptic-curve
how to load the private key from a .der file into java private key object

I'm writing a java program to import private keys from files within the file system and make a private key …

java format bouncycastle pkcs#8
Verify RFC 3161 trusted timestamp

In my build process, I want to include a timestamp from an RFC-3161-compliant TSA. At run time, the code …

digital-signature bouncycastle trust trusted-timestamp rfc3161
How to use Bouncy Castle lightweight API with AES and PBE

I have a block of ciphertext that was created using the JCE algorithim "PBEWithSHA256And256BitAES-CBC-BC". The provider is BouncyCastle. …

java cryptography aes bouncycastle jce
Android Encrypting String using RSA Public key

I am working in a project where I have to encrypt password using RSA public key. I tried many samples …

android encryption rsa bouncycastle spongycastle
How to create Java Key Store (.jks) file with AES encryption

Reading Oracle documentation, I see that by default JKS files are encrypted using PBEWithMD5AndTripleDES. While DES alone makes me …

java cryptography bouncycastle jks