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

◆ WriteKeyBlobHeader() [1/2]

static void Internal.NativeCrypto.CapiHelper.WriteKeyBlobHeader ( DSAParameters dsaParameters,
BinaryWriter bw,
bool isPrivate,
out bool isV3 )
inlinestaticprivate

Definition at line 204 of file CapiHelper.cs.

205 {
206 isV3 = false;
207 byte value = 2;
208 if ((dsaParameters.Y != null && isPrivate) || (dsaParameters.Y != null && dsaParameters.J != null))
209 {
210 isV3 = true;
211 value = 3;
212 }
213 bw.Write((byte)(isPrivate ? 7u : 6u));
214 bw.Write(value);
215 bw.Write((ushort)0);
216 bw.Write(8704);
217 }
virtual void Write(bool value)

References System.Security.Cryptography.DSAParameters.J, System.value, System.IO.BinaryWriter.Write(), and System.Security.Cryptography.DSAParameters.Y.

Referenced by Internal.NativeCrypto.CapiHelper.ToKeyBlob(), and Internal.NativeCrypto.CapiHelper.ToPlainTextKeyBlob().