Added "ctmulq" implementation of Poly1305 (using 64->128 multiplications when available).
This commit is contained in:
parent
2f88a67304
commit
5db2d48b12
10 changed files with 588 additions and 17 deletions
11
src/inner.h
11
src/inner.h
|
|
@ -209,6 +209,17 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Detect support for 128-bit integers.
|
||||
*/
|
||||
#if !defined BR_INT128 && !defined BR_UMUL128
|
||||
#ifdef __SIZEOF_INT128__
|
||||
#define BR_INT128 1
|
||||
#elif _M_X64
|
||||
#define BR_UMUL128 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* ==================================================================== */
|
||||
/*
|
||||
* Encoding/decoding functions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue