private static void CheckReturn(int returnValue) { if (returnValue == -1) { throw Interop.Crypto.CreateOpenSslCryptographicException(); } }