Skip to content

Refactor PackTauOrSigma and ChaCha callers#102

Merged
Xor-el merged 2 commits into
masterfrom
refactor/pack-tau-or-sigma
May 25, 2026
Merged

Refactor PackTauOrSigma and ChaCha callers#102
Xor-el merged 2 commits into
masterfrom
refactor/pack-tau-or-sigma

Conversation

@Xor-el
Copy link
Copy Markdown
Owner

@Xor-el Xor-el commented May 25, 2026

  • Simplify TSalsa20Engine.PackTauOrSigma to write state[0..3] directly
  • Drop unused stateOffset parameter from the helper signature
  • Use keyLength div 4 - 4 for tau/sigma index selection (equivalent for 128/256-bit keys)
  • Update ChaChaEngine and ChaCha7539Engine call sites; use literal 32 in ChaCha7539 SetKey Behavior-preserving refactor; no API or test changes required.

Xor-el added 2 commits May 25, 2026 11:53
- Simplify TSalsa20Engine.PackTauOrSigma to write state[0..3] directly
- Drop unused stateOffset parameter from the helper signature
- Use keyLength div 4 - 4 for tau/sigma index selection (equivalent for 128/256-bit keys)
- Update ChaChaEngine and ChaCha7539Engine call sites; use literal 32 in ChaCha7539 SetKey
Behavior-preserving refactor; no API or test changes required.
@Xor-el Xor-el merged commit 46c19ca into master May 25, 2026
33 checks passed
@Xor-el Xor-el deleted the refactor/pack-tau-or-sigma branch May 25, 2026 13:32
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