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

Array extraction: use only byte arrays #987

Open
cassiersg opened this issue Dec 11, 2024 · 0 comments
Open

Array extraction: use only byte arrays #987

cassiersg opened this issue Dec 11, 2024 · 0 comments
Labels
EasyCrypt extraction and model refactoring

Comments

@cassiersg
Copy link
Collaborator

  1. Introduce a new ByteArray theory in eclib (similar to the existing WArray).
    • Have get16_le, get16_be, get32_le..., get16_le_direct, ... (do you agree on the name ?)
  2. Introduce a new SubByteArray theory relating two ByteArrays of different sizes.
    • get_sub_direct, set_sub_direct
    • Do we need things like get_sub_scaled16 (which is get_sub_direct, but with index multiplied by 2)?
  3. Introduce word extension theories for bijection between words and byte arrays (W8 <-> ByteArray1, W16 <-> ByteArray2...).
  4. Extract all jasmin array operations to ByteArray and SubByteArray.

cc @bacelar @mbbarbosa @bgregoir @vbgl

@cassiersg cassiersg added refactoring EasyCrypt extraction and model labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EasyCrypt extraction and model refactoring
Projects
None yet
Development

No branches or pull requests

1 participant