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. Microsoft Enhanced Cryptographic Provider question

Microsoft Enhanced Cryptographic Provider question

Scheduled Pinned Locked Moved C / C++ / MFC
securityquestioncsharpc++visual-studio
2 Posts 2 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.
  • M Offline
    M Offline
    monsieur_jj
    wrote on last edited by
    #1

    Hi all, I have used this csp when I initiate my decryption:

    CryptAcquireContext(&hProv,NULL,MS_ENHANCED_PROV,PROV_RSA_FULL,0);

    I have also checked http://msdn.microsoft.com/en-us/library/aa386986(VS.85).aspx[^] and have verified that 3des is supported. Is it possible that http://www.codeproject.com/KB/web-security/Cryptography_MD5_TriDES.aspx?display=Print[^] may have a different output from a c++ version of the code? Can anyone give me a c# encryption and an equal c++ decryption examples? Thanks, Jayjay

    C 1 Reply Last reply
    0
    • M monsieur_jj

      Hi all, I have used this csp when I initiate my decryption:

      CryptAcquireContext(&hProv,NULL,MS_ENHANCED_PROV,PROV_RSA_FULL,0);

      I have also checked http://msdn.microsoft.com/en-us/library/aa386986(VS.85).aspx[^] and have verified that 3des is supported. Is it possible that http://www.codeproject.com/KB/web-security/Cryptography_MD5_TriDES.aspx?display=Print[^] may have a different output from a c++ version of the code? Can anyone give me a c# encryption and an equal c++ decryption examples? Thanks, Jayjay

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      monsieur_jj wrote:

      Is it possible that http://www.codeproject.com/KB/web-security/Cryptography\_MD5\_TriDES.aspx?display=Print\[^\] may have a different output from a c++ version of the code?

      any implementation of 3DES must give the same results as any other implementation, given the same inputs.

      image processing toolkits | batch image processing

      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