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

◆ ToPlainTextKeyBlob()

static byte[] Internal.NativeCrypto.CapiHelper.ToPlainTextKeyBlob ( int algId,
byte[] rawKey )
inlinestaticpackage

Definition at line 1379 of file CapiHelper.cs.

1380 {
1381 using MemoryStream memoryStream = new MemoryStream();
1382 using BinaryWriter binaryWriter = new BinaryWriter(memoryStream);
1383 WriteKeyBlobHeader(algId, binaryWriter);
1384 binaryWriter.Write(rawKey.Length);
1385 binaryWriter.Write(rawKey);
1386 binaryWriter.Flush();
1387 return memoryStream.ToArray();
1388 }
static void WriteKeyBlobHeader(DSAParameters dsaParameters, BinaryWriter bw, bool isPrivate, out bool isV3)

References Internal.NativeCrypto.CapiHelper.WriteKeyBlobHeader().

Referenced by Internal.Cryptography.BasicSymmetricCipherCsp.ImportCspBlob().