mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 06:32:20 +01:00
Fixes to get WOLFSSL_PUBLIC_MP testing passing. Fix DH constant time agreement: - implement constant time encoding to big-endian byte array in TFM - only force x to be zero for SP math as others implementations ensure unused words are zero - exponentiate in constant time to the smallest number of words possible - no need to encode into separate buffer anymore as encoding is constant time and front padded - make requested_sz be the maximum size for the parameters and check against agreeSz - update agreeSz to be the maximum valid size instead of filling all the buffer which may be many times too big - fix SP result to front pad when doing constant time