Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: "Out Of Memory" When using CString GetBuffer() Pin
nadiric15-Dec-07 8:59
nadiric15-Dec-07 8:59 
GeneralRe: "Out Of Memory" When using CString GetBuffer() Pin
Mark Salsbery15-Dec-07 9:06
Mark Salsbery15-Dec-07 9:06 
GeneralHELP, in both senses Pin
Anthony Appleyard14-Dec-07 13:01
Anthony Appleyard14-Dec-07 13:01 
GeneralRe: HELP, in both senses Pin
santhoshv8414-Dec-07 17:33
santhoshv8414-Dec-07 17:33 
GeneralRe: HELP, in both senses Pin
Anthony Appleyard14-Dec-07 19:35
Anthony Appleyard14-Dec-07 19:35 
GeneralRe: HELP, in both senses Pin
nitin314-Dec-07 21:02
nitin314-Dec-07 21:02 
GeneralRe: HELP, in both senses Pin
santhoshv8414-Dec-07 21:07
santhoshv8414-Dec-07 21:07 
GeneralRe: HELP, in both senses Pin
Mark Salsbery15-Dec-07 8:20
Mark Salsbery15-Dec-07 8:20 
QuestionDisplay file details Pin
GPat2414-Dec-07 11:36
GPat2414-Dec-07 11:36 
GeneralRe: Display file details [modified] Pin
Mark Salsbery14-Dec-07 11:58
Mark Salsbery14-Dec-07 11:58 
GeneralRe: Display file details Pin
Hamid_RT14-Dec-07 21:20
Hamid_RT14-Dec-07 21:20 
QuestionRe: Display file details Pin
GPat2415-Dec-07 23:49
GPat2415-Dec-07 23:49 
QuestionRestricting security in web browser control Pin
drummer14-Dec-07 11:35
drummer14-Dec-07 11:35 
QuestionUnable to load dll on computers which do not have Visual Studio installed Pin
Member 408492814-Dec-07 9:46
Member 408492814-Dec-07 9:46 
GeneralRe: Unable to load dll on computers which do not have Visual Studio installed Pin
Mark Salsbery14-Dec-07 10:05
Mark Salsbery14-Dec-07 10:05 
GeneralCryptoAPI: Send a challenge to a smart card Pin
Nyarlatotep14-Dec-07 5:28
Nyarlatotep14-Dec-07 5:28 
GeneralOff-topic Pin
CPallini14-Dec-07 6:30
mveCPallini14-Dec-07 6:30 
GeneralRe: CryptoAPI: Send a challenge to a smart card Pin
Mark Salsbery14-Dec-07 8:59
Mark Salsbery14-Dec-07 8:59 
GeneralRe: CryptoAPI: Send a challenge to a smart card Pin
Nyarlatotep14-Dec-07 9:27
Nyarlatotep14-Dec-07 9:27 
Smile | :) It could be but ... CryptAcquireContext() does not raise this error, it succeeded. It's CryptDecrypt() which fails.

Naturally this function tries (would?) to decrypt data using the AT_KEYEXCHANGE key obtained with CryptGetUserKey() from the context acquired from the smart card.

According to MSDN:

"The CryptGetUserKey function retrieves a handle of one of a user's two public/private key pairs..."

If I'm not wrong CryptoAPI CryptEncrypt()/CryptDecrypt() should use the public key to encrypt and the private key to decrypt, but decrypting with the private key from the smart card fails.

Changhing the key type to AT_SIGNING when retrieving the key pair with CryptGetUserKey() has no effects (and it has not sense for me. I don't want to sign a piece of data with the private key. I want decrypt a piece of data with it ).
GeneralCompression algorithms using MMX extensions Pin
Member 208814-Dec-07 3:07
Member 208814-Dec-07 3:07 
GeneralRe: Compression algorithms using MMX extensions Pin
Randor 14-Dec-07 3:36
professional Randor 14-Dec-07 3:36 
GeneralRe: Compression algorithms using MMX extensions Pin
Mike Dimmick15-Dec-07 8:13
Mike Dimmick15-Dec-07 8:13 
Generalfilling an EditBox (which is embedded) in a toolbar by clicking a ToolBarButton ! Pin
CrocodileBuck14-Dec-07 2:13
CrocodileBuck14-Dec-07 2:13 
GeneralRe: filling an EditBox (which is embedded) in a toolbar by clicking a ToolBarButton ! Pin
Nelek14-Dec-07 2:54
protectorNelek14-Dec-07 2:54 
GeneralRe: filling an EditBox (which is embedded) in a toolbar by clicking a ToolBarButton ! Pin
CrocodileBuck14-Dec-07 2:59
CrocodileBuck14-Dec-07 2:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.