jce Questions

3

Solved

Is it possible to convert a PKCS#8 encoded RSA private key into PKCS#1? I know this can be done easily via openssl, but can it be done in Java?
Demagoguery asked 11/3, 2011 at 9:34

2

We have our custom JCE security provider that is using our smart cards to do the crypto operations. We have a problem when we try to use certain classes like Cipher, KeyAgreement, KeyGenerator, M...
Rountree asked 9/6, 2017 at 6:34

1

During installation of Eclipse (using Eclipse Installer) I get asked "Do you trust these certificates?", listing two certificates for Bouncy Castle (one signed by Sun, one by Oracle) and one certif...
Chopstick asked 19/2, 2019 at 22:41

1

I'm having thar error when consuming an https webservice. I have that error when running a client in Java 6. I can't change the version of the Jdk. I tried with jdk8 and it works perfectly. What co...
Meg asked 4/9, 2020 at 14:48

6

Solved

I have a test which runs great on my development MacBook Pro, but fails to run in continuous integration TeamCity server. The error is following: java.security.InvalidKeyException: Illegal key si...
Suetonius asked 5/10, 2010 at 10:31

5

We have configured a Java product to use only FIPS-validated RSA JCE crypto providers. However, the product won't work when only the RSA libraries are listed in java.security. Therefore, something ...
Applause asked 23/5, 2011 at 18:53

5

Solved

I was trying to encrypt data using AES algorithm. However, with the following exception has occurred. java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES/ECB/PKCS7PADD...
Solange asked 17/4, 2012 at 14:51

2

Solved

Currently running OSX El Capitan on a recently set up computer. I'm trying to set up Java's unlimited crypto policy which requires me to modify some files within my current jre, but I can't find th...
Condolent asked 29/6, 2016 at 19:56

5

Solved

Look at the following line of java: Mac.getInstance("HmacSHA1"); If I put this in a simple test program, it runs without problems on my server. However, if I use this line in a container, I get ...
Trachyte asked 18/5, 2010 at 10:11

1

We have some Java library performing AES and RSA encryptions (using javax.crypto.Cipher). A new requirement came in to make the code FIPS 140-2 compliant. Reading some articles what I understood is...
Keyboard asked 27/4, 2021 at 1:20

5

Solved

Sun's PKCS11 JCE security provider is lacking some functionality we need. So I wrote an enhanced version of it using the original sources. Unfortunately the JCE infrastructure rejects the new prov...
Upali asked 18/11, 2009 at 15:30

3

Solved

I’m starting the development of an Android App using ECC Cryptography. I have seen that Android embeds some Cryptography (defined here https://developer.android.com/guide/topics/security/cryptograp...
Administrate asked 11/7, 2018 at 8:3

1

Solved

Until Java 8, it was neccessary to download and install JCE in the JDK in order to use it. I do not find a downloadable extension for Java 11. Is there a way to check if it is configured by d...
Amylolysis asked 10/7, 2020 at 20:4

2

Solved

I need a fixed length 64 Byte ECDSA signature with the NIST P-256 Curve. The implementation hast to use JCE. The following code sample can generate a signature and verify it. Provider provSign =...
Trilbi asked 3/12, 2015 at 10:37

5

Solved

The jar (bcprov-jdk16-145.jar) has been added to the project, Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()) has been added to the class, and BouncyCastleProvider.PR...
Filth asked 14/9, 2010 at 18:20

1

I'm running into an issue identical to Command line Jasypt client encryption 'Operation not possible' however that post is for a much older version of Java. I've checked the path listed fo...
Admiration asked 16/1, 2020 at 20:40

9

Solved

By looking around here as well as the internet in general, I have found Bouncy Castle. I want to use Bouncy Castle (or some other freely available utility) to generate a SHA-256 Hash of a String in...
Salangia asked 23/6, 2010 at 16:41

1

Java Cryptography Extension (JCE) can be found here, but that page says Current versions of the JDK do not require these policy files. They are provided here for use with older version of the JD...
Plastid asked 31/7, 2019 at 13:28

6

Solved

I understand that the keystore would usually hold private/public keys and the trust store only public keys (and represents the list of trusted parties you intend to communicate with). Well, that's ...
Skate asked 14/6, 2011 at 8:23

2

Solved

I am trying to debug an issue with bouncy castle 1.47. I can find a debug jar for 'bcprov' but not for {org.bouncycastle:bcpkix-jdk15on:1.47:jar}. Is there any other place to download bcpkix-jdk15...
Missy asked 15/10, 2012 at 10:55

1

Solved

My application is acting as a switchboard to transfer very sensitive messages between two parties and I'm trying to figure out how I can do this without "looking" at the message they're trying to s...
Ordain asked 30/7, 2019 at 6:10

3

I am getting the following exception when I try to open JCEKS type key store with with Oracle Java 8 JRE 172 on Windows. This worked fine with earlier versions of the JRE: INFO: ObjectInputFilter ...
Abnaki asked 17/5, 2018 at 14:6

5

Solved

I am now on making RSA message authentication software. The process is as follows: Sign the message by using A's private key (1024 bit) Verify the message by using A's public key (1024 bit) The...
Wacker asked 16/8, 2013 at 17:54

2

I thought it was simple where JCA was a replacement for JCE. However writing some test code to get all the providers on my system showed this isn't the case. I noticed the following: Some algor...
Arsphenamine asked 9/1, 2014 at 19:36

3

Solved

I'm trying to securely store a password in a database and for that I chose to store its hash generated using the PBKDF2 function. I want to do this using the bouncy castle library but I don't know ...
Salesperson asked 29/12, 2011 at 22:2

© 2022 - 2024 — McMap. All rights reserved.