ChaCha20 without Poly1305 on nRF Connect

Hey,

Does nRFConnect SDK support the ChaCha20 encryption library without Poly1305? 

We are currently using the mbedTLS PSA Crypto library to perform encryption/decryption but it only works if we use the 16 byte authentication tag that is part of the Poly1305 implementation, is it possible on nRFConnect to use ChaCha20 without the Poly tag?

Thanks

Parents Reply
  • I am trying to do this but what PSA function should I be using. 

    We were using "psa_aead_encrypt" before w/ the algorithm set to PSA_ALG_CHACHA20_POLY1305 but with PSA_ALG_STREAM_CIPHER what API should be used?

    I tried "psa_cipher_encrypt" but I can't find the source code for this function - I just see in the crypto.h header

    With that, I also am not sure how to specify the nonce to use for the encryption.

    Any help? Thanks

Children
Related