mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-14 03:16:40 +10:00
QCParts: Check if signatures are available
This commit is contained in:
@@ -160,24 +160,27 @@ namespace WPinternals
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
byte[] RootCertificate = Signatures[^1];
|
if (Signatures.Count > 0)
|
||||||
|
|
||||||
for (int i = 0; i < Signatures.Count; i++)
|
|
||||||
{
|
{
|
||||||
if (i + 1 != Signatures.Count)
|
byte[] RootCertificate = Signatures[^1];
|
||||||
|
|
||||||
|
for (int i = 0; i < Signatures.Count; i++)
|
||||||
{
|
{
|
||||||
|
if (i + 1 != Signatures.Count)
|
||||||
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
System.Diagnostics.Debug.Print("Cert: " + Converter.ConvertHexToString(SHA256.HashData(Signatures[i]), ""));
|
System.Diagnostics.Debug.Print("Cert: " + Converter.ConvertHexToString(SHA256.HashData(Signatures[i]), ""));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// This is the last certificate. So this is the root key.
|
// This is the last certificate. So this is the root key.
|
||||||
RootKeyHash = SHA256.HashData(Signatures[i]);
|
RootKeyHash = SHA256.HashData(Signatures[i]);
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
System.Diagnostics.Debug.Print("RKH: " + Converter.ConvertHexToString(RootKeyHash, ""));
|
System.Diagnostics.Debug.Print("RKH: " + Converter.ConvertHexToString(RootKeyHash, ""));
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user