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

OCB: Make primitive AES API explicit #1200

Merged
merged 2 commits into from
Jun 27, 2022
Merged

Conversation

bbarenblat
Copy link
Contributor

Explicitly define the primitive AES API used by the internal OCB implementation, and move it into its own namespace (ocb_aes). This will ease future implementation changes.

Delete the unused ROUNDS macro. This macro was used in the reference and AES-NI AES implementations, both of which were deleted in a563093.

Bug: #1174

src/crypto/ocb_internal.cc Outdated Show resolved Hide resolved
src/crypto/ocb_internal.cc Outdated Show resolved Hide resolved
src/crypto/ocb_internal.cc Outdated Show resolved Hide resolved
src/crypto/ocb_internal.cc Show resolved Hide resolved
This macro was used in the reference and AES-NI AES implementations,
both of which were deleted in a563093.
Explicitly define the primitive AES API used by the internal OCB
implementation, and move it into its own namespace (ocb_aes). This will
ease future implementation changes.

Also make some style fixes to affected lines: Replace C-style casts
with C++-style casts, add some missing spaces in argument lists, and
remove some `inline` that the compiler will ignore.

Bug: mobile-shell#1174
@achernya achernya merged commit ad85b90 into mobile-shell:master Jun 27, 2022
@eminence eminence added this to the 1.4.0 milestone Aug 12, 2022
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.

None yet

3 participants