Re: Using RSA in JSS to encrypt/decrypt data

2008-04-04 Thread Dean
Hi Glen, Thanks for your reply. I was afraid of that. I can understand not bothering to expose the RSA crypto APIs in JSS ... especially as it would mean some reworking of the Cipher implementation to accept keys other than SecretKey. I see that the NSS libraries do have APIs that should work.

Re: Using RSA in JSS to encrypt/decrypt data

2008-04-03 Thread Glen Beasley
Dean wrote: > Hi folks, > > I've been trying to use the JSS APIs to encrypt and decrypt data using > an RSA Cipher JSS supports RSA for signing (and signature verification) and for wrapping and unwrapping keys (encrypting and decrypting keys), but not for encrypting or encrypting of data. JSS on

Using RSA in JSS to encrypt/decrypt data

2008-04-01 Thread Dean
Hi folks, I've been trying to use the JSS APIs to encrypt and decrypt data using an RSA Cipher but I keep getting an InvalidKeyException. Invalid key type: org.mozilla.jss.pkcs11.PK11RSAPublicKey. I have a sample that works with our own JCE provider and the JCE provider from Bouncy Castle. I've