Re: [Opendnssec-user] proper C_FindObjectsInit

2014-01-20 Thread Rickard Bellgrim
{CKA_LABEL, (void *)card_data, sizeof(card_data -1) }, Maybe just a typo in the email, but the -1 should be outside the parentheses. i compute 6 elements total, But then in the C_FindObjectsInit, i pass ulCount - 1 and i get no matches. should i be doing * rv =

Re: [Opendnssec-user] Key Wrapping with SUNPKCS11 and SoftHSM

2014-01-20 Thread Rickard Bellgrim
I get an error statingjava.security.InvalidKeyException: No installed provider supports this key: sun.security.pkcs11.P11Key$P11RSAPublicKey at javax.crypto.Cipher.chooseProvider(Cipher.java:878) at javax.crypto.Cipher.init(Cipher.java:1213) at javax.crypto.Cipher.init(Cipher.java:1153) at

Re: [Opendnssec-user] Key Wrapping with SUNPKCS11 and SoftHSM

2014-01-20 Thread Sitaraman Vilayannur
Thanks Rickard, I am using Version 1 will try with version 2. Sitaraman On Mon, Jan 20, 2014 at 3:45 PM, Rickard Bellgrim rick...@opendnssec.orgwrote: I get an error statingjava.security.InvalidKeyException: No installed provider supports this key: sun.security.pkcs11.P11Key$P11RSAPublicKey

Re: [Opendnssec-user] proper C_FindObjectsInit

2014-01-20 Thread Jack Craig
The spectre of hindsight revelation is blinding! Thank you So much! It makes perfect sense now, ... On Mon, Jan 20, 2014 at 2:12 AM, Rickard Bellgrim rick...@opendnssec.orgwrote: {CKA_LABEL, (void *)card_data, sizeof(card_data -1) }, Maybe just a typo in the email, but the -1