Peter Koch opensc-project.org> writes:
>
> With TCOS cards and 1024 bit keys your padding must be at least 11 bytes.
> PKCS#1-padding will add another 3 bytes, i.e.
>
> 00 00
>
> Hence your data must contain no more than 128-11-3=114 bytes. If it
> does not, then TCOS will respond with 698
That isn't the read function.
Index: src/libopensc/card.c
===
--- src/libopensc/card.c (revision 3263)
+++ src/libopensc/card.c (working copy)
@@ -454,7 +454,7 @@
r = sc_write_binary(card, idx, p, n, flags);
if (r < 0) {
On Monday 03 September 2007 14:58:34 Gürer Özen wrote:
> That isn't the read function.
thanks, commited.
Andreas
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel
can anyone fill in how these things can be done?
not sure if all cards allow them or if we have the proper
code needed for this, but adding functions where possible
would be nice.
1.) change the pin
pkcs15-tool --change-pin
2.) reset the pin using puk
pkcs15-tool --unblock-pin
3.) change the puk