Like the title says, I’m looking for an HMAC-SHA1 implementation for C#. This will run under the micro framework, so I can’t use the built in System.Security.Cryptography classes.
I have no problem porting a library, if I can understand the original code. I’ve found the source for one in Javascript and verified that it matched expected values, but I’m having trouble porting because I can’t always tell what types the values are.
So anyone know of any C# (or Java (or other strongly typed)) implementations out there?
The Bouncycastle C# crypto library contains liberally licensed C# source code. It should be trivial to extract the
Org.BouncyCastle.Crypto.Digests.Sha1DigestandOrg.BouncyCastle.Crypto.Macs.HMacclasses and incorporate them into your code. It doesn’t appear to have any dependence on those .NET classes, but I don’t know what classes are included in the micro framework.