2013-02-16 04:22:16 +00:00
|
|
|
#ifndef BN_H
|
|
|
|
#define BN_H
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
#ifndef __DOXYGEN_IGNORE__
|
|
|
|
|
2014-04-20 09:14:15 +00:00
|
|
|
#include "Athena/Types.hpp"
|
2013-02-16 04:22:16 +00:00
|
|
|
int bn_compare(Uint8 *a, Uint8 *b, Uint32 n);
|
|
|
|
void bn_sub_modulus(Uint8 *a, Uint8 *N, Uint32 n);
|
|
|
|
void bn_add(Uint8 *d, Uint8 *a, Uint8 *b, Uint8 *N, Uint32 n);
|
|
|
|
void bn_mul(Uint8 *d, Uint8 *a, Uint8 *b, Uint8 *N, Uint32 n);
|
|
|
|
void bn_exp(Uint8 *d, Uint8 *a, Uint8 *N, Uint32 n, Uint8 *e, Uint32 en);
|
|
|
|
void bn_inv(Uint8 *d, Uint8 *a, Uint8 *N, Uint32 n);
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
#endif // __DOXYGEN_IGNORE__
|
2013-02-16 04:22:16 +00:00
|
|
|
#endif // BN_H
|