Browse Source

remove some unused functions

master
Matthias J. Kannwischer 5 years ago
committed by Douglas Stebila
parent
commit
9d8d7d9bee
2 changed files with 0 additions and 24 deletions
  1. +0
    -12
      crypto_sign/rainbowIa-classic/clean/gf.c
  2. +0
    -12
      crypto_sign/rainbowIa-cyclic/clean/gf.c

+ 0
- 12
crypto_sign/rainbowIa-classic/clean/gf.c View File

@@ -91,12 +91,6 @@ uint8_t PQCLEAN_RAINBOWIACLASSIC_CLEAN_gf16_inv(uint8_t a) {
return gf16_mul(a8, a6); 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 // gf16 := gf4[y]/y^2+y+x


uint32_t PQCLEAN_RAINBOWIACLASSIC_CLEAN_gf16v_mul_u32(uint32_t a, uint8_t b) { 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)); 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 #else
uint8_t PQCLEAN_RAINBOWIACLASSIC_CLEAN_gf256_is_nonzero(uint8_t a) { uint8_t PQCLEAN_RAINBOWIACLASSIC_CLEAN_gf256_is_nonzero(uint8_t a) {
unsigned a8 = a; unsigned a8 = a;


+ 0
- 12
crypto_sign/rainbowIa-cyclic/clean/gf.c View File

@@ -91,12 +91,6 @@ uint8_t PQCLEAN_RAINBOWIACYCLIC_CLEAN_gf16_inv(uint8_t a) {
return gf16_mul(a8, a6); 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 // gf16 := gf4[y]/y^2+y+x


uint32_t PQCLEAN_RAINBOWIACYCLIC_CLEAN_gf16v_mul_u32(uint32_t a, uint8_t b) { 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)); 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 #else
uint8_t PQCLEAN_RAINBOWIACYCLIC_CLEAN_gf256_is_nonzero(uint8_t a) { uint8_t PQCLEAN_RAINBOWIACYCLIC_CLEAN_gf256_is_nonzero(uint8_t a) {
unsigned a8 = a; unsigned a8 = a;


Loading…
Cancel
Save