Re: HMAC-MD5

From: evans.jeff (evans.jeff_at__NOSPAM_attbi.com)
Date: 05/16/03


Date: Fri, 16 May 2003 00:20:24 GMT


Hi Michael,

Actually, we are working with a vendor that only does HMAC-MD5.
It would be nice if they would do HMACSHA1, but no such luck.

I ended up getting an HMAC class in C# from Pieter @
http://www.mentalis.org/index2.qpx
It works really nice.

You just pass it a HashAlgorithm and it takes care of the rest.

It's posted on microsoft.public.dotnet.security.

Thanks for the reply!

Jeff

"Michael Howard [MSFT]" <mikehow@online.microsoft.com> wrote in message
news:uZZ42azGDHA.2068@TK2MSFTNGP10.phx.gbl...
> what are you trying to do that cannot be done with HMAC-SHA1?
>
> --
>
> Cheers, Michael
> Writing Secure Code 2nd Edition
> (http://www.microsoft.com/MSPress/books/5957.asp)
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> "evans.jeff" <evans.jeff@attbi.com> wrote in message
> news:o6Bwa.326912$Si4.276573@rwcrnsc51.ops.asp.att.net...
> > Has anyone had any luck doing HMAC-MD5 with C#?
> >
> > I'm trying to figure out how this all works. I've seen sample code
> > where people are modifying the MD5 keys, but I would like
> > to use the .NET MD5 functions and then run it through some
> > other function that performs the HMAC. My problem is coming
> > up with the HMAC function.
> >
> > Any sample code or a push in the right direction would be
> > greatly appreciated.
> >
> > Thanks!
> >
> > jeff
> >
> >
> >
>
>



Relevant Pages

  • Re: LogonUser with new credentials
    ... there you can find some sample code. ... > the handle I receive from calling LogonUser this will ... Is there a way to retrieve the SID of the logged ...
    (microsoft.public.platformsdk.security)
  • Re: Printing without a document
    ... Michael C#, MCDBA ... >> There's a pretty good article in this PDF document, with sample code, ... >> code and explanations for adding headers and footers, page numbers, etc. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: NSWindow -- Where To Put Content-Drawing Code?
    ... > Maybe you should ask before jumping to conclusions. ... > CurrencyConverter tutorial on Apple's Cocoa website before I even ... a truly enormous library of sample code, both on your hard drive as others ... Michael Ash ...
    (comp.sys.mac.programmer.help)