Questions tagged [iaik-jce]

IAIK-JCE is a crypto toolkit which means "Institute for Applied Information Processing and Communication - Java Cryptography Extension"

The IAIK Provider for the Java Cryptography Extension (IAIK-JCE) is a set of APIs and implementations of cryptographic functionality, including hash functions, message authentication codes, symmetric, asymmetric, stream, and block encryption, key and certificate management. It supplements the security functionality of the default JDK.

See also the official homepage.

41 questions
0
votes
1 answer

pkcs11 cmac calculation in java

I am trying to calculate AES-MAC (RFC 4493) with Pkcs11 wrapper in java. and it seems that the hsm sends the last bloc of AES-CBC which is not the expected result. Here is the how I send my PKCS11 request: CK_MECHANISM mec = new…
zero
  • 43
  • 4
0
votes
3 answers

Getting java.security.InvalidKeyException: Key must be 128, 192, or 256 bit long twofish

Following code is written to encrypt the plain text, I am using IAIK Twofish encryption/decryption code in java below sample code works fine with 128 bit key but when i try it with 192 and 156 bit key it gives an exception that …
Dheeraj Singh
  • 109
  • 1
  • 16
0
votes
1 answer

How to resolve java.lang.NoClassDefFoundError: iaik/x509/X509Certificate?

I am using Struts 2.0 for one application and getting the class not found exception: java.lang.NoClassDefFoundError: iaik/x509/X509Certificate After searching some site i found this class is in iaik_jce.jar.Can anyone help me understanding when…
0
votes
1 answer

How to use PKCS#11 CKM_AES_KEY_WRAP mechanism in Java?

I'm working with some PKCS#11 tokens that insist on using CKM_AES_KEY_WRAP for unwrapping AES-encrypted keys. On these tokens, CKM_AES_CBC and friends don't support unwrap. At the other end of this system, I therefore need to wrap a key using a…
Duncan Jones
  • 67,400
  • 29
  • 193
  • 254
0
votes
0 answers

Custom Plugin for browser which interacts with system

I was using applets to use the IAIK cryptography framework to generate PKCS#12 keystore and use it for signing. Now since from JAVA 9 applet support is stopped so now I cannot use applets anymore. Is there any way where I can create custom plugin…
0
votes
0 answers

How to create IAIK keystore?

I want to create an IAIK Keystore. I have iaik_jce_full signed jar. Also, i have full jurisdiction policy jar. When I try to use keytool command in cmd prompt, it gives a null pointer exception at the last stage, after it had asked for all the…
0
votes
0 answers

WAS7 with Axis getting ClassCastException: IBM Crypto's TDCNP incompatible with javax.crypto.CipherSpi

I read that IBM's cryptography modules are incompatible with Sun modules, but I don't know how to force IBM WebSphere (WAS7) to use Sun modules. java.lang.ClassCastException: com.ibm.crypto.provider.TDCNP incompatible with javax.crypto.CipherSpi …
ADTC
  • 8,999
  • 5
  • 68
  • 93
0
votes
1 answer

Exception in Verification Signed Data by IAIK lib

I use IAIK PKCS11 Library. I want to sign and verify data by the certificate on USB token. I problem in Verify Signed data. I Sign plainData by Str_CertName(Certificate). I Use java.security and iaik.pkcs. It is my code: private byte[]…
R.E
  • 107
  • 1
  • 12
0
votes
1 answer

blowfish encryption with iaik pkcs7 EnvelopedData

I am migrating my module from bouncy castle to iaik pkcs7. I need to use blowfish,twofish and idea encryption algorithms in conjunction with iaik.pkcs.pkcs7.EnvelopedDataStream of IAIK library. Idea encryption algorithm Id is present in AlgorithmID…
Atraya
  • 1
  • 2
0
votes
1 answer

How can I set the version number of iaik.x509.X509Certificate explicitly?

The documentation at this page states that Any value may be set using the corresponding set method. However, I am not sure how to interpret this statement. I have tried the following but none of them compile, and nor did I expect them to.…
merlin2011
  • 71,677
  • 44
  • 195
  • 329
-2
votes
1 answer

How to convert iaik.pkcs.pkcs11.objects.GenericSecretKey as java.security key

I want to convert iaik.pkcs.pkcs11.objects.GenericSecretKey(AES) as java.security key.
1 2
3