blob: a209f318c027f33607e9434fe6e922f7397af8c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
//
// helper precomputation routines for the "modexpng" core
//
//
// headers
//
#include <stdint.h>
//
// defined values
//
#define UINT32_BITS (sizeof(uint32_t) << 3)
#define UINT16_BITS (sizeof(uint16_t) << 3)
#define BUF_NUM_WORDS (4096/UINT32_BITS)
//
// prototypes
//
void _calc_montgomery_factor(uint32_t, const uint32_t *, uint32_t *);
void _calc_modulus_coeff(uint32_t, const uint32_t *, uint32_t *);
//
// end-of-file
//
|