From 9d8d7d9bee07b4dee3811f6455e48cf0441e3515 Mon Sep 17 00:00:00 2001 From: "Matthias J. Kannwischer" Date: Tue, 18 Jun 2019 12:15:14 +0200 Subject: [PATCH] remove some unused functions --- crypto_sign/rainbowIa-classic/clean/gf.c | 12 ------------ crypto_sign/rainbowIa-cyclic/clean/gf.c | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/crypto_sign/rainbowIa-classic/clean/gf.c b/crypto_sign/rainbowIa-classic/clean/gf.c index 970d4c2e..04e371f1 100644 --- a/crypto_sign/rainbowIa-classic/clean/gf.c +++ b/crypto_sign/rainbowIa-classic/clean/gf.c @@ -91,12 +91,6 @@ uint8_t PQCLEAN_RAINBOWIACLASSIC_CLEAN_gf16_inv(uint8_t a) { return gf16_mul(a8, a6); } -static inline uint8_t gf16_mul_8(uint8_t a) { - uint8_t a0 = a & 3; - uint8_t a1 = a >> 2; - return (uint8_t)(gf4_mul_2(a0 ^ a1) << 2 | gf4_mul_3(a1)); -} - // gf16 := gf4[y]/y^2+y+x uint32_t PQCLEAN_RAINBOWIACLASSIC_CLEAN_gf16v_mul_u32(uint32_t a, uint8_t b) { @@ -140,12 +134,6 @@ uint8_t PQCLEAN_RAINBOWIACLASSIC_CLEAN_gf16v_reduce_u32(uint32_t a) { return (uint8_t)((r256 & 0xf) ^ (r256 >> 4)); } -static inline uint32_t gf16v_mul_8_u32(uint32_t a) { - uint32_t a1 = a & 0xcccccccc; - uint32_t a0 = (a << 2) & 0xcccccccc; - return gf4v_mul_2_u32(a0 ^ a1) | gf4v_mul_3_u32(a1 >> 2); -} - #else uint8_t PQCLEAN_RAINBOWIACLASSIC_CLEAN_gf256_is_nonzero(uint8_t a) { unsigned a8 = a; diff --git a/crypto_sign/rainbowIa-cyclic/clean/gf.c b/crypto_sign/rainbowIa-cyclic/clean/gf.c index fcff8b75..4671aaa8 100644 --- a/crypto_sign/rainbowIa-cyclic/clean/gf.c +++ b/crypto_sign/rainbowIa-cyclic/clean/gf.c @@ -91,12 +91,6 @@ uint8_t PQCLEAN_RAINBOWIACYCLIC_CLEAN_gf16_inv(uint8_t a) { return gf16_mul(a8, a6); } -static inline uint8_t gf16_mul_8(uint8_t a) { - uint8_t a0 = a & 3; - uint8_t a1 = a >> 2; - return (uint8_t)(gf4_mul_2(a0 ^ a1) << 2 | gf4_mul_3(a1)); -} - // gf16 := gf4[y]/y^2+y+x uint32_t PQCLEAN_RAINBOWIACYCLIC_CLEAN_gf16v_mul_u32(uint32_t a, uint8_t b) { @@ -140,12 +134,6 @@ uint8_t PQCLEAN_RAINBOWIACYCLIC_CLEAN_gf16v_reduce_u32(uint32_t a) { return (uint8_t)((r256 & 0xf) ^ (r256 >> 4)); } -static inline uint32_t gf16v_mul_8_u32(uint32_t a) { - uint32_t a1 = a & 0xcccccccc; - uint32_t a0 = (a << 2) & 0xcccccccc; - return gf4v_mul_2_u32(a0 ^ a1) | gf4v_mul_3_u32(a1 >> 2); -} - #else uint8_t PQCLEAN_RAINBOWIACYCLIC_CLEAN_gf256_is_nonzero(uint8_t a) { unsigned a8 = a;