diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-10-27 10:08:05 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-10-27 10:08:05 +0100 |
commit | 5e13413472537ef4747ec781232ddd6c22e185df (patch) | |
tree | d21d2741e2d55fb8373e7e023a03e022ac24f4a3 /REFLECTION | |
parent | 8f93032e7bc1df11c16056a604bb08fc4eddc82a (diff) |
php-pecl-libsodium: 1.0.1 + upstream patches
Diffstat (limited to 'REFLECTION')
-rw-r--r-- | REFLECTION | 56 |
1 files changed, 54 insertions, 2 deletions
@@ -1,6 +1,10 @@ -Extension [ <persistent> extension #117 libsodium version 1.0.0 ] { +Extension [ <persistent> 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 [ <persistent> 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 [ <persistent> extension #117 libsodium version 1.0.0 ] { } - Functions { + Function [ <internal:libsodium> function Sodium\crypto_aead_aes256gcm_is_available ] { + + - Parameters [0] { + } + } + Function [ <internal:libsodium> function Sodium\crypto_aead_aes256gcm_decrypt ] { + + - Parameters [4] { + Parameter #0 [ <required> $string ] + Parameter #1 [ <required> $ad ] + Parameter #2 [ <required> $nonce ] + Parameter #3 [ <required> $key ] + } + } + Function [ <internal:libsodium> function Sodium\crypto_aead_aes256gcm_encrypt ] { + + - Parameters [4] { + Parameter #0 [ <required> $string ] + Parameter #1 [ <required> $ad ] + Parameter #2 [ <required> $nonce ] + Parameter #3 [ <required> $key ] + } + } Function [ <internal:libsodium> function Sodium\crypto_aead_chacha20poly1305_decrypt ] { - Parameters [4] { @@ -91,6 +119,12 @@ Extension [ <persistent> extension #117 libsodium version 1.0.0 ] { - Parameters [0] { } } + Function [ <internal:libsodium> function Sodium\crypto_box_seed_keypair ] { + + - Parameters [1] { + Parameter #0 [ <required> $key ] + } + } Function [ <internal:libsodium> function Sodium\crypto_box_keypair_from_secretkey_and_publickey ] { - Parameters [2] { @@ -245,6 +279,18 @@ Extension [ <persistent> extension #117 libsodium version 1.0.0 ] { Parameter #1 [ <required> $keypair ] } } + Function [ <internal:libsodium> function Sodium\crypto_sign_ed25519_pk_to_curve25519 ] { + + - Parameters [1] { + Parameter #0 [ <required> $key ] + } + } + Function [ <internal:libsodium> function Sodium\crypto_sign_ed25519_sk_to_curve25519 ] { + + - Parameters [1] { + Parameter #0 [ <required> $key ] + } + } Function [ <internal:libsodium> function Sodium\crypto_sign_keypair ] { - Parameters [0] { @@ -335,6 +381,12 @@ Extension [ <persistent> extension #117 libsodium version 1.0.0 ] { Parameter #0 [ <required> $string ] } } + Function [ <internal:libsodium> function Sodium\compare ] { + + - Parameters [1] { + Parameter #0 [ <required> $string ] + } + } Function [ <internal:libsodium> function Sodium\hex2bin ] { - Parameters [2] { |