/* mpi-add.c - MPI functions * Copyright (C) 1994, 1996, 1998, 2001, 2002, * 2003 Free Software Foundation, Inc. * * This file is part of Libgcrypt. * * Note: This code is heavily based on the GNU MP Library. * Actually it's the same code with only minor changes in the * way the data is stored; this is to support the abstraction * of an optional secure memory allocation which may be used * to avoid revealing of sensitive data due to paging etc. */ #include "mpi-internal.h" /**************** * Add the unsigned integer V to the mpi-integer U and store the * result in W. U and V may be the same. */ void mpi_add_ui(MPI w, MPI u, unsigned long v) { … } void mpi_add(MPI w, MPI u, MPI v) { … } EXPORT_SYMBOL_GPL(…); void mpi_sub(MPI w, MPI u, MPI v) { … } EXPORT_SYMBOL_GPL(…); void mpi_addm(MPI w, MPI u, MPI v, MPI m) { … } EXPORT_SYMBOL_GPL(…); void mpi_subm(MPI w, MPI u, MPI v, MPI m) { … } EXPORT_SYMBOL_GPL(…);