polyveccompress function
Applies polycompress to each polynomial and concatenates.
Implementation
Uint8List polyveccompress(PolyVec v) {
Uint8List r = Uint8List(KYBER_POLYVECCOMPRESSEDBYTES);
for (int i = 0; i < KYBER_K; i++) {
Uint8List t = polycompress(v.vec[i]);
r.setRange(i * KYBER_POLYCOMPRESSEDBYTES, (i + 1) * KYBER_POLYCOMPRESSEDBYTES, t);
}
return r;
}