From 5e13413472537ef4747ec781232ddd6c22e185df Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 27 Oct 2015 10:08:05 +0100 Subject: php-pecl-libsodium: 1.0.1 + upstream patches --- REFLECTION | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 54 insertions(+), 2 deletions(-) (limited to 'REFLECTION') diff --git a/REFLECTION b/REFLECTION index 1d06cf3..c546d38 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,6 +1,10 @@ -Extension [ extension #117 libsodium version 1.0.0 ] { +Extension [ extension #117 libsodium version 1.0.1 ] { - - Constants [41] { + - Constants [46] { + Constant [ integer Sodium\CRYPTO_AEAD_AES256GCM_KEYBYTES ] { 32 } + Constant [ integer Sodium\CRYPTO_AEAD_AES256GCM_NSECBYTES ] { 0 } + Constant [ integer Sodium\CRYPTO_AEAD_AES256GCM_NPUBBYTES ] { 12 } + Constant [ integer Sodium\CRYPTO_AEAD_AES256GCM_ABYTES ] { 16 } Constant [ integer Sodium\CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES ] { 32 } Constant [ integer Sodium\CRYPTO_AEAD_CHACHA20POLY1305_NSECBYTES ] { 0 } Constant [ integer Sodium\CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES ] { 8 } @@ -13,6 +17,7 @@ Extension [ extension #117 libsodium version 1.0.0 ] { Constant [ integer Sodium\CRYPTO_BOX_KEYPAIRBYTES ] { 64 } Constant [ integer Sodium\CRYPTO_BOX_MACBYTES ] { 16 } Constant [ integer Sodium\CRYPTO_BOX_NONCEBYTES ] { 24 } + Constant [ integer Sodium\CRYPTO_BOX_SEEDBYTES ] { 32 } Constant [ integer Sodium\CRYPTO_KX_BYTES ] { 32 } Constant [ integer Sodium\CRYPTO_KX_PUBLICKEYBYTES ] { 32 } Constant [ integer Sodium\CRYPTO_KX_SECRETKEYBYTES ] { 32 } @@ -45,6 +50,29 @@ Extension [ extension #117 libsodium version 1.0.0 ] { } - Functions { + Function [ function Sodium\crypto_aead_aes256gcm_is_available ] { + + - Parameters [0] { + } + } + Function [ function Sodium\crypto_aead_aes256gcm_decrypt ] { + + - Parameters [4] { + Parameter #0 [ $string ] + Parameter #1 [ $ad ] + Parameter #2 [ $nonce ] + Parameter #3 [ $key ] + } + } + Function [ function Sodium\crypto_aead_aes256gcm_encrypt ] { + + - Parameters [4] { + Parameter #0 [ $string ] + Parameter #1 [ $ad ] + Parameter #2 [ $nonce ] + Parameter #3 [ $key ] + } + } Function [ function Sodium\crypto_aead_chacha20poly1305_decrypt ] { - Parameters [4] { @@ -91,6 +119,12 @@ Extension [ extension #117 libsodium version 1.0.0 ] { - Parameters [0] { } } + Function [ function Sodium\crypto_box_seed_keypair ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } Function [ function Sodium\crypto_box_keypair_from_secretkey_and_publickey ] { - Parameters [2] { @@ -245,6 +279,18 @@ Extension [ extension #117 libsodium version 1.0.0 ] { Parameter #1 [ $keypair ] } } + Function [ function Sodium\crypto_sign_ed25519_pk_to_curve25519 ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + Function [ function Sodium\crypto_sign_ed25519_sk_to_curve25519 ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } Function [ function Sodium\crypto_sign_keypair ] { - Parameters [0] { @@ -335,6 +381,12 @@ Extension [ extension #117 libsodium version 1.0.0 ] { Parameter #0 [ $string ] } } + Function [ function Sodium\compare ] { + + - Parameters [1] { + Parameter #0 [ $string ] + } + } Function [ function Sodium\hex2bin ] { - Parameters [2] { -- cgit