OLD | NEW |
1 /* Software-Based Trusted Platform Module (TPM) Emulator for Linux | 1 /* Software-based Trusted Platform Module (TPM) Emulator |
2 * Copyright (C) 2006 Mario Strasser <mast@gmx.net>, | 2 * Copyright (C) 2004-2010 Mario Strasser <mast@gmx.net> |
3 * Swiss Federal Institute of Technology (ETH) Zurich | |
4 * | 3 * |
5 * This module is free software; you can redistribute it and/or modify | 4 * This module is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License as published | 5 * it under the terms of the GNU General Public License as published |
7 * by the Free Software Foundation; either version 2 of the License, | 6 * by the Free Software Foundation; either version 2 of the License, |
8 * or (at your option) any later version. | 7 * or (at your option) any later version. |
9 * | 8 * |
10 * This module is distributed in the hope that it will be useful, | 9 * This module is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
14 * | 13 * |
15 * $Id$ | 14 * $Id: bn.h 364 2010-02-11 10:24:45Z mast $ |
16 */ | 15 */ |
17 | 16 |
18 #ifndef _BN_H_ | 17 #ifndef _BN_H_ |
19 #define _BN_H_ | 18 #define _BN_H_ |
20 | 19 |
21 #include <stddef.h> | 20 #include <stddef.h> |
22 #include <stdint.h> | 21 #include <stdint.h> |
23 #include <gmp.h> | 22 #include <gmp.h> |
24 | 23 |
25 typedef mpz_t tpm_bn_t; | 24 typedef mpz_t tpm_bn_t; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 71 |
73 void tpm_bn_tdiv_q(tpm_bn_t res, tpm_bn_t a, tpm_bn_t b); | 72 void tpm_bn_tdiv_q(tpm_bn_t res, tpm_bn_t a, tpm_bn_t b); |
74 | 73 |
75 void tpm_bn_gcd(tpm_bn_t res, tpm_bn_t a, tpm_bn_t b); | 74 void tpm_bn_gcd(tpm_bn_t res, tpm_bn_t a, tpm_bn_t b); |
76 | 75 |
77 void tpm_bn_invert(tpm_bn_t res, tpm_bn_t a, tpm_bn_t b); | 76 void tpm_bn_invert(tpm_bn_t res, tpm_bn_t a, tpm_bn_t b); |
78 | 77 |
79 void tpm_bn_nextprime(tpm_bn_t res, tpm_bn_t a); | 78 void tpm_bn_nextprime(tpm_bn_t res, tpm_bn_t a); |
80 | 79 |
81 #endif /* _BN_H_ */ | 80 #endif /* _BN_H_ */ |
OLD | NEW |