From: Martin P. <Mar...@ia...> - 2009-07-13 07:40:53
|
Simon Mittelberger wrote: > Hello, Hi... Your emails got unfortunately delivered in reverse order you sent them. > i am currently trying to create an EKCertificate, but i get this exception: > > Exception in thread "main" java.lang.RuntimeException: BUG? cannot > convert key to OAEP > at iaik.tc.cert.common.Common.publicRSAtoPublicRSAOAEP(Common.java:352) > at iaik.tc.cert.EKCertificate.create(EKCertificate.java:150) > .... While RSA-OAEP is supported somewhat in standard Java runtime since Java 5, I don't think it is complete enough. So did you initialise the IAIK-JCE library in your program first for full crypto support needed by TCcert? You need to do at least once at the beginning of your program: import iaik.security.provider.IAIK; IAIK.addAsProvider(); HTH, Martin |