diff options
author | René van Dorst <opensource@vdorst.com> | 2018-05-30 17:28:31 +0200 |
---|---|---|
committer | René van Dorst <opensource@vdorst.com> | 2018-05-30 20:01:07 +0200 |
commit | 805503a887f62a074adcc35186a4fc34ce706d6f (patch) | |
tree | 01b561107e0efe70209391926a80832ef58a839d | |
parent | poly1305: mips32r2: Reduce opaque size. (diff) | |
download | wireguard-monolithic-historical-805503a887f62a074adcc35186a4fc34ce706d6f.tar.xz wireguard-monolithic-historical-805503a887f62a074adcc35186a4fc34ce706d6f.zip |
poly1305: mips64: Reduce opaque size.
Signed-off-by: René van Dorst <opensource@vdorst.com>
-rw-r--r-- | src/crypto/poly1305.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crypto/poly1305.h b/src/crypto/poly1305.h index 1405ddb..f53c0ea 100644 --- a/src/crypto/poly1305.h +++ b/src/crypto/poly1305.h @@ -16,6 +16,8 @@ enum poly1305_lengths { #if defined(CONFIG_MIPS) && defined(CONFIG_CPU_MIPS32_R2) #define POLY1305_OPAQUE_LEN (10 * sizeof(u32)) +#elif defined(CONFIG_MIPS) && defined(CONFIG_64BIT) +#define POLY1305_OPAQUE_LEN (6 * sizeof(u64)) #else /* Default POLY1305_OPAQUE_LEN, can be removed when all lengths are known. */ #define POLY1305_OPAQUE_LEN (24 * sizeof(u64)) |