Skip to content

keccak v0.1.6#103

Closed
tarcieri wants to merge 1 commit intomasterfrom
keccak/v0.1.6
Closed

keccak v0.1.6#103
tarcieri wants to merge 1 commit intomasterfrom
keccak/v0.1.6

Conversation

@tarcieri
Copy link
Copy Markdown
Member

Note: not for merge, this just ties a PR to the release.

Backported cherry-pick of: ARMv8 asm! cleanups (#101)

We pass in state.as_mut_ptr() as x0, which was previously marked as in. However, it's modified in the asm!, e.g.:

sub x0, x0, #192

Note: it's also post-incremented by ld1.1d as state is loaded.

Since it's modified, it needs to be inout. This marks it as such, using the => _ syntax to discard the result, then it's reset, then modified as state is written).

Similar mutations were occurring with x1 and x8 as well, which have been modified accordingly.

Backported cherry-pick of: ARMv8 `asm!` cleanups (#101)

We pass in `state.as_mut_ptr()` as `x0`, which was previously marked as
`in`. However, it's modified in the `asm!`, e.g.:

    sub x0, x0, #192

Note: it's also post-incremented by `ld1.1d` as state is loaded.

Since it's modified, it needs to be `inout`. This marks it as such,
using the `=> _` syntax to discard the result, then it's reset, then
modified as state is written).

Similar mutations were occurring with `x1` and `x8` as well, which have
been modified accordingly.
@newpavlov
Copy link
Copy Markdown
Member

Note: not for merge, this just ties a PR to the release.

Usually I create a backport branch and merge backported PR into it.

@newpavlov newpavlov closed this Feb 13, 2026
@newpavlov newpavlov deleted the keccak/v0.1.6 branch February 13, 2026 18:04
@newpavlov
Copy link
Copy Markdown
Member

Also please update changelog in the master branch with the v0.1.6 entry.

tarcieri added a commit that referenced this pull request Feb 13, 2026
tarcieri added a commit that referenced this pull request Feb 13, 2026
@link2xt
Copy link
Copy Markdown

link2xt commented Feb 14, 2026

Also please update changelog in the master branch with the v0.1.6 entry.

One option is to also merge backport tags back into the master branch, then you don't get such warnings when looking at the tag:
image

Currently going to this link displays the warning:
https://github.com/RustCrypto/sponges/blob/keccak-v0.1.6/keccak/CHANGELOG.md

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