Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement CVA6 ROT #475

Open
kasumi0223 opened this issue Nov 18, 2024 · 0 comments
Open

Implement CVA6 ROT #475

kasumi0223 opened this issue Nov 18, 2024 · 0 comments

Comments

@kasumi0223
Copy link

kasumi0223 commented Nov 18, 2024

I'm trying to modify the CVA6 bootrom code to implement the CVA6 RoT.
I have done these steps in CVA6 bootrom repository:

  • add ed25519, sha3 and other source code to CVA6 bootrom repository
  • copy bootloader function to /fpga/src/bootrom/src/main.c
  • modify /fpga/src/bootrom/linker.lds to include sanctum_params.lds
  • replace sbi_memset(sm_hash, 0, MDSIZE); with sbi_memcpy(sm_hash, sanctum_sm_hash, MDSIZE); in sm_copy_key()

But when I ran attestor.ke, sanctum_sm_hash and sanctum_sm_signature were all zero.
I printed the value and address of sanctum_sm_hash during CVA6 booting. The hash value is correct but address is wrong (should be 0x801ff080 according to .lds file).

Where did I do wrong? Or did I miss any steps?

These are files that I modified from CVA6 bootrom repository.
code.zip

@kasumi0223 kasumi0223 changed the title CVA6 ROT Implement CVA6 ROT Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant