Re: [Opendnssec-user] PKCS11Exception: CKR_DATA_LEN_RANGE using softhsm2

2014-12-10 Thread Rickard Bellgrim
On Mon, Dec 8, 2014 at 7:54 PM, Rickard Bellgrim wrote: > We can rewrite the code to calculate the exact number of bytes need when > calling C_EncryptUpdate. > Does it work better after the latest commit? // Rickard ___ Opendnssec-user mailing list Op

Re: [Opendnssec-user] PKCS11Exception: CKR_DATA_LEN_RANGE using softhsm2

2014-12-08 Thread Rickard Bellgrim
On Mon, Dec 8, 2014 at 6:01 PM, roko wrote: > So, I think padding is now supported, but in my application now I have > this exception: > > Caused by: javax.crypto.ShortBufferException > at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:561) > at sun.security.pkcs11.P11Cip

Re: [Opendnssec-user] PKCS11Exception: CKR_DATA_LEN_RANGE using softhsm2

2014-12-08 Thread roko
Hi Rickard Thank you for your interest.  I been following SOFTHSM-107 and I see a push in here (https://github.com/opendnssec/SoftHSMv2/pull/100), I did merge the changes with softhsm-2.0.0b1 and recompile.  If I ask for the module info from java, I get this: Mechanism Name: CKM_AES_CBC_PAD   Mi

Re: [Opendnssec-user] PKCS11Exception: CKR_DATA_LEN_RANGE using softhsm2

2014-12-07 Thread Rickard Bellgrim
On Fri, Dec 5, 2014 at 8:09 AM, Roland van Rijswijk - Deij < roland.vanrijsw...@surfnet.nl> wrote: > Hi Roko, > > roko wrote: > > I'm getting this error: > > Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: > CKR_DATA_LEN_RANGE > > > > Is this maybe a known limitation for softhsm2 ? there i

Re: [Opendnssec-user] PKCS11Exception: CKR_DATA_LEN_RANGE using softhsm2

2014-12-04 Thread Roland van Rijswijk - Deij
Hi Roko, roko wrote: > I'm getting this error: > Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DATA_LEN_RANGE > > Is this maybe a known limitation for softhsm2 ? there is some workaround > ? Thx for your help. I've had a quick look at the code, and this seems to be a bug; C_Encrypt

[Opendnssec-user] PKCS11Exception: CKR_DATA_LEN_RANGE using softhsm2

2014-12-04 Thread roko
Hi all I'm getting this error: Caused by: java.security.ProviderException: update() failed     at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:565)     at sun.security.pkcs11.P11Cipher.engineUpdate(P11Cipher.java:464)     at sun.security.pkcs11.P11Cipher.engineUpdate(P11Ciphe