[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-cryptoapi
Subject:    NTE_BAD_FLAGS & CryptImportKey
From:       Craig Matthews <craigma () NETDOCUMENTS ! COM>
Date:       1999-10-27 22:40:31
[Download RAW message or body]


I am attempting to decrypt a 128-bit session key that has been exported
using a 40-bit  certificate public key.  I CryptGen the 128-bit session key
and the CryptExport the key using a 40-bit key from a certificate.  When I
attempt to decrypt the session key using CryptImportKey with the 40-bit key
I get a NTE_BAD_FLAGS error.  Is it possible to do this and if so, what am I
doing wrong?

Thanks in advance,

Craig

----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic