This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

8-byte ChaCha-Poly Nonce using nRF Connect SDK

I'm working on porting a code base over from nRF5 SDK to nRFConnect/Zephyr. Our previous implementation uses ChaCha-Poly encryption, accelerated by the CC310. I wish to continue to take advantage of the CC310 via Zephyr and it seems like the recommended way to achieve this is through the PSA interface. However, it looks like only 12-byte nonces are supported, whereas our old implementation relies on an 8-byte nonce.

I would like to use a Zephyr-friendly interface and I would also like to avoid requiring a protocol change on the client/server side that interacts with our devices. Is there any recommended way to encrypt/decrypt with ChaCha-Poly with an 8-byte nonce using the nRF Connect SDK?

Related