Retrieve Public Key with CryptGetUserKey???
From: Eric (eric.h@netcourrier.com)
Date: 08/08/02
- Next message: Christoph Kaminski: "Re: How to protect from LocalSystem privilege escaltion"
- Previous message: boab: "MS 2000 logon"
- Next in thread: Daniel Sie [MS]: "Re: Retrieve Public Key with CryptGetUserKey???"
- Reply: Daniel Sie [MS]: "Re: Retrieve Public Key with CryptGetUserKey???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Eric" <eric.h@netcourrier.com> Date: Thu, 8 Aug 2002 11:47:56 +0200
Hello,
I am currently creating a high level set of crypto functions based on the MS
CAPI.(not CAPICOM...)
I have generated a Machine Container, an Exchange Key Pair (that will also
be used for signature).
Now I want to generate a session key and store it on the disk as a KEY BLOB.
For my testing purpose I would like to encrypt and decrypt this session key
only using the key pair I have previously created.
I know that normally, I would use the receiver's public asym key to encrypt
the session key and then send it to him so that he can decrypt it using his
private asym key.
As I understand, this(getting the receiver's pubilc key) can be done using
CryptImportKey but in my example I would only like to use my own key pair.
My question is, is there a way, using CryptGetUserKey (or another API
function) to get a handle to the Public Exchange Key and not the private
one?
Maybe I'm wrong but it seems like whether you specify AT_EXCHANGE or
AT_SIGNATURE, the handle that is retreived is corresponding to the private
key...
Thanks
Eric
- Next message: Christoph Kaminski: "Re: How to protect from LocalSystem privilege escaltion"
- Previous message: boab: "MS 2000 logon"
- Next in thread: Daniel Sie [MS]: "Re: Retrieve Public Key with CryptGetUserKey???"
- Reply: Daniel Sie [MS]: "Re: Retrieve Public Key with CryptGetUserKey???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|