mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-24 18:48:01 +02:00
Add missing methods to SHA256Hash
This commit is contained in:
parent
0a1855bfb3
commit
794bab2bfd
1 changed files with 20 additions and 0 deletions
|
@ -44,6 +44,26 @@ namespace System.Security.Cryptography
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public override void ToString(String strBuffer)
|
||||
{
|
||||
for (let val in mHash)
|
||||
{
|
||||
val.ToString(strBuffer, "X2", null);
|
||||
}
|
||||
}
|
||||
|
||||
public void Encode(String outStr)
|
||||
{
|
||||
#unwarn
|
||||
HashEncode.HashEncode64(((uint64*)&mHash)[0], outStr);
|
||||
#unwarn
|
||||
HashEncode.HashEncode64(((uint64*)&mHash)[1], outStr);
|
||||
#unwarn
|
||||
HashEncode.HashEncode64(((uint64*)&mHash)[2], outStr);
|
||||
#unwarn
|
||||
HashEncode.HashEncode64(((uint64*)&mHash)[3], outStr);
|
||||
}
|
||||
}
|
||||
|
||||
class SHA256
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue