wiiqt6/WiiQt/bn.h
giantpune@gmail.com cc09d9e72f * and these
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@37 389f4c8b-5dfe-645f-db0e-df882bc27289
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