xref: /linux/lib/crypto/mpi/mpi-mod.c (revision 3342dc8b4623d835e7dd76a15cec2e5a94fe2f93)
1 /* mpi-mod.c -  Modular reduction
2  * Copyright (C) 1998, 1999, 2001, 2002, 2003,
3  *               2007  Free Software Foundation, Inc.
4  *
5  * This file is part of Libgcrypt.
6  */
7 
8 #include "mpi-internal.h"
9 
10 int mpi_mod(MPI rem, MPI dividend, MPI divisor)
11 {
12 	return mpi_fdiv_r(rem, dividend, divisor);
13 }
14