Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

CMS digital signature with JavaCard

JavaCard Applet Development Related Questions and Answers.
User avatar
lostsiwonlw
Posts: 55
Joined: Fri Jul 31, 2015 9:09 pm
Points :358
Contact:

CMS digital signature with JavaCard

Post by lostsiwonlw » Wed Jan 13, 2016 5:25 am

I want to create a detached digital signature in standard format (CMS / CAdES-EPES).
I create hash from document (SHA-256), get hash algorithm ID and give it all into a message. Detached signature is generated for this message(RSA-512) and sent back. I can verify this signature using pure Java code:

Code: Select all

RSAPublicKey pubK = (RSAPublicKey) cert.getPublicKey();
Signature sig = Signature.getInstance("SHA256withRSA", "BC");
sig.initVerify(pubK);
//load signed file and update sig
...
sig.verify(signedMessage)


Now I need to get CMS(PKCS#7) signature from already signed data. But I don't know how!
Is there any way to get directly a CMS signature from JavaCard?
Searching for meaning...

rena2019
Posts: 68
Joined: Thu Aug 20, 2015 4:16 pm
Points :1790
Contact:

Re: CMS digital signature with JavaCard

Post by rena2019 » Thu Jan 14, 2016 4:01 am

what is the use case of this algorithm?

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 89 guests

JavaCard OS : Disclaimer