Bug 31391 - HMACMD5.Create() => HMACSHA1
Summary: HMACMD5.Create() => HMACSHA1
Status: RESOLVED FEATURE
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: 4.0.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2015-06-25 19:54 UTC by henrik
Modified: 2015-06-26 03:32 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FEATURE

Description henrik 2015-06-25 19:54:01 UTC
open System.Security.Cryptography
HMACMD5.Create()

Will return:

  System.Security.Cryptography.HMACSHA1
    {CanReuseTransform = true;
     CanTransformMultipleBlocks = true;
     Hash = ?;
     HashName = "SHA1";
     HashSize = 160;
     InputBlockSize = 1;
     Key = [|34uy; snip  58uy; 6uy; 135uy; 188uy; 125uy; 213uy;
             129uy; 246uy; 10uy; 90uy|];
     OutputBlockSize = 1;}

While

new HMACMD5() obviously returns the right instance.

~

XML-docs say it should create a HMACMD5.
Comment 1 henrik 2015-06-25 19:57:01 UTC
./external/referencesource/mscorlib/system/security/cryptography/hmacmd5.cs

Should do a `new static Create() { .. }`
Comment 2 Marek Safar 2015-06-26 01:56:54 UTC
We need to be .net compatible here
Comment 3 henrik 2015-06-26 03:32:09 UTC
So take this as a bug to change the xml documentation then.