Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. md5 hashing fails one 1 computer out a hundred

md5 hashing fails one 1 computer out a hundred

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    urizn
    wrote on last edited by
    #1

    hey all CryptAcquireContext(hCryptProv, NULL, NULL, PROV_RSA_FULL, 0) The above function fails one computer out the hundreds we have tried on. Does anyone know of a reason why getting the default provider would fail on a particular computer. Thanks for any insight

    J M 2 Replies Last reply
    0
    • U urizn

      hey all CryptAcquireContext(hCryptProv, NULL, NULL, PROV_RSA_FULL, 0) The above function fails one computer out the hundreds we have tried on. Does anyone know of a reason why getting the default provider would fail on a particular computer. Thanks for any insight

      J Offline
      J Offline
      Jack Puppy
      wrote on last edited by
      #2

      CryptAcquireContext If the function succeeds, the function returns nonzero (TRUE). If the function fails, it returns zero (FALSE). For extended error information, call GetLastError. Also: CryptAcquireContext() use and troubleshooting Montreal great Guy Lafleur, quoted by CBC on being mugged while vacationing recently in Buenos Aires: "I didn't have any time to react before I got a sucker-punch in the eye. It was like one of the players from the Bruins."

      1 Reply Last reply
      0
      • U urizn

        hey all CryptAcquireContext(hCryptProv, NULL, NULL, PROV_RSA_FULL, 0) The above function fails one computer out the hundreds we have tried on. Does anyone know of a reason why getting the default provider would fail on a particular computer. Thanks for any insight

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        That will fail if you've never used the CryptoAPI on the machine (or you've cleared out the key store). If the last error is NTE_BAD_KEYSET, call CryptAcquireContext() again with the CRYPT_NEWKEYSET flag. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups