You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by "ldshyu (via GitHub)" <gi...@apache.org> on 2026/05/27 05:49:53 UTC

[PR] BigInt: Several fixes for BigInt arithmetic [teaclave-trustzone-sdk]

ldshyu opened a new pull request, #303:
URL: https://github.com/apache/teaclave-trustzone-sdk/pull/303

   * correct quotient length in divide The comparision should be based on *magnitude* of op1 and op2, i.e., |op1| and |op2|, the code was using the `compare_big_int` if op1 is negative, incorrect length will be derived. Second, the calculation of quotient bit length is also incorrect, for example, to divide a 96 bit dividend with 64 bit divisor, The max quotient would be (2^96 - 1) / 2^63 = 2^33 - 1, which is a 33 bit value.
   
   * Implement assign function, compute_extended_gcd, abs and exp_mod
   * correct fn convert_to_big_int_from_fmm, this API should route to TEE_BigIntConvertFromFMM


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org


Re: [PR] BigInt: Several fixes for BigInt arithmetic [teaclave-trustzone-sdk]

Posted by "ivila (via GitHub)" <gi...@apache.org>.
ivila merged PR #303:
URL: https://github.com/apache/teaclave-trustzone-sdk/pull/303


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org