File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Src/Tests/Backend/Hashing Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -203,13 +203,11 @@ private static byte[] GetRandomBytes(int len)
203203 }
204204 private static byte [ ] ComputeSingleSha ( byte [ ] data )
205205 {
206- using System . Security . Cryptography . SHA256 sysSha = System . Security . Cryptography . SHA256 . Create ( ) ;
207- return sysSha . ComputeHash ( data ) ;
206+ return System . Security . Cryptography . SHA256 . HashData ( data ) ;
208207 }
209208 private static byte [ ] ComputeDoubleSha ( byte [ ] data )
210209 {
211- using System . Security . Cryptography . SHA256 sysSha = System . Security . Cryptography . SHA256 . Create ( ) ;
212- return sysSha . ComputeHash ( sysSha . ComputeHash ( data ) ) ;
210+ return System . Security . Cryptography . SHA256 . HashData ( System . Security . Cryptography . SHA256 . HashData ( data ) ) ;
213211 }
214212
215213
You can’t perform that action at this time.
0 commit comments