CryptImportkey() returns an error NTE_BAD_VER

From: sunit (sunit_at_newsgroup.nospam)
Date: 10/22/05

  • Next message: RJH: "Re: Biometric Hardware integration"
    Date: Sat, 22 Oct 2005 17:59:02 +0530
    
    

    I m importing my Privatekey Blob in the CSP
    using an API CryptImportkey()

    if(!CryptImportKey(hCryptProv,
                                     pbKeyBlob,
                                    dwKeyBlobLen,
                                      0,
                                     0,
                                     &hKey))

    it returns an error NTE_BAD_VER .After refering MSDN, I found that key BLOB's version number does not match the CSP version.So I have to upgrade my CSP.

    Pls tell me how to upgrade my CSP.My CSP is MS_DEF_PROV and type PROV_RSA_FULL( used in CryptAcquireContext)

    Pls help me Thanx in advance


  • Next message: RJH: "Re: Biometric Hardware integration"