6
6
* API for the MPI library, and may change at any time.
7
7
* Application programs that use libmpi should NOT include this header file.
9
* ***** BEGIN LICENSE BLOCK *****
10
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
12
* The contents of this file are subject to the Mozilla Public License Version
13
* 1.1 (the "License"); you may not use this file except in compliance with
14
* the License. You may obtain a copy of the License at
15
* http://www.mozilla.org/MPL/
17
* Software distributed under the License is distributed on an "AS IS" basis,
18
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
19
* for the specific language governing rights and limitations under the
22
* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
24
* The Initial Developer of the Original Code is
25
* Michael J. Fromberger.
26
* Portions created by the Initial Developer are Copyright (C) 1998
27
* the Initial Developer. All Rights Reserved.
30
* Netscape Communications Corporation
32
* Alternatively, the contents of this file may be used under the terms of
33
* either the GNU General Public License Version 2 or later (the "GPL"), or
34
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
35
* in which case the provisions of the GPL or the LGPL are applicable instead
36
* of those above. If you wish to allow use of your version of this file only
37
* under the terms of either the GPL or the LGPL, and not to allow others to
38
* use your version of this file under the terms of the MPL, indicate your
39
* decision by deleting the provisions above and replace them with the notice
40
* and other provisions required by the GPL or the LGPL. If you do not delete
41
* the provisions above, a recipient may use your version of this file under
42
* the terms of any one of the MPL, the GPL or the LGPL.
44
* ***** END LICENSE BLOCK ***** */
45
/* $Id: mpi-priv.h,v 1.23 2010/05/02 22:36:41 nelson%bolyard.com Exp $ */
9
* This Source Code Form is subject to the terms of the Mozilla Public
10
* License, v. 2.0. If a copy of the MPL was not distributed with this
11
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
12
/* $Id: mpi-priv.h,v 1.25 2012/04/25 14:49:50 gerv%gerv.net Exp $ */
46
13
#ifndef _MPI_PRIV_H_
47
14
#define _MPI_PRIV_H_ 1
295
262
mp_int N; /* modulus N */
296
263
mp_digit n0prime; /* n0' = - (n0 ** -1) mod MP_RADIX */
297
mp_size b; /* R == 2 ** b, also b = # significant bits in N */
298
264
} mp_mont_modulus;
300
266
mp_err s_mp_mul_mont(const mp_int *a, const mp_int *b, mp_int *c,