Re: [opensc-devel] Strange issue in framework-pkcs15.c / pkcs15_gen_keypair

2012-09-25 Thread Viktor Tarasov
Hi, On Tue, Sep 25, 2012 at 4:39 PM, Andreas Schwier < andreas.schw...@cardcontact.de> wrote: > Hi Douglas, > > the same problem exists for RSA keys. If you specify an invalid key > size, the code tries to generate invalid objects. > > Our fix ist at > > > https://github.com/CardContact/OpenSC/co

Re: [opensc-devel] Strange issue in framework-pkcs15.c / pkcs15_gen_keypair

2012-09-25 Thread Andreas Schwier
Hi Douglas, the same problem exists for RSA keys. If you specify an invalid key size, the code tries to generate invalid objects. Our fix ist at https://github.com/CardContact/OpenSC/commit/a9682fd704dca5abc028b32e5ec577aa1c12ee78 Andreas Am 25.09.2012 16:31, schrieb Douglas E. Engert: > > On

Re: [opensc-devel] Strange issue in framework-pkcs15.c / pkcs15_gen_keypair

2012-09-25 Thread Douglas E. Engert
On 9/25/2012 5:01 AM, Andreas Schwier (ML) wrote: > Dear all, > > we've come a across a strange issue in OpenSC. When we try to generate a > key pair with parameters not supported by the card, then the framework > code still tries to allocate private/public key objects rather than > returning an

[opensc-devel] Strange issue in framework-pkcs15.c / pkcs15_gen_keypair

2012-09-25 Thread Andreas Schwier (ML)
Dear all, we've come a across a strange issue in OpenSC. When we try to generate a key pair with parameters not supported by the card, then the framework code still tries to allocate private/public key objects rather than returning an error code. The questionable code is in line 2675 of framework