// HMACMD5.cs: HMAC implementation using MD5
//
// Author:
-// Sebastien Pouliot <sebastien@ximian.com>
+// Sebastien Pouliot <sebastien@xamarin.com>
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright 2013 Xamarin Inc. (http://www.xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
-
using System.Runtime.InteropServices;
using Mono.Security.Cryptography;
{
}
- public HMACMD5 (byte[] rgbKey) : base ()
+ public HMACMD5 (byte[] key) : base ()
{
+#if FULL_AOT_RUNTIME
+ SetHash ("MD5", new MD5CryptoServiceProvider ());
+#else
HashName = "MD5";
+#endif
HashSizeValue = 128;
- Key = rgbKey;
+ Key = key;
}
}
}
-
-#endif