mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 15:39:07 +00:00
Create nmake file for building on Windows and fix compilation error
This commit is contained in:
parent
e98d053623
commit
7c0ecc0cdb
4
.gitignore
vendored
4
.gitignore
vendored
@ -4,3 +4,7 @@ bin/
|
|||||||
*.a
|
*.a
|
||||||
*.so
|
*.so
|
||||||
*~
|
*~
|
||||||
|
|
||||||
|
# Object and library files on Windows
|
||||||
|
*.lib
|
||||||
|
*.obj
|
||||||
|
14
crypto_kem/kyber768/clean/Makefile.Microsoft_nmake
Normal file
14
crypto_kem/kyber768/clean/Makefile.Microsoft_nmake
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
LIB=libkyber768_clean.lib
|
||||||
|
|
||||||
|
OBJECTS=cbd.obj indcpa.obj kem.obj kex.obj ntt.obj poly.obj polyvec.obj precomp.obj reduce.obj verify.obj
|
||||||
|
|
||||||
|
CFLAGS=/I ..\..\..\common /W1 /WX # FIXME: ideally would use /W4 instead of /W1, but too many failures in Kyber right now
|
||||||
|
|
||||||
|
all: $(LIB)
|
||||||
|
|
||||||
|
$(LIB): $(OBJECTS)
|
||||||
|
LIB.EXE /OUT:$@ $**
|
||||||
|
|
||||||
|
clean:
|
||||||
|
DEL $(OBJECTS)
|
||||||
|
DEL $(LIB)
|
@ -133,7 +133,7 @@ void PQCLEAN_KYBER768_gen_matrix(polyvec *a, const unsigned char *seed,
|
|||||||
uint16_t val;
|
uint16_t val;
|
||||||
unsigned int nblocks;
|
unsigned int nblocks;
|
||||||
const unsigned int maxnblocks = 4;
|
const unsigned int maxnblocks = 4;
|
||||||
uint8_t buf[SHAKE128_RATE * maxnblocks];
|
uint8_t buf[SHAKE128_RATE * /* maxnblocks = */ 4];
|
||||||
int i, j;
|
int i, j;
|
||||||
uint64_t state[25]; // SHAKE state
|
uint64_t state[25]; // SHAKE state
|
||||||
unsigned char extseed[KYBER_SYMBYTES + 2];
|
unsigned char extseed[KYBER_SYMBYTES + 2];
|
||||||
|
Loading…
Reference in New Issue
Block a user