On Thursday 24 May 2007 15:12:34 Robin Bryce wrote: > Was not sure whether this should be a ticket on the opensc trac or the > libp11 trac.
this is libp11 code, so the libp11 trac is prefered. > Thought I'd raise it here instead. I believe the current > implementation of PKCS11_sign is broken. It should propogate the > callers "guess" of signature size to the underlying p11 > implementation. AIUI: Setting sigsize==0 is *how* applications are > supposed to obtain the required size from the implementation. Current > code forces it to the result of PKCS11_get_key_size. I don't > understand how this could ever be the "right thing" to do - what am I > missing ? not sure either. if you want I can apply your patch so we can try to find out. maybe we added strang code to work around bugs in other code, not sure. sorry, I'm quite busy at the moment and won't have net for a few days (moving...). Regards, Andreas _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel