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