|
|
@@ -27,17 +27,17 @@ void PQCLEAN_KYBER102490S_CLEAN_polyvec_compress(uint8_t r[KYBER_POLYVECCOMPRESS |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
r[ 0] = (t[0] >> 0); |
|
|
|
r[ 1] = (t[0] >> 8) | (t[1] << 3); |
|
|
|
r[ 2] = (t[1] >> 5) | (t[2] << 6); |
|
|
|
r[ 3] = (t[2] >> 2); |
|
|
|
r[ 4] = (t[2] >> 10) | (t[3] << 1); |
|
|
|
r[ 5] = (t[3] >> 7) | (t[4] << 4); |
|
|
|
r[ 6] = (t[4] >> 4) | (t[5] << 7); |
|
|
|
r[ 7] = (t[5] >> 1); |
|
|
|
r[ 8] = (t[5] >> 9) | (t[6] << 2); |
|
|
|
r[ 9] = (t[6] >> 6) | (t[7] << 5); |
|
|
|
r[10] = (t[7] >> 3); |
|
|
|
r[ 0] = (uint8_t)(t[0] >> 0); |
|
|
|
r[ 1] = (uint8_t)((t[0] >> 8) | (t[1] << 3)); |
|
|
|
r[ 2] = (uint8_t)((t[1] >> 5) | (t[2] << 6)); |
|
|
|
r[ 3] = (uint8_t)(t[2] >> 2); |
|
|
|
r[ 4] = (uint8_t)((t[2] >> 10) | (t[3] << 1)); |
|
|
|
r[ 5] = (uint8_t)((t[3] >> 7) | (t[4] << 4)); |
|
|
|
r[ 6] = (uint8_t)((t[4] >> 4) | (t[5] << 7)); |
|
|
|
r[ 7] = (uint8_t)(t[5] >> 1); |
|
|
|
r[ 8] = (uint8_t)((t[5] >> 9) | (t[6] << 2)); |
|
|
|
r[ 9] = (uint8_t)((t[6] >> 6) | (t[7] << 5)); |
|
|
|
r[10] = (uint8_t)(t[7] >> 3); |
|
|
|
r += 11; |
|
|
|
} |
|
|
|
} |
|
|
|