Hello,

Weitao Sun wrote:
> The plicy we alloc new ID is, picking a number in range from 
> DEFAULT_ID(0x45) to 0xFF, if there is no object using it.
> Thus the ID is 0x45 because the key is the first object. We
> determine the path of the public key using object ID and template
> defined in card's specific dot profile file. For example, for
> entersafe cards, the path is 0x3048 ( that is 0x3003 defined in
> profile plus 0x45 the object ID).

..

> 5.Now give the public key a path, 0x3003 plus 0x45 the result 
> is........WOW.. the path for public key of KEYPAIR_B is 0x3048,
> again. The two paths are the same now for public key of KEYPAIR_A
> and KEYPAIR_B.
> We are in hell.

One solution would be to move/rename the public key when the ID of
the key is changed, but I am not sure that all cards support that
operation. We could fake it by creating a new file and removing the
old one of course.


//Peter
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to