mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-30 03:11:43 +00:00
18 lines
369 B
C
18 lines
369 B
C
|
|
||
|
#include "vec.h"
|
||
|
|
||
|
#include "params.h"
|
||
|
|
||
|
void PQCLEAN_MCELIECE348864_SSE_vec_mul(uint64_t *h, const uint64_t *f, const uint64_t *g) {
|
||
|
PQCLEAN_MCELIECE348864_SSE_vec_mul_asm(h, f, g, 8);
|
||
|
}
|
||
|
|
||
|
void PQCLEAN_MCELIECE348864_SSE_vec_add(uint64_t *h, const uint64_t *f, const uint64_t *g) {
|
||
|
int b;
|
||
|
|
||
|
for (b = 0; b < GFBITS; b++) {
|
||
|
h[b] = f[b] ^ g[b];
|
||
|
}
|
||
|
}
|
||
|
|