USB: fix Coding Style.
[firefly-linux-kernel-4.4.55.git] / drivers / usb / dwc_otg_310 / common_port / dwc_modpow.h
1 /*
2  * dwc_modpow.h
3  * See dwc_modpow.c for license and changes
4  */
5 #ifndef _DWC_MODPOW_H
6 #define _DWC_MODPOW_H
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 #include "dwc_os.h"
13
14 /** @file
15  *
16  * This file defines the module exponentiation function which is only used
17  * internally by the DWC UWB modules for calculation of PKs during numeric
18  * association.  The routine is taken from the PUTTY, an open source terminal
19  * emulator.  The PUTTY License is preserved in the dwc_modpow.c file.
20  *
21  */
22
23 typedef uint32_t BignumInt;
24 typedef uint64_t BignumDblInt;
25 typedef uint32_t *Bignum;
26
27 /* Compute modular exponentiaion */
28 extern Bignum dwc_modpow(void *mem_ctx, Bignum base_in, Bignum exp, Bignum mod);
29
30 #ifdef __cplusplus
31 }
32 #endif
33
34 #endif /* _LINUX_BIGNUM_H */