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