wiiqt/WiiQt/bn.h
giantpune@gmail.com 2d6a6ee9f1 * and these
2011-01-02 06:48:17 +00:00

12 lines
440 B
C

#ifndef BN_H
#define BN_H
#include "includes.h"
int bn_compare(quint8 *a, quint8 *b, quint32 n);
void bn_sub_modulus(quint8 *a, quint8 *N, quint32 n);
void bn_add(quint8 *d, quint8 *a, quint8 *b, quint8 *N, quint32 n);
void bn_mul(quint8 *d, quint8 *a, quint8 *b, quint8 *N, quint32 n);
void bn_exp(quint8 *d, quint8 *a, quint8 *N, quint32 n, quint8 *e, quint32 en);
void bn_inv(quint8 *d, quint8 *a, quint8 *N, quint32 n);
#endif // BN_H