Announce two new product: SmartCard Reader Rockey200 and USB2.0 Extension Cable

ROCKEY 200 is a handy and portable USB Smart Card reader that can perform read/write operations on any ISO 7816-1/2/3/4 smart cards which are compatible with protocol T=0 and T=1.

USB2.0 Extension Cable With high speed USB 2.0 devices such as USB token ,USB Card Reader and so on.

Come to try it now!

Elliptic Curve Cryptography

Algorithm School

Moderator: UNKNwYSHSA

Benli
Posts: 9
Joined: Tue May 03, 2016 3:40 am
Points: 128
Contact:

Elliptic Curve Cryptography

Postby Benli » Wed Feb 01, 2017 6:52 pm

I have two questions about Elliptic Curve Cryptography(ECC).

Code: Select all

private KeyPair keyPairA;
private KeyPair keyPairB;

keyPairA = KeyPair(KeyPair.ALG_EC_F2M,KeyBuilder.LENGTH_EC_F2M_113);
keyPairB = KeyPair(KeyPair.ALG_EC_FP,KeyBuilder.LENGTH_EC_FP_112);


Could anyone tell me what is the difference between ALG_EC_F2M and ALG_EC_FP ?
And is the second parameter the length of private key or public key?

JCaberham
Posts: 24
Joined: Mon Nov 30, 2015 3:02 am
Points: 188
Contact:

Re: Elliptic Curve Cryptography

Postby JCaberham » Thu Feb 02, 2017 5:56 am

It's recommended to check JavaCard API documentfirstly.You will find the basic introduction about these.
public static final byte ALG_EC_F2M: KeyPair object containing an EC key pair for EC operations over fields of characteristic 2 with polynomial basis.

public static final byte ALG_EC_FP: KeyPair object containing an EC key pair for EC operations over large prime fields


Return to “Algorithm School”

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer