├── .editorconfig ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── aes_otf_saes64.c ├── aes_otf_saes64.h ├── aes_saes32.c ├── aes_saes32.h ├── aes_saes64.c ├── aes_saes64.h ├── aes_test.c ├── aes_wrap.c ├── aes_wrap.h ├── asm ├── README.md ├── saes32_c0.h ├── saes32_dec.S ├── saes32_enc.S ├── saes32_wrap.h ├── sm4_encdec.S └── sm4_encdec.h ├── bitmanip.c ├── bitmanip.h ├── doc ├── NIST.FIPS.197.pdf ├── gmt0002-2012sm4.pdf ├── lwaes.pdf ├── sm4en.pdf ├── sp800-38d.pdf └── test_gcm_ossl.c ├── gcm_gfmul.h ├── gcm_rv32b_gfmul.c ├── gcm_rv64b_gfmul.c ├── gcm_test.c ├── gcm_wrap.c ├── gcm_wrap.h ├── hdl ├── Makefile ├── README.md ├── saes32.v ├── saes32_tb.v ├── sboxes.v ├── synth.ys ├── tbref.txt └── yoparse.py ├── rv_endian.h ├── saes32.c ├── saes32.h ├── saes64.c ├── saes64.h ├── sboxes.c ├── sboxes.h ├── sm4_ssm4.c ├── sm4_test.c ├── sm4_wrap.h ├── test_hex.c ├── test_hex.h └── test_main.c /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/README.md -------------------------------------------------------------------------------- /aes_otf_saes64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/aes_otf_saes64.c -------------------------------------------------------------------------------- /aes_otf_saes64.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/aes_otf_saes64.h -------------------------------------------------------------------------------- /aes_saes32.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/aes_saes32.c -------------------------------------------------------------------------------- /aes_saes32.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/aes_saes32.h -------------------------------------------------------------------------------- /aes_saes64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/aes_saes64.c -------------------------------------------------------------------------------- /aes_saes64.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/aes_saes64.h -------------------------------------------------------------------------------- /aes_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/aes_test.c -------------------------------------------------------------------------------- /aes_wrap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/aes_wrap.c -------------------------------------------------------------------------------- /aes_wrap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/aes_wrap.h -------------------------------------------------------------------------------- /asm/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/asm/README.md -------------------------------------------------------------------------------- /asm/saes32_c0.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/asm/saes32_c0.h -------------------------------------------------------------------------------- /asm/saes32_dec.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/asm/saes32_dec.S -------------------------------------------------------------------------------- /asm/saes32_enc.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/asm/saes32_enc.S -------------------------------------------------------------------------------- /asm/saes32_wrap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/asm/saes32_wrap.h -------------------------------------------------------------------------------- /asm/sm4_encdec.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/asm/sm4_encdec.S -------------------------------------------------------------------------------- /asm/sm4_encdec.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/asm/sm4_encdec.h -------------------------------------------------------------------------------- /bitmanip.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/bitmanip.c -------------------------------------------------------------------------------- /bitmanip.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/bitmanip.h -------------------------------------------------------------------------------- /doc/NIST.FIPS.197.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/doc/NIST.FIPS.197.pdf -------------------------------------------------------------------------------- /doc/gmt0002-2012sm4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/doc/gmt0002-2012sm4.pdf -------------------------------------------------------------------------------- /doc/lwaes.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/doc/lwaes.pdf -------------------------------------------------------------------------------- /doc/sm4en.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/doc/sm4en.pdf -------------------------------------------------------------------------------- /doc/sp800-38d.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/doc/sp800-38d.pdf -------------------------------------------------------------------------------- /doc/test_gcm_ossl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/doc/test_gcm_ossl.c -------------------------------------------------------------------------------- /gcm_gfmul.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/gcm_gfmul.h -------------------------------------------------------------------------------- /gcm_rv32b_gfmul.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/gcm_rv32b_gfmul.c -------------------------------------------------------------------------------- /gcm_rv64b_gfmul.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/gcm_rv64b_gfmul.c -------------------------------------------------------------------------------- /gcm_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/gcm_test.c -------------------------------------------------------------------------------- /gcm_wrap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/gcm_wrap.c -------------------------------------------------------------------------------- /gcm_wrap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/gcm_wrap.h -------------------------------------------------------------------------------- /hdl/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/hdl/Makefile -------------------------------------------------------------------------------- /hdl/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/hdl/README.md -------------------------------------------------------------------------------- /hdl/saes32.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/hdl/saes32.v -------------------------------------------------------------------------------- /hdl/saes32_tb.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/hdl/saes32_tb.v -------------------------------------------------------------------------------- /hdl/sboxes.v: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/hdl/sboxes.v -------------------------------------------------------------------------------- /hdl/synth.ys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/hdl/synth.ys -------------------------------------------------------------------------------- /hdl/tbref.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/hdl/tbref.txt -------------------------------------------------------------------------------- /hdl/yoparse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/hdl/yoparse.py -------------------------------------------------------------------------------- /rv_endian.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/rv_endian.h -------------------------------------------------------------------------------- /saes32.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/saes32.c -------------------------------------------------------------------------------- /saes32.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/saes32.h -------------------------------------------------------------------------------- /saes64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/saes64.c -------------------------------------------------------------------------------- /saes64.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/saes64.h -------------------------------------------------------------------------------- /sboxes.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/sboxes.c -------------------------------------------------------------------------------- /sboxes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/sboxes.h -------------------------------------------------------------------------------- /sm4_ssm4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/sm4_ssm4.c -------------------------------------------------------------------------------- /sm4_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/sm4_test.c -------------------------------------------------------------------------------- /sm4_wrap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/sm4_wrap.h -------------------------------------------------------------------------------- /test_hex.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/test_hex.c -------------------------------------------------------------------------------- /test_hex.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/test_hex.h -------------------------------------------------------------------------------- /test_main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjosaarinen/lwaes_isa/HEAD/test_main.c --------------------------------------------------------------------------------