Skip to content

Commit 4ea2b7e

Browse files
committed
Update Verify.cs
1 parent 0b39d90 commit 4ea2b7e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/CustomBuildTool/Verify.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public static bool CreateSigString(string KeyName, string FileName, out string S
169169
}
170170
catch (Exception e)
171171
{
172-
Program.PrintColorMessage($"Unable to create signature string {Path.GetFileName(FileName)}: {e.Message}", ConsoleColor.Yellow);
172+
Program.PrintColorMessage($"Unable to create signature string {Path.GetFileName(FileName)}: {e}", ConsoleColor.Yellow);
173173
}
174174

175175
return !string.IsNullOrWhiteSpace(Signature);
@@ -308,9 +308,7 @@ private static byte[] Sign(byte[] KeyMaterial, string FileName)
308308
{
309309
byte[] buffer;
310310

311-
var fileStream = File.ReadAllBytes(FileName);
312-
313-
//using (FileStream fileStream = File.OpenRead(FileName))
311+
using (FileStream fileStream = File.OpenRead(FileName))
314312
using (CngKey cngkey = CngKey.Import(KeyMaterial, CngKeyBlobFormat.GenericPrivateBlob))
315313
{
316314
if (cngkey.Algorithm == CngAlgorithm.ECDsaP256)

0 commit comments

Comments
 (0)