php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77341 SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES returns wrong value.
Submitted: 2018-12-23 04:58 UTC Modified: 2018-12-23 05:16 UTC
From: Scott dot Grosch at icloud dot com Assigned:
Status: Not a bug Package: *Encryption and hash functions
PHP Version: 7.3.0 OS: macOS
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Scott dot Grosch at icloud dot com
New email:
PHP Version: OS:

 

 [2018-12-23 04:58 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-12-23 05:07 UTC] Scott dot Grosch at icloud dot com
I'm sorry, please close this bug.  I was missing the _IETF_ part on the PHP side.
 [2018-12-23 05:16 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2018-12-23 05:16 UTC] requinix@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC