Aktiv Co. Aleksey Samsonov:
> or
> 1. no for the present and to try further (that'll do
> CKR_TEMPLATE_INCOMPLETE, CKR_OK and etc)

Incidentally:

CK_MECHANISM gostMech = { CKM_GOSTR3410_KEY_PAIR_GEN, NULL, 0 };
...
C_GenerateKeyPair(hSession, &gostMech, NULL_PTR, 0, NULL_PTR, 0, 
&hPubKey, &hPrvKey);
-> CKR_OK

$ pkcs15-tool -D
...
Private RSA Key [Private Key]
         Com. Flags  : 3
         Usage       : [0x4], sign
         Access Flags: [0x1D], sensitive, alwaysSensitive, neverExtract, 
local
         ModLength   : 1024
         Key ref     : 1
         Native      : yes
         Path        : 3f001000100060020001
         Auth ID     : 02
         ID          : 45

Public RSA Key [Private Key]
         Com. Flags  : 2
         Usage       : [0x4], sign
         Access Flags: [0x0]
         ModLength   : 1024
         Key ref     : 0
         Native      : no
         Path        : 3f0050000245
         Auth ID     :
         ID          : 45
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to