static public bool VerifySignature (byte[] publicKey, int algorithm, byte[] hash, byte[] signature) { try { RSA rsa = CryptoConvert.FromCapiPublicKeyBlob (publicKey); return Verify (rsa, (AssemblyHashAlgorithm) algorithm, hash, signature); } catch { // no exception allowed return false; } } #endif