From 1789d446fa3bd5d89d62aaf4e2bf9fbae9d4e97b Mon Sep 17 00:00:00 2001 From: Tuomo Kriikkula Date: Thu, 8 Aug 2024 16:13:53 +0300 Subject: [PATCH] QWORD arithmetic design (WIP) --- Classes/FCryptoTestMutator.uc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Classes/FCryptoTestMutator.uc b/Classes/FCryptoTestMutator.uc index 86b95f6..d5665c0 100644 --- a/Classes/FCryptoTestMutator.uc +++ b/Classes/FCryptoTestMutator.uc @@ -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?