JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
generate RSA public and private key
-
- Posts: 25
- Joined: Mon Nov 30, 2015 3:40 am
- Points :178
- Contact:
generate RSA public and private key
When I generated RSA public and private key by KeyPair(KeyPair.ALG_RSA, KeyBuilder.LENGTH_RSA_1024) , I got 6F 00.
But when I used KeyPair(KeyPair.ALG_RSA_CRT, KeyBuilder.LENGTH_RSA_1024) , it can be successfull. I have no idea about why this happened. Hope anyone help me find the reason. Thanks a lot
But when I used KeyPair(KeyPair.ALG_RSA_CRT, KeyBuilder.LENGTH_RSA_1024) , it can be successfull. I have no idea about why this happened. Hope anyone help me find the reason. Thanks a lot
Re: generate RSA public and private key
The reason that you got 6F 00 is because there is un-handled exception in your code. Use try/catch statements to catch exception and find out exception reason.
Moreover, it turns out that ALG_RSA_CRT is the same as ALG_RSA, so if there is something wrong with ALG_RSA, just use ALG_RSA_CRT.
Moreover, it turns out that ALG_RSA_CRT is the same as ALG_RSA, so if there is something wrong with ALG_RSA, just use ALG_RSA_CRT.
Re: generate RSA public and private key
what? ALG_RSA_CRT is the same as ALG_RSA?corleoner wrote:Moreover, it turns out that ALG_RSA_CRT is the same as ALG_RSA, so if there is something wrong with ALG_RSA, just use ALG_RSA_CRT.
Re: generate RSA public and private key
rena2019 wrote:what? ALG_RSA_CRT is the same as ALG_RSA?corleoner wrote:Moreover, it turns out that ALG_RSA_CRT is the same as ALG_RSA, so if there is something wrong with ALG_RSA, just use ALG_RSA_CRT.
Well.. Isn't that so? If I said something wrong or misunderstood something, please correct me. thanks
Who is online
Users browsing this forum: No registered users and 59 guests