Page 1 of 1

6F00 when instantiating a RSAPublicKey

Posted: Wed Aug 03, 2016 10:37 pm
by Tinatco
Hi,

I am stuck in a problem recently. When I tried to use the code below to instantiate a RSAPublicKey from javacard. It returned error code 0x 6F 00. Pls help me out.

Code: Select all

publicKey = (RSAPublicKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_PUBLIC, KeyBuilder.LENGTH_RSA_1024, false);

Re: 6F00 when instantiating a RSAPublicKey

Posted: Fri Aug 05, 2016 1:36 am
by Tarantino
0x6F00 means that there is an un-handled exception in your code.

Wrap the line of code in a try/catch. It will throw a CryptoException and you can call getReason() to find out what's wrong.

Re: 6F00 when instantiating a RSAPublicKey

Posted: Sun Aug 07, 2016 9:15 am
by rena2019
please use search function before posting questions next time. 6F00 search result: search.php?keywords=6f00