Page 1 of 1

Get 0X6F00 with KeyPair(KeyPair.ALG_EC_FP,length)

Posted: Wed Mar 08, 2017 10:44 pm
by Vlidda
I am stuck in a problem now. When I use KeyPair(KeyPair.ALG_EC_FP,length), it returns status word "0X6F00" ( unknown error ). Does it mean that my card doesn't support ECC? Or anything else?

Re: Get 0X6F00 with KeyPair(KeyPair.ALG_EC_FP,length)

Posted: Thu Mar 09, 2017 2:27 am
by Lehrling81
It's more likely that your java card doesn't support the algorithm.

Re: Get 0X6F00 with KeyPair(KeyPair.ALG_EC_FP,length)

Posted: Thu Mar 09, 2017 5:30 am
by Tazmania09
You can use try..catch statement to get reason codes.

Code: Select all

try{
  ....genKeyPair()
}
catch( CryptoException e ) {
        CryptoException.throwIt( e.getReason )
}