3 Feb 03:49
Re: how to get CKA_PRIVATE_EXPONENT attribute from a private key?
weizhong qiang <weizhongqiang <at> gmail.com>
2012-02-03 02:49:42 GMT
2012-02-03 02:49:42 GMT
hi, I solved the problem by generating the key pair with "isPerm" to be PR_FALSE, and then importing the private key using PK11_ImportDERPrivateKeyInfoAndReturnKey. Best Regards, Weizhong Qiang On Jan 31, 2012, at 7:28 AM, weizhong qiang wrote: > hi Robert and others, > See the attachment for more complete test case of generating and reading a key. > I found if I set the "isPerm" parameter to be PR_FALSE (see line 78 of the test case), the private key is not sensitive. > If I set the "isPerm" parameter to be PR_TRUE, then not mater the "IsSensitive" (the next parameter after "isPerm") is PR_TRUE or PR_FALSE, the private key always sensitive. > Is it a feature? > > Thanks and Best Regards, > Weizhong Qiang > > > <test_nssprivatekey.cpp> > > On Jan 28, 2012, at 4:16 PM, weizhong qiang wrote: > >> hi, >> >> On Jan 27, 2012, at 6:52 PM, Robert Relyea wrote: >> >>> On 01/26/2012 11:53 PM, weizhong qiang wrote: >>>> hi,(Continue reading)
RSS Feed