Re: Export Public/Private Keys
- From: "Mitch Gallant" <jensigner@xxxxxxxxxxxxxxxx>
- Date: Sat, 11 Mar 2006 10:10:49 -0500
Simple benchmark for this:
VS 2005 C compiled (default optimized for speed)
Dell Latitude C800 850 MHz PIII 512 Mb RAM
Based on encyrpt sample here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/seccrypto/security/example_c_program_encrypting_a_file.aspand using password-based encryption and 3DES encrypt with added IV: 2 Mb file: 0.5 sec 20 Mb file: 5 secNote that the times are overall times including reading file as sample shows.- Mitch Gallant"lelteto" <lelteto@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in messagenews:4672B075-8E6C-4027-9496-FB72085B392B@xxxxxxxxxxxxxxxx> Please check actual speed carefully. For most symmetric encryption sending> the data to hw then getting it back is bigger overhead than doing the whole> symmetric encryption / decryption in software. (Yes, you may still get less> CPU utilization; but the actual encrypt speed may just get slower.)>> Laszlo Elteto> SafeNet, Inc.>> "skywalker" wrote:>>> I also forgot to mention in the previous email that I am dealing with a>> symmetric key. This is not a public or private key.>> Thanks,>> Vinay Raghavan>>>> "Jeff Mastry" wrote:>>>> > I managed to get public and private keys exported with PRIVATEKEYBLOB and>> > CryptBinaryToString. Thanks for you help.>> >>> > -Jeff>> >>> > "Mitch Gallant" wrote:>> >>> > > You could use CryptExportKey with PRIVATEKEYBLOB (which holds both>> > > RSA public and private key data) and export it unencyrpted (and manually encrypt>> > > it with any other good application), or you could generate a pswd-derived>> > > session key to wrap that PRIVATEKEYBLOB in symmetric encryption.>> > > Target user of course needs the symmetric key (say a pswd-based key) to decrypt>> > > and import.>> > > No platform or user attachment involved.>> > >>> > > - Mitch Gallant>> > > MVP Security>> > >>> > > "Jeff Mastry" <jmastry@xxxxxxxxxxxxxxx> wrote in messagenews:A64813CA-37DC-4118-942A-FF50C869C01F@xxxxxxxxxxxxxxxx>> > > > Does anyone have an example of exporting/importing RSA public and private>> > > > keys in plain text? Actually, any export method that does not tie the keys to>> > > > a user account or a specific machine would work for me. I just need a key>> > > > file that I can backup and restore on any machine if needed.>> > > >>> > > > I'm usiing C++ and the raw CryptoAPI (CryptExportKey).>> > > >>> > > > Thanks,>> > > > Jeff>> > >>> > >>> > >
.
- References:
- Re: Export Public/Private Keys
- From: Mitch Gallant
- Re: Export Public/Private Keys
- Prev by Date: Re: When were scanf_s functions introduced?
- Next by Date: Re: Export Public/Private Keys
- Previous by thread: Re: Export Public/Private Keys
- Next by thread: Re: Export Public/Private Keys
- Index(es):
Relevant Pages
|