Hello, Please, pay attention to (lest there be any doubt): 1. src/libopensc/pkcs15-prkey.c:89: static const struct sc_asn1_entry c_asn1_prkey[] = { { "privateRSAKey", SC_ASN1_PKCS15_OBJECT, SC_ASN1_TAG_SEQUENCE | SC_ASN1_CONS, SC_ASN1_OPTIONAL, NULL, NULL }, { "privateDSAKey", SC_ASN1_PKCS15_OBJECT, 2 | SC_ASN1_CTX | SC_ASN1_CONS, SC_ASN1_OPTIONAL, NULL, NULL }, { "privateGOSTR3410Key", SC_ASN1_PKCS15_OBJECT, 3 | SC_ASN1_CTX | SC_ASN1_CONS, SC_ASN1_OPTIONAL, NULL, NULL }, { NULL, 0, 0, 0, NULL, NULL } };
Is this tag (3 | SC_ASN1_CTX | SC_ASN1_CONS) permit/correct? 2. src/pkcs11/openssl.c:103: sc_pkcs11_register_openssl_mechanisms(struct sc_pkcs11_card *card) { #if OPENSSL_VERSION_NUMBER >= 0x10000000L /* FIXME: see openssl-1.0.0-beta3/engines/ccgost/README.gost */ OPENSSL_config(NULL); #endif Is this the problem? And also, I set the correct value CKA_GOSTR3410PARAMS in next patch. Thanks Aktiv Co. Aleksey Samsonov: > Hello! > I propose a patch for add GOST R 34.10-2001 algorithm (only PKCS#11 for > the present). PKCS#11 and GOST: > ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-30/pkcs-11v2-30m1-d7.pdf > This patch is first step. If it OK, I'll do: > - cleanup code > - add support to tools (pkcs15-init pkcs15-tool pkcs11-tool) > - add off-card GOSTR3410 keypair generation > - add GOST R 34.11-94 (CKM_GOSTR3410) > Patch for trunk revision 3743 attached. Could you please add it? > Thanks _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel