Re: JCA (Mozilla-JSS) Problem in SecretKeySpec for AES

2009-06-04 Thread Glen Beasley
agentma...@hotmail.com wrote: Hi, I am trying to run the following example code for Mozilla-JSS provider but it always gives:"java.security.InvalidKeyException: Key is not the right type for this algorithm" for init function. The same code runs perfectly fine with Sun default provider. I too

Re: JCA (Mozilla-JSS) Problem in SecretKeySpec for AES

2009-06-04 Thread Glen Beasley
agentma...@hotmail.com wrote: Hi, I am trying to run the following example code for Mozilla-JSS provider but it always gives:"java.security.InvalidKeyException: Key is not the right type for this algorithm" for init function. The same code runs perfectly fine with Sun default provider. I too

JCA (Mozilla-JSS) Problem in SecretKeySpec for AES

2009-06-03 Thread agentman97
Hi, I am trying to run the following example code for Mozilla-JSS provider but it always gives:"java.security.InvalidKeyException: Key is not the right type for this algorithm" for init function. The same code runs perfectly fine with Sun default provider. Please let me know if there is anything