Skip to content

turboshake: introduce separate customizable type aliases#866

Merged
newpavlov merged 2 commits into
masterfrom
turboshake/custom
May 13, 2026
Merged

turboshake: introduce separate customizable type aliases#866
newpavlov merged 2 commits into
masterfrom
turboshake/custom

Conversation

@newpavlov
Copy link
Copy Markdown
Member

@newpavlov newpavlov commented May 12, 2026

Change TurboShake128/256 type aliases to use the default domain separator (DS) and introduce separate CTurboShake128/256 type aliases generic over DS.

It's effectively a work around for the subpar handling of default type/const parameters in Rust.

@newpavlov newpavlov requested a review from tarcieri May 12, 2026 15:37
@newpavlov newpavlov force-pushed the turboshake/custom branch 2 times, most recently from 96af9ff to 1bfe2e4 Compare May 12, 2026 15:44
@newpavlov newpavlov merged commit 73a8faf into master May 13, 2026
11 checks passed
@newpavlov newpavlov deleted the turboshake/custom branch May 13, 2026 13:35
newpavlov added a commit that referenced this pull request May 13, 2026
### Added
- `CTurboShake128` and `CTurboShake256` type aliases generic over domain
separator ([#866])

### Changed
- Internal implementation by removing unnecessary buffering ([#849])
- `Rate: BlockSizes` generic parameter to `const RATE: usize` ([#849])
- `TurboShake128` and `TurboShake256` type aliases are no longer generic
over the domain separator
  and use the default value instead ([#866])

### Removed
- Implementations of `BlockSizeUser` ([#856])

[#849]: #849
[#856]: #856
[#866]: #866
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.

1 participant