src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (21)
248AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
454internal static AsnWriter WriteSubjectPublicKeyInfo(ECParameters ecParameters)
461AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
476private static AsnWriter WriteAlgorithmIdentifier(in ECParameters ecParameters)
478AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
483private static void WriteAlgorithmIdentifier(in ECParameters ecParameters, AsnWriter writer)
493internal static AsnWriter WritePkcs8PrivateKey(ECParameters ecParameters, AttributeAsn[]? attributes = null)
503AsnWriter ecPrivateKey = WriteEcPrivateKey(ecParameters, includeDomainParameters: false);
504AsnWriter algorithmIdentifier = WriteAlgorithmIdentifier(ecParameters);
505AsnWriter? attributeWriter = WritePrivateKeyInfoAttributes(attributes);
511private static AsnWriter? WritePrivateKeyInfoAttributes(AttributeAsn[]? attributes)
516AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);
529private static void WriteEcParameters(ECParameters ecParameters, AsnWriter writer)
556private static void WriteSpecifiedECDomain(ECParameters ecParameters, AsnWriter writer)
739private static void WriteCurve(in ECCurve curve, AsnWriter writer)
753private static void WriteFieldElement(byte[] fieldElement, AsnWriter writer)
765private static void WriteUncompressedBasePoint(in ECParameters ecParameters, AsnWriter writer)
793private static void WriteUncompressedPublicKey(in ECParameters ecParameters, AsnWriter writer)
821internal static AsnWriter WriteECPrivateKey(in ECParameters ecParameters)
826private static AsnWriter WriteEcPrivateKey(in ECParameters ecParameters, bool includeDomainParameters)
828AsnWriter writer = new AsnWriter(AsnEncodingRules.DER);