Re: [opensc-devel] PKCS15init profile to omit a part of path

2012-05-27 Thread Peter Stuge
Martin Paljak wrote: Maybe it would be better to have a single sticky pkcs15-ish mapping for a fixed profile card in a single location (like the pkcs15 emulation drivers) and allow pkcs15-tool (which does not try to create any PKCS#15 structures) to re-generate exposed key slots and replace

Re: [opensc-devel] PKCS15init profile to omit a part of path

2012-05-27 Thread Peter Stuge
Nguyễn Hồng Quân wrote: I'm starting from the current codebase, which uses a emulation layer, so I don't know other choice than continue with this approach. First create the improved infrastructure in OpenSC that your work needs. Maybe it would be better to have a single sticky pkcs15-ish

Re: [opensc-devel] PKCS15init profile to omit a part of path

2012-05-27 Thread Peter Marschall
Hi, On Friday, 25. May 2012, Martin Paljak wrote: In the long run, I don't think that it helps to emulate a filesystem on top of non-filesystem cards (like OpenPGP or Muscle). Or to try to make it fit into the filesystem-oriented stack of OpenSC. Why? If it works (even in a limited/restricted

Re: [opensc-devel] PKCS15init profile to omit a part of path

2012-05-27 Thread Peter Marschall
Hi all, On Friday, 18. May 2012, Nguyễn Hồng Quân wrote: I need a help to create pkcs15init profile structure so that I can change/rewrite the canonical path. All, please note, Quân is looking for something that shall be specific to OpenPGP. He I do not want to change the pkcs15 part of

Re: [opensc-devel] PKCS15init profile to omit a part of path

2012-05-27 Thread Nguyễn Hồng Quân
Hi Peter On 05/27/2012 03:50 PM, Peter Stuge wrote: Nguyễn Hồng Quân wrote: I'm starting from the current codebase, which uses a emulation layer, so I don't know other choice than continue with this approach. First create the improved infrastructure in OpenSC that your work needs. Now I

Re: [opensc-devel] PKCS15init profile to omit a part of path

2012-05-25 Thread Martin Paljak
Hello, On Fri, May 18, 2012 at 12:59 PM, Nguyễn Hồng Quân quanngu...@mbm.vn wrote: Hello all, I need a help to create pkcs15init profile structure so that I can change/rewrite the canonical path. In general, the path to a file AABB in PKCS15 is as: 3F005015AABB, in which 3F00 is the MF,

Re: [opensc-devel] PKCS15init profile to omit a part of path

2012-05-25 Thread Nguyễn Hồng Quân
Hello Martin, On Fri 25 May 2012 03:40:31 PM ICT, Martin Paljak wrote: Hello, In the long run, I don't think that it helps to emulate a filesystem on top of non-filesystem cards (like OpenPGP or Muscle). Or to try to make it fit into the filesystem-oriented stack of OpenSC. Has OpenSC

Re: [opensc-devel] PKCS15init profile to omit a part of path

2012-05-20 Thread Viktor Tarasov
Hello Nguyễn, Le 18/05/2012 11:59, Nguyễn Hồng Quân a écrit : I need a help to create pkcs15init profile structure so that I can change/rewrite the canonical path. In general, the path to a file AABB in PKCS15 is as: 3F005015AABB, in which 3F00 is the MF, 5015 is the PKCS15-AppDF's

Re: [opensc-devel] PKCS15init profile to omit a part of path

2012-05-20 Thread Peter Marschall
Hi, This is not directly related to your question, but more general: You wrote about implementing write support for OpenPGP cards. Is there a chance to see the code you already have? maybe e.g. on github ;-) Best Peter -- Peter Marschall pe...@adpm.de

Re: [opensc-devel] PKCS15init profile to omit a part of path

2012-05-20 Thread Viktor Tarasov
Hi Peter, Le 20/05/2012 19:19, Peter Marschall a écrit : This is not directly related to your question, but more general: You wrote about implementing write support for OpenPGP cards. Is there a chance to see the code you already have? maybe e.g. on github ;-) You can look onto

Re: [opensc-devel] PKCS15init profile to omit a part of path

2012-05-20 Thread Nguyễn Hồng Quân
Hi Peter, My implementation of write support for OpenPGP card is placed here https://github.com/hongquan/OpenSC-OpenPGP/commits/openpgp (the openpgp branch) On 05/21/2012 12:19 AM, Peter Marschall wrote: Hi, This is not directly related to your question, but more general: You wrote about