This repository implements Ascon Cryptography algortihm for RISCV ISA. S-box and rotation operations are made with special RISC-V instructions, sbox and rot.
- RISCV GNU Toolchain should be installed for riscv64-unknown-elf-gcc compiler
- Spike and pk should be installed for simulating compiled elf binary. (pk should be installed for RV32)
Clone this repository.
git clone git@github.com:oaltinay/ascon.git
Go to repository.
cd ascon
Build and run.
./build_run.sh