How come you send in NULL and not buf2 to the C_GenerateRandom? See code:
http://www.opensc-project.org/opensc/browser/releases/opensc-0.11.6/src/tools/pkcs11-tool.c#L3005

My application will return CKR_ARGUMENTS_BAD because of this and your test 
program fails.
You never generate random data to buf2 and thereby have no meaning of testing 
this:
  if (memcmp(buf1, buf2, 100) == 0)

// Rickard

Attachment: PGP.sig
Description: PGP signature

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to