Created KyberVector struct and refactored code accordingly. #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: hax | |
on: | |
push: | |
branches: ["dev"] | |
paths: | |
- 'specs/kyber/src/**' | |
- 'src/kem/kyber768/**' | |
- 'src/kem/kyber768.rs' | |
pull_request: | |
branches: ["dev"] | |
paths: | |
- 'specs/kyber/src/**' | |
- 'src/kem/kyber768/**' | |
- 'src/kem/kyber768.rs' | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
hax: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: π¨ OCaml Setup | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: 4.14.1 | |
- name: ‡ Clone hax repository | |
uses: actions/checkout@v4 | |
with: | |
repository: hacspec/hacspec-v2 | |
path: hax | |
- name: π¨ Setup hax | |
working-directory: hax | |
run: | | |
sudo apt-get update | |
sudo apt-get install --yes nodejs | |
./setup.sh | |
- name: ππ»ββοΈ Run hax on Kyber reference implementation | |
run: | | |
eval $(opam env) | |
cargo hax into -i '-** +kem::kyber768::** -kem::kyber768::arithmetic::mutable_operations::**' fstar | |
- name: ππ»ββοΈ Run hax on Kyber specification | |
working-directory: specs/kyber | |
run: | | |
eval $(opam env) | |
cargo hax into fstar |