Skip to content

Commit

Permalink
Update Verify.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmex committed Dec 15, 2024
1 parent a5fb3bd commit 0b39d90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/CustomBuildTool/Verify.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ private static byte[] Sign(byte[] KeyMaterial, string FileName)
{
byte[] buffer;

using (FileStream fileStream = File.OpenRead(FileName))
var fileStream = File.ReadAllBytes(FileName);

//using (FileStream fileStream = File.OpenRead(FileName))
using (CngKey cngkey = CngKey.Import(KeyMaterial, CngKeyBlobFormat.GenericPrivateBlob))
{
if (cngkey.Algorithm == CngAlgorithm.ECDsaP256)
Expand Down

0 comments on commit 0b39d90

Please sign in to comment.