xref: /linux/lib/crypto/mpi/mpi-mod.c (revision 566ab427f827b0256d3e8ce0235d088e6a9c28bd)
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