Skip to content

Conversation

@ruiliio
Copy link
Owner

@ruiliio ruiliio commented Sep 6, 2025

Description

Add support for setting an arbitrary initial counter value for ChaCha20 via psa_cipher_set_iv() by passing a 16-byte IV. The first 4 bytes (encoded as little-endian) set the counter, and the remaining 12 bytes set the nonce, as specified in the PSA Crypto API.

Fix #

PR checklist

  • [x ] changelog provided
  • framework PR not required
  • mbedtls development PR not required because: crypto only
  • mbedtls 3.6 PR not required because: new feature
  • tests provided

@ruiliio ruiliio force-pushed the chacha20_16 branch 2 times, most recently from 85766b1 to db6ae05 Compare September 6, 2025 20:45
Signed-off-by: ruiliio <ruili3422@gmail.com>
Signed-off-by: ruiliio <ruili3422@gmail.com>
Signed-off-by: ruiliio <ruili3422@gmail.com>
Signed-off-by: ruiliio <ruili3422@gmail.com>
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.

2 participants