75 references to SignatureVerificationResult
System.Core (75)
System\Security\Cryptography\CapiNative.cs (7)
697
internal static int HResultForVerificationResult(
SignatureVerificationResult
verificationResult) {
699
case
SignatureVerificationResult
.AssemblyIdentityMismatch:
700
case
SignatureVerificationResult
.PublicKeyTokenMismatch:
701
case
SignatureVerificationResult
.PublisherMismatch:
702
return (int)
SignatureVerificationResult
.BadSignatureFormat;
704
case
SignatureVerificationResult
.ContainingSignatureInvalid:
705
return (int)
SignatureVerificationResult
.BadDigest;
System\Security\Cryptography\StrongNameSignatureInformation.cs (6)
17
private
SignatureVerificationResult
m_verificationResult;
27
m_verificationResult =
SignatureVerificationResult
.Valid;
31
internal StrongNameSignatureInformation(
SignatureVerificationResult
error) {
32
Debug.Assert(error !=
SignatureVerificationResult
.Valid, "error != SignatureVerificationResult.Valid");
55
get { return m_verificationResult ==
SignatureVerificationResult
.Valid; }
68
public
SignatureVerificationResult
VerificationResult {
System\Security\Cryptography\X509Certificates\AuthenticodeSignatureInformation.cs (10)
24
private
SignatureVerificationResult
m_verificationResult;
32
m_verificationResult = (
SignatureVerificationResult
)signer.dwError;
48
if (timestamp != null && timestamp.VerificationResult !=
SignatureVerificationResult
.MissingSignature) {
53
m_verificationResult =
SignatureVerificationResult
.InvalidTimestamp;
64
internal AuthenticodeSignatureInformation(
SignatureVerificationResult
error) {
65
Debug.Assert(error !=
SignatureVerificationResult
.Valid);
138
case
SignatureVerificationResult
.Valid:
141
case
SignatureVerificationResult
.CertificateNotExplicitlyTrusted:
144
case
SignatureVerificationResult
.CertificateExplicitlyDistrusted:
156
public
SignatureVerificationResult
VerificationResult {
System\Security\Cryptography\X509Certificates\TimestampInformation.cs (7)
21
private
SignatureVerificationResult
m_verificationResult;
28
m_verificationResult = (
SignatureVerificationResult
)timestamper.dwError;
39
internal TimestampInformation(
SignatureVerificationResult
error) {
40
Debug.Assert(error !=
SignatureVerificationResult
.Valid, "error != SignatureVerificationResult.Valid");
64
return VerificationResult ==
SignatureVerificationResult
.Valid ||
65
VerificationResult ==
SignatureVerificationResult
.CertificateNotExplicitlyTrusted;
105
public
SignatureVerificationResult
VerificationResult {
System\Security\Cryptography\Xml\ManifestSignedXml.cs (45)
94
else if (signer.dwError == (int)
SignatureVerificationResult
.UntrustedRootCertificate) {
226
if (timestamper.dwError == (int)
SignatureVerificationResult
.Valid) {
229
else if (timestamper.dwError == (int)
SignatureVerificationResult
.CertificateNotExplicitlyTrusted ||
230
timestamper.dwError == (int)
SignatureVerificationResult
.MissingSignature) {
252
timestamp = new TimestampInformation((
SignatureVerificationResult
)Marshal.GetHRForException(e));
349
private
SignatureVerificationResult
VerifyAuthenticodeExpectedHash(XmlElement licenseNode) {
356
return
SignatureVerificationResult
.BadSignatureFormat;
360
return
SignatureVerificationResult
.BadSignatureFormat;
395
return
SignatureVerificationResult
.BadDigest;
398
return
SignatureVerificationResult
.Valid;
408
private
SignatureVerificationResult
VerifyAuthenticodePublisher(X509Certificate2 publisherCertificate) {
415
return
SignatureVerificationResult
.BadSignatureFormat;
421
return
SignatureVerificationResult
.BadSignatureFormat;
428
if (hrHash != (int)
SignatureVerificationResult
.Valid) {
429
return (
SignatureVerificationResult
)hrHash;
448
return
SignatureVerificationResult
.PublisherMismatch;
451
return
SignatureVerificationResult
.Valid;
472
SignatureVerificationResult
identityVerification = VerifyAuthenticodeSignatureIdentity(licenseNode);
473
if (identityVerification !=
SignatureVerificationResult
.Valid) {
477
SignatureVerificationResult
hashVerification = VerifyAuthenticodeExpectedHash(licenseNode);
478
if (hashVerification !=
SignatureVerificationResult
.Valid) {
509
if (hrVerify == (int)
SignatureVerificationResult
.MissingSignature) {
510
return new AuthenticodeSignatureInformation(
SignatureVerificationResult
.MissingSignature);
538
SignatureVerificationResult
publisherMatch = VerifyAuthenticodePublisher(authenticodeSignature.SigningCertificate);
539
if (publisherMatch !=
SignatureVerificationResult
.Valid) {
549
private
SignatureVerificationResult
VerifyAuthenticodeSignatureIdentity(XmlElement licenseNode) {
563
return
SignatureVerificationResult
.BadSignatureFormat;
571
return
SignatureVerificationResult
.AssemblyIdentityMismatch;
575
return
SignatureVerificationResult
.Valid;
581
private static
SignatureVerificationResult
VerifyStrongNameSignatureId(XmlElement signatureNode) {
592
return
SignatureVerificationResult
.BadSignatureFormat;
595
return
SignatureVerificationResult
.BadSignatureFormat;
598
return
SignatureVerificationResult
.Valid;
611
private static
SignatureVerificationResult
VerifyStrongNameSignatureTransforms(SignedInfo signedInfo) {
637
return
SignatureVerificationResult
.BadSignatureFormat;
642
return
SignatureVerificationResult
.BadSignatureFormat;
645
return
SignatureVerificationResult
.Valid;
657
return new StrongNameSignatureInformation(
SignatureVerificationResult
.BadDigest);
661
SignatureVerificationResult
strongNameId = VerifyStrongNameSignatureId(signatureNode);
662
if (strongNameId !=
SignatureVerificationResult
.Valid) {
669
SignatureVerificationResult
transformsValid = VerifyStrongNameSignatureTransforms(Signature.SignedInfo);
670
if (transformsValid !=
SignatureVerificationResult
.Valid) {
677
return new StrongNameSignatureInformation(
SignatureVerificationResult
.PublicKeyTokenMismatch);
701
if (strongName.VerificationResult !=
SignatureVerificationResult
.BadDigest) {
705
authenticode = new AuthenticodeSignatureInformation(
SignatureVerificationResult
.ContainingSignatureInvalid);