2020-08-29 01:18:54 +01:00
|
|
|
#include "crypto_encode_256x2.h"
|
|
|
|
|
|
|
|
|
|
|
|
void PQCLEAN_NTRULPR857_CLEAN_crypto_encode_256x2(unsigned char *s, const void *v) {
|
|
|
|
const unsigned char *r = v;
|
|
|
|
int i;
|
|
|
|
for (i = 0; i < 32; ++i) {
|
|
|
|
s[i] = 0;
|
|
|
|
}
|
|
|
|
for (i = 0; i < 256; ++i) {
|
2020-09-01 12:55:46 +01:00
|
|
|
s[i >> 3] |= (unsigned char) ((r[i] & 1) << (i & 7));
|
2020-08-29 01:18:54 +01:00
|
|
|
}
|
|
|
|
}
|