[openssl/openssl] 9043e5: OSSL_FN: Refactor OSSL_FN_add() and OSSL_FN_sub() ...

0 views
Skip to first unread message

Richard Levitte

unread,
Dec 18, 2025, 12:45:35 PM (18 hours ago) Dec 18
to openssl...@openssl.org
Branch: refs/heads/feature/ossl_fn
Home: https://github.com/openssl/openssl
Commit: 9043e50a396fab5b58435a1fb77f84ce9a8432b1
https://github.com/openssl/openssl/commit/9043e50a396fab5b58435a1fb77f84ce9a8432b1
Author: Richard Levitte <lev...@openssl.org>
Date: 2025-12-17 (Wed, 17 Dec 2025)

Changed paths:
M crypto/fn/fn_addsub.c
M test/fn_api_test.c

Log Message:
-----------
OSSL_FN: Refactor OSSL_FN_add() and OSSL_FN_sub() for truncation

OSSL_FN_mul() set a path that wasn't considered for OSSL_FN_add() and
OSSL_FN_sub(); a truncated result if the result OSSL_FN isn't large
enough to contain the full result.

This is done to keep the OSSL_FN API consistent, with a (tentative)
bonus, that the function calls become more constant time accross
repeated calls with the same size for operands and result.

Reviewed-by: Matt Caswell <ma...@openssl.org>
Reviewed-by: Tomas Mraz <to...@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29309)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications
Reply all
Reply to author
Forward
0 new messages