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

samples: drivers: crypto: Align buffers #78692

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rettichschnidi
Copy link
Contributor

This change completes what e1e1973 (samples: drivers: crypto: Aligned AES key) has started: For certain architectures (i.e. Si32), the alignment of the used buffers is important as the AES HW engine uses DMA and inherits its restrictions.

@rettichschnidi rettichschnidi force-pushed the gardena/rs/upstream/sim3u-sample-crypto-align-buffers branch from 31c5701 to b4a9c8a Compare September 19, 2024 08:43
@rettichschnidi rettichschnidi force-pushed the gardena/rs/upstream/sim3u-sample-crypto-align-buffers branch from b4a9c8a to 8f0ff53 Compare September 30, 2024 12:34
Commit e1e1973 (samples: drivers:
crypto: Aligned AES key) introduced the alignment for the key. According
to the commit message, the intention was to align the variable at 32 bit
boundaries. For this reason, passing 32 to __aligned seems like an
error, as its argument is denoted in byte and not bits.

Signed-off-by: Reto Schneider <[email protected]>
This change extends what e1e1973
(samples: drivers: crypto: Aligned AES key) has started: For certain
architectures (i.e. Si32), the alignment of the used buffers is
important as the AES HW engine uses DMA and inherits its restrictions.

Signed-off-by: Reto Schneider <[email protected]>
@rettichschnidi rettichschnidi force-pushed the gardena/rs/upstream/sim3u-sample-crypto-align-buffers branch from 8f0ff53 to 1fca4fb Compare October 3, 2024 17:31
@rettichschnidi rettichschnidi marked this pull request as ready for review October 3, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants