1 write to Oid
System.Security.Cryptography (1)
System\Security\Cryptography\ECCurve.cs (1)
96curve.Oid = curveOid;
34 references to Oid
System.Security.Cryptography (34)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.cs (1)
737internal Oid CurveOid => Curve.Oid;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.ECDsa.cs (2)
197(ecParameters.Curve.Oid.Value != _algorithm.CurveOidValue && ecParameters.Curve.Oid.FriendlyName != _algorithm.CurveOid.FriendlyName))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.cs (2)
22EcdhCurveNameToMagicNumber(parameters.Curve.Oid.FriendlyName, includePrivateParameters) : 23EcdsaCurveNameToMagicNumber(parameters.Curve.Oid.FriendlyName, includePrivateParameters);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs (4)
39if (string.IsNullOrEmpty(curve.Oid.FriendlyName)) 42SR.Format(SR.Cryptography_InvalidCurveOid, curve.Oid.Value)); 52ImportKeyBlob(ecNamedCurveBlob, curve.Oid.FriendlyName, includePrivateParameters: true); 57ImportKeyBlob(ecNamedCurveBlob, curve.Oid.FriendlyName, includePrivateParameters);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.ImportExport.cs (4)
55if (string.IsNullOrEmpty(curve.Oid.FriendlyName)) 56throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_InvalidCurveOid, curve.Oid.Value!.ToString())); 65ImportKeyBlob(ecNamedCurveBlob, curve.Oid.FriendlyName, includePrivateParameters: true); 70ImportKeyBlob(ecNamedCurveBlob, curve.Oid.FriendlyName, includePrivateParameters);
System\Security\Cryptography\CngAlgorithmCore.cs (1)
127throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_CurveNotSupported, curve.Value.Oid.FriendlyName), e);
System\Security\Cryptography\CngKey.EC.cs (1)
72string curveName = curve.Oid.FriendlyName!;
System\Security\Cryptography\EccKeyFormatHelper.cs (1)
512Oid oid = ecParameters.Curve.Oid;
System\Security\Cryptography\ECCurve.cs (6)
78ArgumentNullException.ThrowIfNull(value, nameof(Oid)); 192if (Oid == null || 193(string.IsNullOrEmpty(Oid.FriendlyName) && string.IsNullOrEmpty(Oid.Value))) 195throw new CryptographicException(SR.Format(SR.Cryptography_InvalidCurveOid, Oid?.Value)); 243if (HasAnyExplicitParameters() || Oid != null)
System\Security\Cryptography\ECDiffieHellmanCng.Key.cs (3)
58if (string.IsNullOrEmpty(curve.Oid.FriendlyName)) 59throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_InvalidCurveOid, curve.Oid.Value)); 62CngAlgorithm alg = CngKey.EcdhCurveNameToAlgorithm(curve.Oid.FriendlyName);
System\Security\Cryptography\ECDsaCng.Key.cs (3)
47if (string.IsNullOrEmpty(curve.Oid.FriendlyName)) 48throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_InvalidCurveOid, curve.Oid.Value)); 51CngAlgorithm alg = CngKey.EcdsaCurveNameToAlgorithm(curve.Oid.FriendlyName);
System\Security\Cryptography\Helpers.cs (4)
217return aCurve.Oid.Value == bCurve.Oid.Value && 218string.Equals(aCurve.Oid.FriendlyName, bCurve.Oid.FriendlyName, StringComparison.OrdinalIgnoreCase);
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (2)
78string? curveOid = ecParameters.Curve.Oid.Value; 83string friendlyName = ecParameters.Curve.Oid.FriendlyName!;