Open JoaoDiogoDuarte opened 1 month ago
Hey! I have a question regarding the following types of statements:
\sum (ii \in 0:4) (pow(2, 64*ii)*u64i(result.0[ii]))
Why isn't it proposed an abstraction to reconstruct an array of limbs into an integer?
I was thinking something like limbs
from Cryptoline (page 6 of the tutorial) for an example of what I'm referring to.
If there were an limbs version in Jasmin that would take arrays, the slice of the array to be considered, and the radix, I think it would improve readability.
Since we support bits natively, we use the statement you mentioned so that we do not have to rely on Cryptoline's internal representation and of limbs
.
This merge request adds:
And does the following to these abstracts predicates:
pow
abstract predicate for algebraic expressionsb2i
that converts a boolean to an integeru64i
that converts a u64 to an integerObeq
)