Skip to content

[crypto] Update otcrypto_interface.h and backport map file analysis #230

Draft
mkannwischer wants to merge 2 commits intomasterfrom
fix-code-size-measurement
Draft

[crypto] Update otcrypto_interface.h and backport map file analysis #230
mkannwischer wants to merge 2 commits intomasterfrom
fix-code-size-measurement

Conversation

@mkannwischer
Copy link
Copy Markdown
Contributor

@mkannwischer mkannwischer commented Mar 27, 2026

Our otcrypto_interface.h is outdated (e.g., it was not updated in #204) - otcrypto_export_size, hence, fails to compile.
This fixes that and also backports a changes to allow cryptolib map file analysis which as a side effect also causes this test to be picked up by our CI (at least that is what I hope - testing now).

@mkannwischer
Copy link
Copy Markdown
Contributor Author

Double checked that this actually fails in CI, it does: https://github.com/zerorisc/expo/actions/runs/23638376086/job/68852970748?pr=230

mkannwischer and others added 2 commits March 27, 2026 17:02
The otcrypto_export_size binary was not previously built in CI
and causing us to not notice that it was out of sync with
the cryptolib API.
This commit updates `otcrypto_interface.h`.

Signed-off-by: Matthias J. Kannwischer <matthias@zerorisc.com>
This PR contains necessary updates to allow for building the map
file of the whole crypto lib and then use the map file to hjson
python script to create a visual representation of the map file
for easier analysis of the memory usage.

Co-authored-by: Chris Frantz <cfrantz@google.com>
Signed-off-by: Hakim Filali <hfilali@lowrisc.org>
@mkannwischer mkannwischer force-pushed the fix-code-size-measurement branch from 69ed63f to 9fed0a3 Compare March 27, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants