aboutsummaryrefslogblamecommitdiff
path: root/stm32/modexpng_util.h
blob: a209f318c027f33607e9434fe6e922f7397af8c1 (plain) (tree)





























                                                                     
//
// 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
//