HighTechTalks DotNet Forums  

Creating a PKCS#7 from a PKCS#1

Dotnet Security microsoft.public.dotnet.security


Discuss Creating a PKCS#7 from a PKCS#1 in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
gherme
 
Posts: n/a

Default Creating a PKCS#7 from a PKCS#1 - 03-17-2007 , 01:59 PM






Hi,
Could anyone tell me if it's possible to create a PKCS#7 from a
previously generated PKCS#1, using a keypair ( the PrivateKey) and
the CryptoAPI? Or is this a bad aproach to the rigth way to get a
PKCS#7 using just the KeyPair (without certificate) and CryptoAPI?

I'm in the way to begin to use CryptSignMessage, but at the time I'm
already able to create the PKCS#1 and I wouldlike to know if there is
any chance to use that PKCS#1 result.

Regards.


Reply With Quote
  #2  
Old   
Valery Pryamikov
 
Posts: n/a

Default Re: Creating a PKCS#7 from a PKCS#1 - 03-19-2007 , 05:18 AM






On Mar 17, 6:59 pm, "gherme" <ghe... (AT) gmail (DOT) com> wrote:
Quote:
Hi,
Could anyone tell me if it's possible to create a PKCS#7 from a
previously generated PKCS#1, using a keypair ( the PrivateKey) and
the CryptoAPI? Or is this a bad aproach to the rigth way to get a
PKCS#7 using just the KeyPair (without certificate) and CryptoAPI?

I'm in the way to begin to use CryptSignMessage, but at the time I'm
already able to create the PKCS#1 and I wouldlike to know if there is
any chance to use that PKCS#1 result.

Regards.
Hi,
What do you mean? PKCS#1 specifies RSA encryption and format of keys.
PKCS#7 is description of general cryptographic messages (specifies how
you can envelope and sign data).
Even so both are ASN1 DER encoded buffers, but I don't see any
relation between keys format (PKCS#1) and message format (PKCS#7).

-Valery.
http://www.harper.no/valery



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.