diff options
author | dd <dd@FreeBSD.org> | 2001-07-29 08:49:15 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-07-29 08:49:15 +0000 |
commit | 2aadb933013c79e6433612e84aeae7f3138631d1 (patch) | |
tree | 8c701e3e56d4c933442333baaf7f81d37ac82860 /lib/libmp/mp.h | |
parent | 5a0027f1f60905e1feb438914fa87891d46bee9e (diff) | |
download | FreeBSD-src-2aadb933013c79e6433612e84aeae7f3138631d1.zip FreeBSD-src-2aadb933013c79e6433612e84aeae7f3138631d1.tar.gz |
This is the traditional BSD libmp interface implemented in terms of
the OpenSSL BIGNUM interface. It is provided for compatibility only
and should not be used in new code.
Diffstat (limited to 'lib/libmp/mp.h')
-rw-r--r-- | lib/libmp/mp.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/libmp/mp.h b/lib/libmp/mp.h new file mode 100644 index 0000000..056c6ba --- /dev/null +++ b/lib/libmp/mp.h @@ -0,0 +1,30 @@ +/* $FreeBSD$ */ + +#ifndef _MP_H_ +#define _MP_H_ + +#include <openssl/bn.h> + +typedef struct _mint { + BIGNUM *bn; +} MINT; + +void gcd(const MINT *, const MINT *, MINT *); +MINT *itom(short); +void madd(const MINT *, const MINT *, MINT *); +int mcmp(const MINT *, const MINT *); +void mdiv(const MINT *, const MINT *, MINT *, MINT *); +void mfree(MINT *); +void min(MINT *); +void mout(const MINT *); +void move(const MINT *, MINT *); +void msqrt(const MINT *, MINT *, MINT *); +void msub(const MINT *, const MINT *, MINT *); +char *mtox(const MINT *); +void mult(const MINT *, const MINT *, MINT *); +void pow(const MINT *, const MINT *, const MINT *, MINT *); +void rpow(const MINT *, short, MINT *); +void sdiv(const MINT *, short, MINT *, short *); +MINT *xtom(const char *); + +#endif /* !_MP_H_ */ |