Hi,

On Wednesday, 23. May 2012, Nguyễn Hồng Quân wrote:
> Or the layout with PKCS15-AppDF is mandatory from the pkcs15 view?
The string 5015 does not occur in the PKCS#15 specs 
ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-15/pkcs-15v1_1.pdf

So, in my opinion it does not seem to be required.
But I'd like to have more confirmation for that opinion.
Can anyone corrobate this assumtion?
Viktor, Martin?

Nevertheless it is hard-coded in
* src/libopensc/pkcs15.c: sc_pkcs15_bind_internal()
* src/tools/pkcs15-init.c: do_assert_pristine()

> If yes, I will consider to change the emulated file system layout in the
> OpenPGP driver.
If it is not requested in the specs, I ocnsider relying on it an error
which should be fixed in the files I mentioned above.

In my opinion, removing false assumptions from opensc's code would make it
more standards compliant, while changing the emulated file structure in
card-openpgp.c would only be a kludge fro this special case.

> @Peter Marschall: You and me are working on OpenPGP. How do u think
> about changing the emulated file layout. How should I do to not break
> too much the code base?
I'd rather not change the openpgp file layout unless it is absolutely required 
by the PKCS#15 spec.

> > If you are going to use the common pkcs15 and pkcs15init framework ,
> > you have to fill at least the 'write' hadle with the meanigfull actions .
> > https://github.com/hongquan/OpenSC-OpenPGP/blob/openpgp/src/libopensc/car
> > d-openpgp.c#L827 Inside this handle the 'PUT DATA'  or else can be used
> > -- it's doesn't matter.
Not thinking about that yet - first we need to find out whether 5015 is required
by PKCS#15

Best

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

Reply via email to