Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Finish()

void System.Sha1ForNonSecretPurposes.Finish ( Span< byte > output)
inline

Definition at line 48 of file Sha1ForNonSecretPurposes.cs.

49 {
50 long num = _length + 8 * _pos;
51 Append(128);
52 while (_pos != 56)
53 {
54 Append(0);
55 }
56 Append((byte)(num >> 56));
57 Append((byte)(num >> 48));
58 Append((byte)(num >> 40));
59 Append((byte)(num >> 32));
60 Append((byte)(num >> 24));
61 Append((byte)(num >> 16));
62 Append((byte)(num >> 8));
63 Append((byte)num);
64 int num2 = ((output.Length < 20) ? output.Length : 20);
65 for (int i = 0; i != num2; i++)
66 {
67 uint num3 = _w[80 + i / 4];
68 output[i] = (byte)(num3 >> 24);
69 _w[80 + i / 4] = num3 << 8;
70 }
71 }
int Length
Definition Span.cs:70

References System.Sha1ForNonSecretPurposes._length, System.Sha1ForNonSecretPurposes._pos, System.Sha1ForNonSecretPurposes._w, System.Sha1ForNonSecretPurposes.Append(), and System.Span< T >.Length.