Review obsolete ECDH public-key blob encodings (SYSLIB0043)

Proprietary

Find resolved public BCL ECDiffieHellmanPublicKey/ECDiffieHellmanCngPublicKey.ToByteArray() invocations. Their implementation-specific bytes are not interchangeable with X.509 SubjectPublicKeyInfo. Review peer/persisted encodings, curve selection, ownership and failure behavior instead of renaming the API. Leave custom overrides, unrelated/unresolved methods, existing SPKI calls and conditional snapshots unchanged.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net7.FindEcdhPublicKeyBlob
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net7.FindEcdhPublicKeyBlob

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.