Bug #77341 [Com]: SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES returns wrong value.

From: Date: Sun, 23 Dec 2018 05:07:26 +0000
Subject: Bug #77341 [Com]: SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES returns wrong value.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218579@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77341&edit=1 ID: 77341 Comment by: Scott dot Grosch at icloud dot com Reported by: Scott dot Grosch at icloud dot com Summary: SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES returns wrong value. Status: Open Type: Bug Package: *Encryption and hash functions Operating System: macOS PHP Version: 7.3.0 Block user comment: N Private report: N New Comment: I'm sorry, please close this bug. I was missing the _IETF_ part on the PHP side. Previous Comments: ------------------------------------------------------------------------ [2018-12-23 04:58:45] Scott dot Grosch at icloud dot com Description: ------------ The source for libsodium defines crypto_aead_chacha20poly1305_ietf_NPUBBYTES as 12U. However, using php when I print out the value of SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES it comes back as 8, not 12. Test script: --------------- echo SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES . "\n"; Expected result: ---------------- Should print out 12, no 8 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77341&edit=1

« previous php.bugs (#218579) next »