Re: [opensc-devel] PKCS#11 and check parameters for NULL_PTR

2009-12-10 Thread Aktiv Co. Aleksey Samsonov
Hello,
Committed at trunk revision 3891.
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel


[opensc-devel] please update NEWS file

2009-12-10 Thread Andreas Jellinghaus
for all the code changes your do in trunk, please also update the NEWS file 
with a short description of the changes, so we have some minimal 
documentation, and I know what to write in the next release announcement.

Thanks, Andreas
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel


Re: [opensc-devel] PKCS11 signing does not work on Ubuntu

2009-12-10 Thread Douglas E. Engert


Dominik Fischer wrote:
 do you still have that RHEL5 machine? if you had a debug log from it too,
 that could help in seeing what changed. the interesting parts start with
 the first C_Sign line.
 
 Here comes the debug-output from my RHEL5 System.


Without the original command line and the APDUs in the trace,
its hard to tell what is going on. Can you set the debug = 6?

It looks like you are sending foobar\n as the data to be signed.

framework-pkcs15.c:1933:pkcs15_prkey_sign: Selected flags 12. Now computing 
signature for 7 bytes. 512 bytes reserved.

says the flags are RSA_PAD_PKCS1 and RSA_HASH_NONE
So this trace look like you used -m RSA_PKCS1.

Normally the hash of data is signed, not the data itself, as  RAW RSA
has limits on the length of the data.

 
 Regards,
 Dominik
 
 
 
 
 ___
 opensc-devel mailing list
 opensc-devel@lists.opensc-project.org
 http://www.opensc-project.org/mailman/listinfo/opensc-devel

-- 

  Douglas E. Engert  deeng...@anl.gov
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel