List Info

Thread: 2048 bit rsa problem




2048 bit rsa problem
user name
2006-11-14 22:27:11
Andreas Jellinghaus wrote:
> Nils Larsch wrote:
>> the code in apdu.c should do this automatically
unless you explicitly
>> disable this (but perhaps it would be useful if the
iso get_response
>> implementation would respect the reader limits).
> 
> that code doesn't look at max_send/recv_size. if the
card tells us
> it has 256 bytes, the code tries to get it in one big
packet. so
> we need to change the code there? or did I misread it?

IMHO we need to change the iso get_response() implementation

> 
> (apdu.c around line 473, le is set to 256 bytes and
never reduced
> before get_response is called)

this is not problem as get_response() can read less, the
code in
apdu.c should try to call get_response() until everything is
read.

Does the attached patch help ?

Cheers,
Nils

PS: Perhaps we should put max_recv_size in sc_reader_t as
this is
     a property of the reader ...
_______________________________________________
opensc-devel mailing list
opensc-devellists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc
-devel
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )