I'm working with an EMV contactless card to use in our transit toll-
collection equipment.  I'm somewhat familiar with 3DES but so far only
vaguely familiar with RSA/PKI.  The EMV cards require two functions: a
'recovery' function and a hash (SHA-1) function.  I'm assuming in time
I'll be able to figure out how to use CryptoPP for doing the hashing.
But I'm not quite clear on the 'recovery'.  It is defined as
recovering data using a public key modulus 'n'=pq and a public key
exponent 'e' to recover the data 'X' from the signed data 'S' using:

X = Recover(Pk)[S]: = S^e mod n

I'm assuming that's an RSA 'decrypt' using a public key.  I've been
sent two files, one a .sep and the other a .hep and am told they are
the public key.  I'm not sure how to get those into any CryptoPP
function.  While I may initially be getting the key from disk in a
Windows environment, eventually I'll have to port CryptoPP to a
GreenHills compiler to run on an ARM and the key will then be supplied
to me as a byte array in memory.

Obviously I'm at the very beginning of this and just starting to learn
things.  But I'd be surprised if I'm the first person trying to do
this and was hoping someone might have some sample CryptoPP code that
would help me get started with this.  Thanks for any help anyone can
give me!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to