├── .editorconfig ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── aes ├── aes_api.c ├── aes_api.h ├── aes_otf_rvk64.c ├── aes_otf_rvk64.h ├── aes_rvk32.c ├── aes_rvk32.h ├── aes_rvk64.c └── aes_rvk64.h ├── gcm ├── gcm_api.c ├── gcm_api.h ├── gcm_gfmul.h ├── gcm_gfmul_rv32.c └── gcm_gfmul_rv64.c ├── present ├── present.c ├── present_api.h ├── present_rv32.c └── present_rv64.c ├── riscv_crypto.h ├── riscv_crypto.md ├── riscv_crypto_scalar.h ├── rv32.mk ├── rv64.mk ├── rvk_asm_intrin.h ├── rvk_emu_intrin.c ├── rvk_emu_intrin.h ├── sha2 ├── sha2_api.c ├── sha2_api.h ├── sha2_cf256_rvk.c ├── sha2_cf512_rvk32.c └── sha2_cf512_rvk64.c ├── sha3 ├── sha3_api.c ├── sha3_api.h ├── sha3_f1600_rvb32.c └── sha3_f1600_rvb64.c ├── sm3 ├── sm3_api.c ├── sm3_api.h └── sm3_cf256_rvk.c ├── sm4 ├── sm4_api.h └── sm4_rvk.c └── test ├── rv_endian.h ├── test_aes.c ├── test_gcm.c ├── test_main.c ├── test_present.c ├── test_rvkat.h ├── test_rvkat_sio.c ├── test_sha2.c ├── test_sha3.c ├── test_sm3.c ├── test_sm4.c └── test_zkr.c /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/README.md -------------------------------------------------------------------------------- /aes/aes_api.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/aes/aes_api.c -------------------------------------------------------------------------------- /aes/aes_api.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/aes/aes_api.h -------------------------------------------------------------------------------- /aes/aes_otf_rvk64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/aes/aes_otf_rvk64.c -------------------------------------------------------------------------------- /aes/aes_otf_rvk64.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/aes/aes_otf_rvk64.h -------------------------------------------------------------------------------- /aes/aes_rvk32.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/aes/aes_rvk32.c -------------------------------------------------------------------------------- /aes/aes_rvk32.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/aes/aes_rvk32.h -------------------------------------------------------------------------------- /aes/aes_rvk64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/aes/aes_rvk64.c -------------------------------------------------------------------------------- /aes/aes_rvk64.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/aes/aes_rvk64.h -------------------------------------------------------------------------------- /gcm/gcm_api.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/gcm/gcm_api.c -------------------------------------------------------------------------------- /gcm/gcm_api.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/gcm/gcm_api.h -------------------------------------------------------------------------------- /gcm/gcm_gfmul.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/gcm/gcm_gfmul.h -------------------------------------------------------------------------------- /gcm/gcm_gfmul_rv32.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/gcm/gcm_gfmul_rv32.c -------------------------------------------------------------------------------- /gcm/gcm_gfmul_rv64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/gcm/gcm_gfmul_rv64.c -------------------------------------------------------------------------------- /present/present.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/present/present.c -------------------------------------------------------------------------------- /present/present_api.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/present/present_api.h -------------------------------------------------------------------------------- /present/present_rv32.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/present/present_rv32.c -------------------------------------------------------------------------------- /present/present_rv64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/present/present_rv64.c -------------------------------------------------------------------------------- /riscv_crypto.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/riscv_crypto.h -------------------------------------------------------------------------------- /riscv_crypto.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/riscv_crypto.md -------------------------------------------------------------------------------- /riscv_crypto_scalar.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/riscv_crypto_scalar.h -------------------------------------------------------------------------------- /rv32.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/rv32.mk -------------------------------------------------------------------------------- /rv64.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/rv64.mk -------------------------------------------------------------------------------- /rvk_asm_intrin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/rvk_asm_intrin.h -------------------------------------------------------------------------------- /rvk_emu_intrin.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/rvk_emu_intrin.c -------------------------------------------------------------------------------- /rvk_emu_intrin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/rvk_emu_intrin.h -------------------------------------------------------------------------------- /sha2/sha2_api.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/sha2/sha2_api.c -------------------------------------------------------------------------------- /sha2/sha2_api.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/sha2/sha2_api.h -------------------------------------------------------------------------------- /sha2/sha2_cf256_rvk.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/sha2/sha2_cf256_rvk.c -------------------------------------------------------------------------------- /sha2/sha2_cf512_rvk32.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/sha2/sha2_cf512_rvk32.c -------------------------------------------------------------------------------- /sha2/sha2_cf512_rvk64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/sha2/sha2_cf512_rvk64.c -------------------------------------------------------------------------------- /sha3/sha3_api.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/sha3/sha3_api.c -------------------------------------------------------------------------------- /sha3/sha3_api.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/sha3/sha3_api.h -------------------------------------------------------------------------------- /sha3/sha3_f1600_rvb32.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/sha3/sha3_f1600_rvb32.c -------------------------------------------------------------------------------- /sha3/sha3_f1600_rvb64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/sha3/sha3_f1600_rvb64.c -------------------------------------------------------------------------------- /sm3/sm3_api.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/sm3/sm3_api.c -------------------------------------------------------------------------------- /sm3/sm3_api.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/sm3/sm3_api.h -------------------------------------------------------------------------------- /sm3/sm3_cf256_rvk.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/sm3/sm3_cf256_rvk.c -------------------------------------------------------------------------------- /sm4/sm4_api.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/sm4/sm4_api.h -------------------------------------------------------------------------------- /sm4/sm4_rvk.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/sm4/sm4_rvk.c -------------------------------------------------------------------------------- /test/rv_endian.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/test/rv_endian.h -------------------------------------------------------------------------------- /test/test_aes.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/test/test_aes.c -------------------------------------------------------------------------------- /test/test_gcm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/test/test_gcm.c -------------------------------------------------------------------------------- /test/test_main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/test/test_main.c -------------------------------------------------------------------------------- /test/test_present.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/test/test_present.c -------------------------------------------------------------------------------- /test/test_rvkat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/test/test_rvkat.h -------------------------------------------------------------------------------- /test/test_rvkat_sio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/test/test_rvkat_sio.c -------------------------------------------------------------------------------- /test/test_sha2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/test/test_sha2.c -------------------------------------------------------------------------------- /test/test_sha3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/test/test_sha3.c -------------------------------------------------------------------------------- /test/test_sm3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/test/test_sm3.c -------------------------------------------------------------------------------- /test/test_sm4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/test/test_sm4.c -------------------------------------------------------------------------------- /test/test_zkr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rvkrypto/rvkrypto-fips/HEAD/test/test_zkr.c --------------------------------------------------------------------------------