web-push-libs / ecec

Web Push encryption and decryption in C.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`ece_aesgcm_plaintext_max_length` overallocates for plaintext

opened this issue · comments

Let's change the signature to ece_aesgcm_plaintext_max_length(rs, ciphertextLen), and subtract ECE_TAG_LENGTH * ((ciphertextLen / rs) + 1).