35 lines
788 B
C
35 lines
788 B
C
/*
|
|
* gsc3280_modpow.h
|
|
* See gsc3280_modpow.c for license and changes
|
|
*/
|
|
#ifndef _GSC3280_MODPOW_H
|
|
#define _GSC3280_MODPOW_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "gsc3280_os.h"
|
|
|
|
/** @file
|
|
*
|
|
* This file defines the module exponentiation function which is only used
|
|
* internally by the GSC3280 UWB modules for calculation of PKs during numeric
|
|
* association. The routine is taken from the PUTTY, an open source terminal
|
|
* emulator. The PUTTY License is preserved in the gsc3280_modpow.c file.
|
|
*
|
|
*/
|
|
|
|
typedef uint32_t BignumInt;
|
|
typedef uint64_t BignumDblInt;
|
|
typedef BignumInt *Bignum;
|
|
|
|
/* Compute modular exponentiaion */
|
|
extern Bignum gsc3280_modpow(void *mem_ctx, Bignum base_in, Bignum exp, Bignum mod);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _LINUX_BIGNUM_H */
|