On 4/13/2011 2:03 PM, Martin Paljak wrote:
> Hello,
> On Apr 13, 2011, at 20:44 , Felipe Blauth wrote:
>
>> Hello to all,
>>
>> Simple question:
>> Is it  possible, using openssl, to unwrap a key wraped inside a Smart Card 
>> with C_Wrap function?

Its not that simple.
Is the key to be unwrapped on the card, or do you have the wrapped key of the 
card
and it has to be unwrapped a private key on the card?

> The format of C_Wrap is described in PKCS#11 specification. Yes, you could 
> use OpenSSL but note that OpenSC does not support C_Wrap (or unwrap)
>

If the wrapped key was wrapped by an RSA public key, the Mozilla NSS for example
can fall back to using C_Decrypt in place of C_Unwrap. The data returned is
the bits of the key, and not a PKCS#11 session object.

This could be related to:

http://www.opensc-project.org/opensc/ticket/325







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

-- 

  Douglas E. Engert  <deeng...@anl.gov>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to