aboutsummaryrefslogtreecommitdiff
path: root/src/model/c/src/montgomery_array.h
blob: 48f0f393200dfa44a29ff4effde848842d4e4f81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * montgomery_array.h
 *
 *  Created on: Mar 3, 2015
 *      Author: psjm
 */

#ifndef MONTGOMERY_ARRAY_H_
#define MONTGOMERY_ARRAY_H_

void mont_prod_array(uint32_t length, uint32_t *A, uint32_t *B, uint32_t *M,
		uint32_t *s);
void mod_exp_array(uint32_t length, uint32_t *X, uint32_t *E, uint32_t *M, uint32_t *Z);


void mont_prod_array2(uint32_t explength, uint32_t modlength, uint32_t *A, uint32_t *B, uint32_t *M,
		uint32_t *s);

void mod_exp_array2(uint32_t explength, uint32_t modlength, uint32_t *X, uint32_t *E, uint32_t *M, uint32_t *Z);

#endif /* MONTGOMERY_ARRAY_H_ */