CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2009
    Location
    Cochin
    Posts
    83

    Exclamation Help regarding Windows Crypt API's

    Hi please somebody help me with decoding H225 signalling messages. I am getting the encoded bytes over TCP. I used MSDN sample code of ByteToStr() to convert those byte buffer into Hex string.

    Now i need to convert this ASN encoded string into actual H255 signal messages. I'm working on an H323 project.

    I found an MSDN article on ASN1 decoding using CryptDecodeMessage() API, but i'm not getting result after trying their sample code.

    http://msdn.microsoft.com/en-us/libr...76(VS.85).aspx




    Thanks in advance.
    "I studied everything but never topped. Today, toppers of the world's best universities are my employees"

    -William Henry Gates (Bill Gates)

  2. #2
    Join Date
    Feb 2005
    Posts
    2,160

    Re: Help regarding Windows Crypt API's

    I believe the ByteToStr function is only used to show a binary buffer in user-readable format (hex). Are you trying to decrypt the stream before or after calling ByteToStr?

  3. #3
    Join Date
    Apr 2009
    Location
    Cochin
    Posts
    83

    Smile Re: Help regarding Windows Crypt API's

    Thanks a lot for your response hoxsiew, yes i am geting the readable hex string after calling BytetoStr(). I am trying to decrypt the stream after the call to BytetoStr() and i'm passing in the converted hex string to decrypt.

    I dont know whether i am correct or not doing it, since i am very new to ASN1.0 and h323. Moreover there is less detailed description of h225 encoding/decoding available on internet

    Thanks for your support, and please help me to find a solution.
    "I studied everything but never topped. Today, toppers of the world's best universities are my employees"

    -William Henry Gates (Bill Gates)

  4. #4
    Join Date
    Feb 2005
    Posts
    2,160

    Re: Help regarding Windows Crypt API's

    I'm not familiar with this particular implementation, but in general, the ByteToStr() is only used to make a human-readable representation of the data. This is so it can be attached to email or other text-based protocols without being scrambled by text conversions or 7-bit ascii pipes. All actual encryption/decryption should be done on the binary stream.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured