Witam,
może trochę niszowy temat, ale czy próbował ktoś generowania kluczy na krzywych eliptycznych w C# ?
Problem zapewne leży po stronie parametrów ale ... no właśnie nie widzę błedu. Ktoś spotkał się z czymś takim ?

X9ECParameters x9Ec = NistNamedCurves.GetByName("B-409");
X962Parameters x962 = new X962Parameters (x9Ec)
byte[] paramsBytes = x962.GetDerEncoded(); 

byte[] ckaId = session.GenerateRandom(20); 

List<ObjectAttribute> attributeList = new List <ObjectAttribute>();
attributeList.Add(new ObjectAttribute(CKA.CKA_Private, false); 
attributeList.Add(new ObjectAttribute(CKA.CKA_Label, "LabelTest"); 
attributeList.Add(new ObjectAttribute(CKA.CKA_Id, ckaId ); 
attributeList.Add(new ObjectAttribute(CKA.CKA_VERYFY, true); 
attributeList.Add(new ObjectAttribute(CKA.CKA_ECDSA_PARAMS, paramsBytes); 

List<ObjectAttribute> attributeList2 = new List <ObjectAttribute>();
attributeList2 .Add(new ObjectAttribute(CKA.CKA_Private, true); 
attributeList2 .Add(new ObjectAttribute(CKA.CKA_Label, "LabelTest"); 
attributeList2 .Add(new ObjectAttribute(CKA.CKA_Id, ckaId ); 
attributeList2 .Add(new ObjectAttribute(CKA.CKA_SENSITIVE, true); 
attributeList2 .Add(new ObjectAttribute(CKA.CKA_SIGN, true);