Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions openssl-net-0.5/ManagedOpenSsl/Core/BigNumber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public static BigNumber mod_inverse(BigNumber lhs, BigNumber rhs)
BigNumber ret = new BigNumber();
Context ctx = new Context();
ctx.Start();
Native.ExpectSuccess(Native.BN_mod_inverse(ret.Handle, lhs.Handle, rhs.Handle, ctx.Handle));
Native.ExpectNonNull(Native.BN_mod_inverse(ret.Handle, lhs.Handle, rhs.Handle, ctx.Handle));
ctx.End();
return ret;
}
Expand Down Expand Up @@ -495,4 +495,4 @@ protected override void OnDispose() {
}
#endregion
}
}
}
2 changes: 1 addition & 1 deletion openssl-net-0.5/ManagedOpenSsl/Core/Native.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ int DSA_generate_parameters_ex(IntPtr dsa,
//[DllImport(DLLNAME, CallingConvention=CallingConvention.Cdecl)]
//public extern static int BN_div(IntPtr rv, IntPtr rem, IntPtr m, IntPtr d, IntPtr ctx);
[DllImport(DLLNAME, CallingConvention=CallingConvention.Cdecl)]
public extern static int BN_mod_inverse(IntPtr ret, IntPtr a, IntPtr c, IntPtr ctx);
public extern static IntPtr BN_mod_inverse(IntPtr ret, IntPtr a, IntPtr c, IntPtr ctx);
[DllImport(DLLNAME, CallingConvention=CallingConvention.Cdecl)]
public extern static int BN_gcd(IntPtr r, IntPtr a, IntPtr b, IntPtr ctx);

Expand Down