Verify BouncyCastle ECDsa signature with .NET libraries ECDsaCng
An existing system generated signatures using Bouncy Castle (.NET) and I need to verify these existing signatures using the Microsoft ECDsaCng class. Consider the following code that attempts to do this: public static void InterchangeTest() { //AsymmetricCipherKeyPair bKeyPair_0 = Crypto.GenerateEcdsaKey(); String sPassPhrase = "bob is your uncle"; byte[] bPassPhrase = new UTF8Encoding(false).GetBytes(sPassPhrase); int SaltBitSize = 128; int EcdsaBitLength = 521; byte[] bSalt = new byte[SaltBitSize / 8]; new SecureRandom().NextBytes(bSalt); if (EcdsaBitLength != 192 && EcdsaBitLength != 256 &&