Skip to content

Commit

Permalink
QWORD arithmetic design (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Aug 8, 2024
1 parent f4fddeb commit 1789d44
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Classes/FCryptoTestMutator.uc
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,16 @@ private final simulated function int TestMath()
local int MontyDecodeResult;
local string BigIntString;
local int Dummy;
// TODO: Design for QWORD arithmetic.
Dummy = 0xFFFFFFFF;
`fclog("Dummy=" $ Dummy);
`fclog("Dummy=" $ ToHex(Dummy));
Dummy += 0xF;
`fclog("Dummy=" $ Dummy);
`fclog("Dummy=" $ ToHex(Dummy));
// BearSSL assumes all operands caller-allocated.
// We'll do some bare minimum allocations here to avoid issues.
// TODO: does UScript dynamic array allocation break CT guarantees?
Expand Down

0 comments on commit 1789d44

Please sign in to comment.