Skip to content
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

/dev/crypto auth error fix/adjustment for benchmark #8210

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

night1rider
Copy link
Contributor

When configuring wolfSSL to use /dev/crypto and running our benchmark tool, GMAC benchmarks will throw the -265 error code after calling this line.

This is because is due to this line in /dev/crypto driver.

This PR adds better debugging and will set size when running GMAC to that of the system's page size. It also allows for an override for this size by setting the macro WOLFSSL_AUTHSZ_BENCH

@night1rider night1rider self-assigned this Nov 21, 2024
@night1rider night1rider changed the title /dev/crypto auth error fix/adjustment /dev/crypto auth error fix/adjustment for benchmark Nov 21, 2024
@dgarske
Copy link
Contributor

dgarske commented Nov 22, 2024

Retest this please - Python test

Copy link
Contributor

@JacobBarthelmeh JacobBarthelmeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like sysconf is in QNX too (another system which has /dev/crypto) which is good, so seems portable enough for a call wrapped with the debug macro guard. Assign to wolfssl-bot when ready for a final review and potential merge into master branch.

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.

3 participants