Skip to content

Commit 771e88a

Browse files
committed
Should use constant time sodium_bin2hex in examples
php/doc-en@012af70
1 parent 3aa18d2 commit 771e88a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/sodium/functions/sodium-crypto-kx-keypair.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: f1e951b988e8aafe49b33bdf2f7812740c66c2d2 Maintainer: mumumu Status: ready -->
3+
<!-- EN-Revision: 012af70e473cb3365637d6327114810d47e3de3d Maintainer: mumumu Status: ready -->
44

55
<refentry xml:id="function.sodium-crypto-kx-keypair" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
@@ -53,7 +53,7 @@
5353
$keypair = sodium_crypto_kx_keypair();
5454
$secret = sodium_crypto_kx_secretkey($keypair);
5555
$public = sodium_crypto_kx_publickey($keypair);
56-
printf("secret: %s\npublic: %s", bin2hex($secret), bin2hex($public));
56+
printf("secret: %s\npublic: %s", sodium_bin2hex($secret), sodium_bin2hex($public));
5757
?>
5858
]]>
5959
</programlisting>

0 commit comments

Comments
 (0)