2 writes to Value
System.Security.Cryptography (1)
System\Security\Cryptography\Oid.cs (1)
18this.Value = OidLookup.ToOid(oid, OidGroup.All, fallBackToAllGroups: false) ?? oid;
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\PkcsHelpers.cs (1)
30testOid.Value = Oids.Sha384;
169 references to Value
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
61if (AspNetHttpsOid.Equals(extension.Oid?.Value))
dotnet-dev-certs (3)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
73if (string.Equals(AspNetHttpsOid, extension.Oid?.Value, StringComparison.Ordinal)) 148.Any(e => string.Equals(oid, e.Oid?.Value, StringComparison.Ordinal)); 153.Where(e => string.Equals(AspNetHttpsOid, e.Oid?.Value, StringComparison.Ordinal))
dotnet-svcutil-lib (2)
CmdCredentialsProvider.cs (1)
104if (oid.Value == OidClientAuthValue)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
304if (ext.Oid.Value == X509SubjectAlternativeNameConstants.Oid)
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
449writer.WriteObjectIdentifier(akidExtension.Oid.Value);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (3)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
73if (string.Equals(AspNetHttpsOid, extension.Oid?.Value, StringComparison.Ordinal)) 148.Any(e => string.Equals(oid, e.Oid?.Value, StringComparison.Ordinal)); 153.Where(e => string.Equals(AspNetHttpsOid, e.Oid?.Value, StringComparison.Ordinal))
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (6)
CertificateManagerTests.cs (6)
62Assert.Equal("1.2.840.113549.1.1.11", httpsCertificate.SignatureAlgorithm.Value); 85keyUsage.Value == "1.3.6.1.5.5.7.3.1"); 91e.Oid.Value == "2.5.29.17"); 97e.Oid.Value == CertificateManager.AspNetHttpsOid && 477e.Oid.Value == CertificateManager.AspNetHttpsOid && 483e.Oid.Value == CertificateManager.AspNetHttpsOid &&
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\X509CertificateHelpers.cs (1)
38if (ext.Oid?.Value == X509SubjectAlternativeNameConstants.Oid)
Microsoft.AspNetCore.Server.Kestrel.Core (6)
CertificateLoader.cs (1)
96if (string.Equals(oid.Value, ServerAuthenticationOid, StringComparison.Ordinal))
Internal\Certificates\CertificateConfigLoader.cs (2)
101switch (certificate.PublicKey.Oid.Value) 146throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, CoreStrings.UnrecognizedCertificateKeyOid, certificate.PublicKey.Oid.Value));
src\Shared\CertificateGeneration\CertificateManager.cs (3)
73if (string.Equals(AspNetHttpsOid, extension.Oid?.Value, StringComparison.Ordinal)) 148.Any(e => string.Equals(oid, e.Oid?.Value, StringComparison.Ordinal)); 153.Where(e => string.Equals(AspNetHttpsOid, e.Oid?.Value, StringComparison.Ordinal))
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
449writer.WriteObjectIdentifier(akidExtension.Oid.Value);
Microsoft.DotNet.SignCheckLibrary (8)
Verification\AuthentiCode.cs (6)
75if (String.Equals(rfc3161Message.ContentInfo.ContentType.Value, WinCrypt.szOID_TIMESTAMP_TOKEN, StringComparison.OrdinalIgnoreCase)) 153if (String.Equals(unsignedAttribute.Oid.Value, WinCrypt.szOID_RSA_counterSign, StringComparison.OrdinalIgnoreCase)) 159if (String.Equals(signedAttribute.Oid.Value, WinCrypt.szOID_RSA_signingTime, StringComparison.OrdinalIgnoreCase)) 177else if (String.Equals(unsignedAttribute.Oid.Value, WinCrypt.szOID_RFC3161_counterSign, StringComparison.OrdinalIgnoreCase)) 181else if (String.Equals(unsignedAttribute.Oid.Value, WinCrypt.szOID_NESTED_SIGNATURE, StringComparison.OrdinalIgnoreCase)) 191if (String.Equals(nestedUnsignedAttribute.Oid.Value, WinCrypt.szOID_RFC3161_counterSign, StringComparison.OrdinalIgnoreCase))
Verification\Jar\JarSignatureFile.cs (2)
259if (String.Equals(unsignedAttribute.Oid.Value, WinCrypt.szOID_SIGNATURE_TIMESTAMP_ATTRIBUTE, StringComparison.OrdinalIgnoreCase)) 270if (String.Equals(sa.Oid.Value, WinCrypt.szOID_RSA_signingTime, StringComparison.OrdinalIgnoreCase))
System.Net.Http (1)
src\libraries\Common\src\System\Net\Security\CertificateHelper.cs (1)
93if (oid.Value == ClientAuthenticationOID)
System.Net.Security (2)
System\Net\Security\Pal.Managed\EndpointChannelBindingToken.cs (2)
31switch (signatureAlgorithm.Value) 56throw new ArgumentException(signatureAlgorithm.Value);
System.Security.Cryptography (69)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.manual.cs (1)
19AttrType = attribute.Oid!.Value!;
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.manual.cs (1)
21ExtnId = extension.Oid!.Value!;
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (2)
536if (string.IsNullOrEmpty(oid.Value)) 542writer.WriteObjectIdentifier(oid.Value!);
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.cs (2)
70string oid = !string.IsNullOrEmpty(curve.Oid.Value) ? curve.Oid.Value : curve.Oid.FriendlyName!;
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.ImportExport.cs (2)
112string oid = !string.IsNullOrEmpty(parameters.Curve.Oid.Value) ? 113parameters.Curve.Oid.Value : parameters.Curve.Oid.FriendlyName!;
src\libraries\Common\src\System\Security\Cryptography\Oids.Shared.cs (3)
175return oid.Value is not null && oid.Value.Equals(other.Value);
System\Security\Cryptography\CryptoConfig.cs (1)
538oidName = oid.Value;
System\Security\Cryptography\ECCurve.cs (4)
80if (string.IsNullOrEmpty(value.Value) && string.IsNullOrEmpty(value.FriendlyName)) 81throw new ArgumentException(SR.Format(SR.Cryptography_InvalidCurveOid, value.Value)); 193(string.IsNullOrEmpty(Oid.FriendlyName) && string.IsNullOrEmpty(Oid.Value))) 195throw new CryptographicException(SR.Format(SR.Cryptography_InvalidCurveOid, Oid?.Value));
System\Security\Cryptography\Helpers.cs (2)
210return aCurve.Oid.Value == bCurve.Oid.Value &&
System\Security\Cryptography\OidCollection.cs (1)
59if (entry.Value == oidValue)
System\Security\Cryptography\OpenSslAsnFormatter.cs (2)
14if (oid == null || string.IsNullOrEmpty(oid.Value)) 26using (SafeAsn1ObjectHandle asnOid = Interop.Crypto.ObjTxt2Obj(oid.Value))
System\Security\Cryptography\X509Certificates\CertificateExtensionsCommon.cs (2)
21if (oidValue != algorithmOid.Value) 54if (!certificate.HasPrivateKey || oidValue != certificate.PublicKey.Oid.Value)
System\Security\Cryptography\X509Certificates\CertificatePolicy.cs (2)
66string nextOid = policyOid.Value!; 125string oidToCheck = policyOid.Value!;
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (10)
355if (attr.Oid is null || attr.Oid.Value is null) 361if (attr.Oid.Value == Oids.Pkcs9ExtensionRequest) 367attributes[attrCount] = new X501Attribute(attr.Oid.Value, attr.RawData); 640if (issuerCertificate.PublicKey.Oid.Value != PublicKey.Oid.Value) 645issuerCertificate.PublicKey.Oid.Value, 646PublicKey.Oid.Value), 840Algorithm = PublicKey.Oid!.Value!, 861if (!usedOids.Add(extension.Oid!.Value)) 864SR.Format(SR.Cryptography_CertReq_DuplicateExtension, extension.Oid.Value));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (1)
398writer.WriteObjectIdentifier(authorityKeyIdentifier.Oid!.Value!);
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (1)
57if (extension.Oid!.Value == Oids.KeyUsage)
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (2)
78string? curveOid = ecParameters.Curve.Oid.Value; 92_ => new Oid(friendlyName).Value,
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (4)
31if (!StringComparer.OrdinalIgnoreCase.Equals(oid.Value, maybeOid)) 33return oid.Value!; 212if (StringComparer.Ordinal.Equals(oidValue, usageOid.Value)) 325StringComparer.Ordinal.Equals(extensionOid, ext.Oid.Value))
System\Security\Cryptography\X509Certificates\ManagedX509ExtensionProcessor.cs (1)
132writer.WriteObjectIdentifierForCrypto(usage.Value!);
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (1)
33switch (oid.Value)
System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs (1)
55spki.Algorithm = new AlgorithmIdentifierAsn { Algorithm = PublicKey.Oid!.Value!, Parameters = PublicKey.EncodedParameters.RawData };
System\Security\Cryptography\X509Certificates\PublicKey.cs (6)
82switch (_oid.Value) 168if (_oid.Value != Oids.Rsa) 199if (_oid.Value != Oids.Dsa) 228if (_oid.Value != Oids.EcPublicKey) 258if (_oid.Value != Oids.EcPublicKey) 281Algorithm = _oid.Value ?? string.Empty,
System\Security\Cryptography\X509Certificates\X500DistinguishedNameBuilder.cs (2)
100ArgumentException.ThrowIfNullOrEmpty(oid.Value); 103EncodeComponent(oid.Value, value, tag);
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (2)
152decodedName.Append(oid.Value); 477return new Oid(str.ToString()).Value; // Value can be null, but permit the null-to-empty conversion.
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (3)
161/// The <see cref="Oid.Value"/> property of the <paramref name="accessMethodOid"/> parameter is 172ArgumentException.ThrowIfNullOrEmpty(accessMethodOid.Value); 174return EnumerateUris(accessMethodOid.Value);
System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs (1)
119if (Oid!.Value == Oids.BasicConstraints)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (5)
553sb.Append(SignatureAlgorithm.Value); 618sb.Append(extension.Oid.Value); 1285if (extension.Oid!.Value == Oids.SubjectAltName) 1494CreateCustomExtensionIfAny(oid.Value); 1514if (extension.Oid?.Value == Oids.KeyUsage && extension is X509KeyUsageExtension ext)
System\Security\Cryptography\X509Certificates\X509Extension.cs (2)
41ArgumentException.ThrowIfNullOrEmpty(base.Oid?.Value, "oid.Value"); 71ArgumentException.ThrowIfNullOrEmpty(base.Oid?.Value, "oid.Value");
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (2)
54string? oidValue = new Oid(oid).Value; 57if (string.Equals(extension.Oid!.Value, oidValue, StringComparison.OrdinalIgnoreCase))
System.Security.Cryptography.Pkcs (47)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
140SymmetricAlgorithm alg = OpenAlgorithm(algorithmIdentifier.Oid.Value!);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (3)
67ContentType = contentInfo.ContentType.Value!, 71Algorithm = contentEncryptionAlgorithm.Oid.Value!, 174if (contentInfo.ContentType.Value == Oids.Pkcs7Data || contentInfo.Content.Length == 0)
Internal\Cryptography\PkcsHelpers.cs (2)
50return GetDigestAlgorithm(oid.Value); 429return oid.Value switch
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.manual.cs (1)
19AttrType = attribute.Oid!.Value!;
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.manual.cs (1)
21ExtnId = extension.Oid!.Value!;
src\libraries\Common\src\System\Security\Cryptography\Oids.Shared.cs (3)
175return oid.Value is not null && oid.Value.Equals(other.Value);
System\Security\Cryptography\CryptographicAttributeObject.cs (4)
37if (!string.Equals(asn.Oid.Value, oid.Value, StringComparison.Ordinal)) 39throw new InvalidOperationException(SR.Format(SR.InvalidOperation_WrongOidInAsnCollection, oid.Value, asn.Oid.Value));
System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (2)
46string? szOid1 = attribute.Oid.Value; 56string? szOid2 = existing.Oid.Value;
System\Security\Cryptography\Pkcs\CmsSigner.cs (2)
185newSignerInfo.DigestAlgorithm.Algorithm = DigestAlgorithm.Value!; 408AttrType = attributeObject.Oid!.Value!,
System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (2)
89if (certificateType.Value == null) 92return EncodeBagValue(certificateType.Value, encodedCertificate);
System\Security\Cryptography\Pkcs\Pkcs12SecretBag.cs (2)
46Debug.Assert(secretTypeOid != null && secretTypeOid.Value != null); 50SecretTypeId = secretTypeOid.Value,
System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (1)
253Algorithm = AlgorithmId.Value!,
System\Security\Cryptography\Pkcs\Pkcs9AttributeObject.cs (1)
35string? szOid = base.Oid!.Value;
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (3)
306Algorithm = hashAlgorithmId.Value!, 312ReqPolicy = requestedPolicyId?.Value, 395if (!token.VerifyHash(GetMessageHash().Span, HashAlgorithmId.Value))
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (9)
141if (VerifyHash(hash, hashAlgorithmId.Value)) 174hashAlgorithmId == TokenInfo.HashAlgorithmId.Value; 191return VerifyHash(stackSpan.Slice(0, bytesWritten), hashAlgorithmId.Value); 197$"TryGetHashAndReset did not fit in {stackSpan.Length} for hash {hashAlgorithmId.Value}"); 199return VerifyHash(hasher.GetHashAndReset(), hashAlgorithmId.Value); 268if (oid.Value == Oids.TimeStampingPurpose) 338if (cms.ContentInfo.ContentType.Value != Oids.TstInfo) 581string? setOid = attrSet.Oid?.Value; 592string? attrOid = attr.Oid?.Value;
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (2)
339Policy = policyId.Value!, 344Algorithm = hashAlgorithmId.Value!,
System\Security\Cryptography\Pkcs\SignedCms.cs (2)
346string contentType = _contentType ?? ContentInfo.ContentType.Value ?? Oids.Pkcs7Data; 497if ((_contentType ?? ContentInfo.ContentType.Value) != Oids.Pkcs7Data)
System\Security\Cryptography\Pkcs\SignerInfo.cs (6)
689SignatureAlgorithm.Value!, 695throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, SignatureAlgorithm.Value); 727if (ext.Oid!.Value == Oids.KeyUsage) 779DigestAlgorithm.Value, 788return PkcsHelpers.GetDigestAlgorithm(DigestAlgorithm.Value!, forVerification: true); 825if (attributes[i].AttrType == oid.Value)
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\SignedXml.cs (1)
346if (string.Equals(extension.Oid!.Value, "2.5.29.15" /* szOID_KEY_USAGE */, StringComparison.OrdinalIgnoreCase))
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (1)
269friendlyName = oid.Value;
System.ServiceModel.Primitives (1)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
324if (ext.Oid.Value == X509SubjectAlternativeNameConstants.Oid)
Templates.Blazor.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
73if (string.Equals(AspNetHttpsOid, extension.Oid?.Value, StringComparison.Ordinal)) 148.Any(e => string.Equals(oid, e.Oid?.Value, StringComparison.Ordinal)); 153.Where(e => string.Equals(AspNetHttpsOid, e.Oid?.Value, StringComparison.Ordinal))
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
73if (string.Equals(AspNetHttpsOid, extension.Oid?.Value, StringComparison.Ordinal)) 148.Any(e => string.Equals(oid, e.Oid?.Value, StringComparison.Ordinal)); 153.Where(e => string.Equals(AspNetHttpsOid, e.Oid?.Value, StringComparison.Ordinal))
Templates.Blazor.WebAssembly.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
73if (string.Equals(AspNetHttpsOid, extension.Oid?.Value, StringComparison.Ordinal)) 148.Any(e => string.Equals(oid, e.Oid?.Value, StringComparison.Ordinal)); 153.Where(e => string.Equals(AspNetHttpsOid, e.Oid?.Value, StringComparison.Ordinal))
Templates.Mvc.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
73if (string.Equals(AspNetHttpsOid, extension.Oid?.Value, StringComparison.Ordinal)) 148.Any(e => string.Equals(oid, e.Oid?.Value, StringComparison.Ordinal)); 153.Where(e => string.Equals(AspNetHttpsOid, e.Oid?.Value, StringComparison.Ordinal))
Templates.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
73if (string.Equals(AspNetHttpsOid, extension.Oid?.Value, StringComparison.Ordinal)) 148.Any(e => string.Equals(oid, e.Oid?.Value, StringComparison.Ordinal)); 153.Where(e => string.Equals(AspNetHttpsOid, e.Oid?.Value, StringComparison.Ordinal))