diff options
author | René van Dorst <opensource@vdorst.com> | 2018-05-30 17:27:48 +0200 |
---|---|---|
committer | René van Dorst <opensource@vdorst.com> | 2018-05-30 20:01:07 +0200 |
commit | b01d95061c165864767db61abcea7f99e4daf703 (patch) | |
tree | 3a51a8ad1d44aae6d0fd7c88b87069f9c623e849 | |
parent | Set POLY1305_OPAQUE_LEN at compiletime. (diff) | |
download | wireguard-monolithic-historical-b01d95061c165864767db61abcea7f99e4daf703.tar.xz wireguard-monolithic-historical-b01d95061c165864767db61abcea7f99e4daf703.zip |
poly1305: mips32r2: Reduce opaque size.
Signed-off-by: René van Dorst <opensource@vdorst.com>
-rw-r--r-- | src/crypto/poly1305.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crypto/poly1305.h b/src/crypto/poly1305.h index 7311d46..1405ddb 100644 --- a/src/crypto/poly1305.h +++ b/src/crypto/poly1305.h @@ -14,8 +14,9 @@ enum poly1305_lengths { POLY1305_MAC_SIZE = 16 }; - -#if !defined(POLY1305_OPAQUE_LEN) +#if defined(CONFIG_MIPS) && defined(CONFIG_CPU_MIPS32_R2) +#define POLY1305_OPAQUE_LEN (10 * sizeof(u32)) +#else /* Default POLY1305_OPAQUE_LEN, can be removed when all lengths are known. */ #define POLY1305_OPAQUE_LEN (24 * sizeof(u64)) #endif |