Commit 02fd751
authored
Fix shimmed implementation of TryGetHashAndReset to handle HMAC.
The TryGetHashAndReset switches on the algorithm name of IncrementalHash. IncrementalHash prepends "HMAC" in front of the algorithm name, so the shim did not correctly handle the HMAC-prepended algorithm names.
This gets rid of the switch, since it was only used as an optimization in a non-success path.1 parent cdb88b2 commit 02fd751
File tree
1 file changed
+3
-14
lines changed- src/libraries/Microsoft.Bcl.Cryptography/src/System/Security/Cryptography
1 file changed
+3
-14
lines changedLines changed: 3 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
114 | 106 | | |
115 | 107 | | |
116 | 108 | | |
117 | 109 | | |
118 | 110 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 111 | | |
123 | 112 | | |
124 | 113 | | |
| |||
0 commit comments