]> git.codecow.com Git - Monocypher.git/commit
Decoupled window widths, minimised stack usage
authorLoup Vaillant <loup@loup-vaillant.fr>
Thu, 6 Dec 2018 00:04:37 +0000 (01:04 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Thu, 6 Dec 2018 00:04:37 +0000 (01:04 +0100)
commit6cdecf9b1cfc14d5810ce6ffc32a06e18cee10e9
tree92e4fb5e4fcbbd0528fea1ef57e513716a007c8e
parent13b205b18a2b2ef3c5452d1fec14424dc4d31399
Decoupled window widths, minimised stack usage

The width of the pre-computed window affects the program size. It has
been set to 5 (8 elements) so we can approach maximum performance
without bloating the program too much.

The width of the cached window affects the *stack* size. It has been set
to 3 (2 elements) to avoid blowing up the stack (this matters most on
embedded environments). The performance hit is measurable, yet very
reasonable.

Footgun wielders can adjust those widths as they see fit.
src/monocypher.c