-
Notifications
You must be signed in to change notification settings - Fork 34
sign stack usage: Re-use y/h buffer #818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c103d48 to
be25453
Compare
hanno-becker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that a separate config option is the right approach for now. We will hopefully be able to shift some things in the default config once we overcome CBMC issues, but other aspects such as the ad-hoc matrix generation will always remain a trade-off between performance and RAM usage.
Only some smaller comments regarding documentation and the Makefile.
hanno-becker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot: Please clearly state in the relevant places that MLK_CONFIG_REDUCE_RAM is not covered by CBMC proof.
This commit is the second commit working towards bringing down the memory consumption of signature_internal. It combines the y and h buffer as those lifetime does not overlap. We work around diffblue/cbmc#8813 by using a struct by default and only using a union if MLD_CONFIG_REDUCE_RAM is used. Signed-off-by: Matthias J. Kannwischer <[email protected]>
Signed-off-by: Matthias J. Kannwischer <[email protected]>
Signed-off-by: Matthias J. Kannwischer <[email protected]>
be25453 to
3e40995
Compare
hanno-becker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mkannwischer !
Alternative to