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

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
jmid pushed a commit to ocaml/opam-repository that referenced this pull request Jul 14, 2026
CHANGES:

- Remove DKML CI (@jonahbeckford, @dinosaure, mirage/digestif#159, mirage/digestif#160, mirage/digestif#161)
- Fix documentation (@kit-ty-kate, @dinosaure, mirage/digestif#162)
- Reject bad digest size for BLAKE2 implementation (@samoht, @dinosaure, mirage/digestif#166)
- Delete old artifact for MirageOS 3.0 (@dinosaure, @vbgl, mirage/digestif#165, mirage/digestif#168)
- Be safe aligned on ARM architecture (@dinosaure, @hannesm, mirage/digestif#169)
craff pushed a commit to craff/opam-repository that referenced this pull request Jul 25, 2026
CHANGES:

- Remove DKML CI (@jonahbeckford, @dinosaure, mirage/digestif#159, mirage/digestif#160, mirage/digestif#161)
- Fix documentation (@kit-ty-kate, @dinosaure, mirage/digestif#162)
- Reject bad digest size for BLAKE2 implementation (@samoht, @dinosaure, mirage/digestif#166)
- Delete old artifact for MirageOS 3.0 (@dinosaure, @vbgl, mirage/digestif#165, mirage/digestif#168)
- Be safe aligned on ARM architecture (@dinosaure, @hannesm, mirage/digestif#169)
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