]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/usb/host/dwc_common_port/dwc_modpow.h
3 * See dwc_modpow.c for license and changes
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.
23 typedef uint32_t BignumInt
;
24 typedef uint64_t BignumDblInt
;
25 typedef BignumInt
*Bignum
;
27 /* Compute modular exponentiaion */
28 extern Bignum
dwc_modpow(void *mem_ctx
, Bignum base_in
, Bignum exp
, Bignum mod
);
34 #endif /* _LINUX_BIGNUM_H */