Skip to content

Apply xor_into on unaligned buffers and be safe on word-aligned architectures#169

Merged
dinosaure merged 1 commit into
mainfrom
unaligned
Jun 30, 2026
Merged

Apply xor_into on unaligned buffers and be safe on word-aligned architectures#169
dinosaure merged 1 commit into
mainfrom
unaligned

Conversation

@dinosaure

Copy link
Copy Markdown
Member

Took from mirage/mirage-crypto#81, may be @hannesm would like to review it. A question arise about digestif and mirage-crypto and if we can share such function but I think, due to the variant layout of digestif, it's preferable to have it in digestif also (digestif.ocaml will not provide such function to mirage-crypto for instance).

Fix #167

@hannesm

hannesm commented Jun 30, 2026

Copy link
Copy Markdown
Member

looks good, and the same as mirage-crypto implementation :)

I agree that sharing would be an option, but let's do that at a later point.

@dinosaure dinosaure merged commit 07bbdf8 into main Jun 30, 2026
3 of 4 checks passed
@dinosaure dinosaure deleted the unaligned branch June 30, 2026 10:40
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.

HMAC key-xor: unaligned / strict-aliasing access via unsigned long* cast

2 participants