JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

6F00 when instantiating a RSAPublicKey

Algorithm School

Moderator: UNKNwYSHSA

Tinatco
Posts: 12
Joined: Wed Feb 24, 2016 3:04 am
Points :128
Contact:

6F00 when instantiating a RSAPublicKey

Post by Tinatco » Wed Aug 03, 2016 10:37 pm

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);

Tarantino
Posts: 101
Joined: Wed Aug 19, 2015 1:56 am
Points :478
Contact:

Re: 6F00 when instantiating a RSAPublicKey

Post by Tarantino » Fri Aug 05, 2016 1:36 am

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.
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela

rena2019
Posts: 68
Joined: Thu Aug 20, 2015 4:16 pm
Points :1790
Contact:

Re: 6F00 when instantiating a RSAPublicKey

Post by rena2019 » Sun Aug 07, 2016 9:15 am

please use search function before posting questions next time. 6F00 search result: search.php?keywords=6f00

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 60 guests

JavaCard OS : Disclaimer