Beispiel #1
0
        // Do not wrap TryExportPkcs8PrivateKey, let it fall back to reconstructing it from parameters
        // so that the ECDsa.Create()-returned object uses the same set of attributes on all platforms.
        // (CNG adds the key usage attribute to distinguish ECDSA from ECDH)
        //public override bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten) =>
        //    _wrapped.TryExportPkcs8PrivateKey(destination, out bytesWritten);

        public override bool TryExportSubjectPublicKeyInfo(Span <byte> destination, out int bytesWritten) =>
        _wrapped.TryExportSubjectPublicKeyInfo(destination, out bytesWritten);