Neprdpokaldam ze niekto bude veditet, ale ak niekto studuje na vyske a venuje sa kryptografii a elektronickemu podpisu, mozno mi bude vediet pomoct .....
Text je v anglictine, lebo pisem na vela for. dikes. ...
Hi
I have a problem with the base interface for the EC algorithm's private and public key implementations
I want to verify my sign array with OpenSSL library (c++) , but I have a problem:
I am using in JavaCard (java): ALG_ECDSA_SHA and for generate keys LENGTH_EC_F2M_163 , ALG_EC_F2M
result for this:
Kód:
private key: 21B,
public key 43B
signDataLenght 48B r,s sequnce
hash diggest is 20B.
and the lenghts are incorrect for OpenSSL, because I have aplication which use library OpenSSL and I am using algorithm:
NID_sect163k1 for Elliptic Curve.
Kód:
#define SN_sect163k1 "sect163k1"
#define NID_sect163k1 721
#define OBJ_sect163k1 OBJ_secg_ellipticCurve,1L
result for OpenSSL for generate keys is:
Kód:
private key: 202B
public key: 43B
sign: 42B r,s sequnce
hash diggest: 20B
sign exam:
http://www.openssl.org/docs/crypto/ecdsa.html
question is: How can I approve my verify and signature in javacard, what i will have to use? Can I use OpenSSL lib ? If yes which algorithm I will have to use in OpenSSL when I use (ALG_EC_F2M, ALG_ECDSA_SHA) in java card ....
Thanks.....