Re: Exporting key without encryption
JexMcByte <[email protected]> Wed, 1 Aug 2012 07:56:59 -0700 (PDT)
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Message-ID | <[email protected]> |
Hi Peter, Saw your replay on may inbox but can't see it here. The AES key is being generated on a context not linked to any device. I need the plainkey to burn in on a device that has AES encryption support. I could generate a random buffer the same size the key is but that would solve the hardware device problem but not using cryptlib. I think I could use CRYPT_CTXINFO_KEY before generating the key but haven't tried that. Jacques JexMcByte wrote: > > Is it possible to export a key (AES-256) without any encryption ? > > cryptExport asks for a context containing a key to encrypt the exported > key. I've tryed CRYPT_UNUSED, NULL, empty context but none of those > worked. > > Is it possible or do we have a workaround to it ? > > I really need the plain key. > > For another task I'll need to export this key encrypted by a public key > (RSA), but the key I'm getting with > > res = cryptGetPublicKey( cryptDevice, &devicePubKey, CRYPT_KEYID_NAME, > label ); > > I'm not being able to get it inside a context so I can use the context to > export the AES key I mentioned, I'll also need to include the private RSA > key later to import this encrypted AES key. > > Maybe this (encrypted exporting/importing) will be solved when I have my > previous post problem solved. > > Jacques > -- View this message in context: http://old.nabble.com/Exporting-key-without-encryption-tp34221444p34241157.html Sent from the Cryptlib mailing list archive at Nabble.com. _______________________________________________ Cryptlib mailing list [email protected] via Mail: [email protected] Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/ http://news.gmane.org/gmane.comp.encryption.cryptlib Posts from non-subscribed addresses are blocked to prevent spam, please subscribe in order to post messages.