开发者

Generate keys on smartcard with given exponent

开发者 https://www.devze.com 2023-02-05 02:08 出处:网络
I am generating keys on a smartcard with OpenSC. Is it possible to specify a certain exponent to use? Currently I am calling sc_pkcs15init_generate_key() to generate the key pair. But I did not find a

I am generating keys on a smartcard with OpenSC. Is it possible to specify a certain exponent to use? Currently I am calling sc_pkcs15init_generate_key() to generate the key pair. But I did not find a way to set the exponent. I am aware, that it is possible to generate the key with a given exponent on the PC, but I do not want to do t开发者_开发知识库hat for security reasons.


  • Not all smart cards are happy with the exponents you'd like to use, even when importing existing keys.
  • There is no uniform way of passing in the exponent for the newly generated key in OpenSC, AFAIK/AFAIS.
0

精彩评论

暂无评论...
验证码 换一张
取 消