From f715ec8ea5d31dbb51fd830d0fec6145f3b3dc90 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 2 Apr 2015 17:55:25 +0200 Subject: php-pecl-libsodium: 0.1.2 --- REFLECTION | 246 ++++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 161 insertions(+), 85 deletions(-) (limited to 'REFLECTION') diff --git a/REFLECTION b/REFLECTION index a26f4d3..c2f97d7 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,99 +1,153 @@ -Extension [ extension #105 libsodium version 0.1.1 ] { +Extension [ extension #114 libsodium version 0.1.2 ] { - Classes [1] { Class [ class Sodium ] { - - Constants [25] { - Constant [ integer CRYPTO_SHORTHASH_BYTES ] { 8 } - Constant [ integer CRYPTO_SHORTHASH_KEYBYTES ] { 16 } - Constant [ integer CRYPTO_SECRETBOX_KEYBYTES ] { 32 } - Constant [ integer CRYPTO_SECRETBOX_NONCEBYTES ] { 24 } + - Constants [31] { + Constant [ integer CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES ] { 32 } + Constant [ integer CRYPTO_AEAD_CHACHA20POLY1305_NSECBYTES ] { 0 } + Constant [ integer CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES ] { 8 } + Constant [ integer CRYPTO_AEAD_CHACHA20POLY1305_ABYTES ] { 16 } + Constant [ integer CRYPTO_BOX_SECRETKEYBYTES ] { 32 } + Constant [ integer CRYPTO_BOX_PUBLICKEYBYTES ] { 32 } + Constant [ integer CRYPTO_BOX_KEYPAIRBYTES ] { 64 } + Constant [ integer CRYPTO_BOX_NONCEBYTES ] { 24 } Constant [ integer CRYPTO_GENERICHASH_BYTES ] { 32 } Constant [ integer CRYPTO_GENERICHASH_BYTES_MIN ] { 16 } Constant [ integer CRYPTO_GENERICHASH_BYTES_MAX ] { 64 } Constant [ integer CRYPTO_GENERICHASH_KEYBYTES ] { 32 } Constant [ integer CRYPTO_GENERICHASH_KEYBYTES_MIN ] { 16 } Constant [ integer CRYPTO_GENERICHASH_KEYBYTES_MAX ] { 64 } - Constant [ integer CRYPTO_BOX_SECRETKEYBYTES ] { 32 } - Constant [ integer CRYPTO_BOX_PUBLICKEYBYTES ] { 32 } - Constant [ integer CRYPTO_BOX_KEYPAIRBYTES ] { 64 } - Constant [ integer CRYPTO_BOX_NONCEBYTES ] { 24 } - Constant [ integer CRYPTO_SIGN_BYTES ] { 64 } - Constant [ integer CRYPTO_SIGN_SEEDBYTES ] { 32 } - Constant [ integer CRYPTO_SIGN_PUBLICKEYBYTES ] { 32 } - Constant [ integer CRYPTO_SIGN_SECRETKEYBYTES ] { 64 } - Constant [ integer CRYPTO_SIGN_KEYPAIRBYTES ] { 96 } Constant [ integer CRYPTO_PWHASH_SCRYPTSALSA208SHA256_SALTBYTES ] { 32 } Constant [ string CRYPTO_PWHASH_SCRYPTSALSA208SHA256_STRPREFIX ] { $7$ } Constant [ integer CRYPTO_PWHASH_SCRYPTSALSA208SHA256_OPSLIMIT_INTERACTIVE ] { 524288 } Constant [ integer CRYPTO_PWHASH_SCRYPTSALSA208SHA256_MEMLIMIT_INTERACTIVE ] { 16777216 } Constant [ integer CRYPTO_PWHASH_SCRYPTSALSA208SHA256_OPSLIMIT_SENSITIVE ] { 33554432 } Constant [ integer CRYPTO_PWHASH_SCRYPTSALSA208SHA256_MEMLIMIT_SENSITIVE ] { 1073741824 } + Constant [ integer CRYPTO_SHORTHASH_BYTES ] { 8 } + Constant [ integer CRYPTO_SHORTHASH_KEYBYTES ] { 16 } + Constant [ integer CRYPTO_SECRETBOX_KEYBYTES ] { 32 } + Constant [ integer CRYPTO_SECRETBOX_NONCEBYTES ] { 24 } + Constant [ integer CRYPTO_SIGN_BYTES ] { 64 } + Constant [ integer CRYPTO_SIGN_SEEDBYTES ] { 32 } + Constant [ integer CRYPTO_SIGN_PUBLICKEYBYTES ] { 32 } + Constant [ integer CRYPTO_SIGN_SECRETKEYBYTES ] { 64 } + Constant [ integer CRYPTO_SIGN_KEYPAIRBYTES ] { 96 } + Constant [ integer CRYPTO_STREAM_NONCEBYTES ] { 24 } + Constant [ integer CRYPTO_STREAM_KEYBYTES ] { 32 } } - Static properties [0] { } - - Static methods [29] { - Method [ static public method sodium_version_string ] { + - Static methods [37] { + Method [ static public method crypto_aead_chacha20poly1305_decrypt ] { - - Parameters [0] { + - Parameters [4] { + Parameter #0 [ $string ] + Parameter #1 [ $ad ] + Parameter #2 [ $nonce ] + Parameter #3 [ $key ] } } - Method [ static public method sodium_library_version_major ] { + Method [ static public method crypto_aead_chacha20poly1305_encrypt ] { - - Parameters [0] { + - Parameters [4] { + Parameter #0 [ $string ] + Parameter #1 [ $ad ] + Parameter #2 [ $nonce ] + Parameter #3 [ $key ] } } - Method [ static public method sodium_library_version_minor ] { + Method [ static public method crypto_box ] { + + - Parameters [3] { + Parameter #0 [ $string ] + Parameter #1 [ $nonce ] + Parameter #2 [ $key ] + } + } + + Method [ static public method crypto_box_keypair ] { - Parameters [0] { } } - Method [ static public method sodium_memzero ] { + Method [ static public method crypto_box_keypair_from_secretkey_and_publickey ] { - Parameters [2] { - Parameter #0 [ &$reference ] - Parameter #1 [ $length ] + Parameter #0 [ $secret_key ] + Parameter #1 [ $public_key ] } } - Method [ static public method sodium_memcmp ] { + Method [ static public method crypto_box_open ] { - - Parameters [2] { - Parameter #0 [ $string_1 ] - Parameter #1 [ $string_2 ] + - Parameters [3] { + Parameter #0 [ $string ] + Parameter #1 [ $nonce ] + Parameter #2 [ $key ] } } - Method [ static public method randombytes_buf ] { + Method [ static public method crypto_box_publickey ] { - Parameters [1] { - Parameter #0 [ $length ] + Parameter #0 [ $key ] } } - Method [ static public method randombytes_random16 ] { + Method [ static public method crypto_box_publickey_from_secretkey ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ $key ] } } - Method [ static public method randombytes_uniform ] { + Method [ static public method crypto_box_secretkey ] { - Parameters [1] { - Parameter #0 [ $integer ] + Parameter #0 [ $key ] } } - Method [ static public method crypto_shorthash ] { + Method [ static public method crypto_generichash ] { - - Parameters [2] { + - Parameters [3] { Parameter #0 [ $string ] - Parameter #1 [ $key ] + Parameter #1 [ $key ] + Parameter #2 [ $length ] + } + } + + Method [ static public method crypto_pwhash_scryptsalsa208sha256 ] { + + - Parameters [5] { + Parameter #0 [ $length ] + Parameter #1 [ $password ] + Parameter #2 [ $salt ] + Parameter #3 [ $opslimit ] + Parameter #4 [ $memlimit ] + } + } + + Method [ static public method crypto_pwhash_scryptsalsa208sha256_str ] { + + - Parameters [3] { + Parameter #0 [ $password ] + Parameter #1 [ $opslimit ] + Parameter #2 [ $memlimit ] + } + } + + Method [ static public method crypto_pwhash_scryptsalsa208sha256_str_verify ] { + + - Parameters [2] { + Parameter #0 [ $hash ] + Parameter #1 [ $password ] } } @@ -115,22 +169,37 @@ Extension [ extension #105 libsodium version 0.1.1 ] { } } - Method [ static public method crypto_generichash ] { + Method [ static public method crypto_shorthash ] { - - Parameters [3] { + - Parameters [2] { Parameter #0 [ $string ] - Parameter #1 [ $key ] - Parameter #2 [ $length ] + Parameter #1 [ $key ] } } - Method [ static public method crypto_box_keypair ] { + Method [ static public method crypto_sign ] { + + - Parameters [2] { + Parameter #0 [ $string ] + Parameter #1 [ $key ] + } + } + + Method [ static public method crypto_sign_detached ] { + + - Parameters [2] { + Parameter #0 [ $string ] + Parameter #1 [ $key ] + } + } + + Method [ static public method crypto_sign_keypair ] { - Parameters [0] { } } - Method [ static public method crypto_box_keypair_from_secretkey_and_publickey ] { + Method [ static public method crypto_sign_keypair_from_secretkey_and_publickey ] { - Parameters [2] { Parameter #0 [ $secret_key ] @@ -138,121 +207,128 @@ Extension [ extension #105 libsodium version 0.1.1 ] { } } - Method [ static public method crypto_box_secretkey ] { + Method [ static public method crypto_sign_open ] { + + - Parameters [2] { + Parameter #0 [ $string ] + Parameter #1 [ $key ] + } + } + + Method [ static public method crypto_sign_publickey ] { - Parameters [1] { Parameter #0 [ $key ] } } - Method [ static public method crypto_box_publickey ] { + Method [ static public method crypto_sign_secretkey ] { - Parameters [1] { Parameter #0 [ $key ] } } - Method [ static public method crypto_box_publickey_from_secretkey ] { + Method [ static public method crypto_sign_seed_keypair ] { - Parameters [1] { Parameter #0 [ $key ] } } - Method [ static public method crypto_box ] { + Method [ static public method crypto_sign_verify_detached ] { - Parameters [3] { - Parameter #0 [ $string ] - Parameter #1 [ $nonce ] + Parameter #0 [ $signature ] + Parameter #1 [ $string ] Parameter #2 [ $key ] } } - Method [ static public method crypto_box_open ] { + Method [ static public method crypto_stream ] { - Parameters [3] { - Parameter #0 [ $string ] + Parameter #0 [ $length ] Parameter #1 [ $nonce ] Parameter #2 [ $key ] } } - Method [ static public method crypto_sign_keypair ] { + Method [ static public method crypto_stream_xor ] { - - Parameters [0] { + - Parameters [3] { + Parameter #0 [ $string ] + Parameter #1 [ $nonce ] + Parameter #2 [ $key ] } } - Method [ static public method crypto_sign_seed_keypair ] { + Method [ static public method randombytes_buf ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ $length ] } } - Method [ static public method crypto_sign_keypair_from_secretkey_and_publickey ] { + Method [ static public method randombytes_random16 ] { - - Parameters [2] { - Parameter #0 [ $secret_key ] - Parameter #1 [ $public_key ] + - Parameters [0] { } } - Method [ static public method crypto_sign_secretkey ] { + Method [ static public method randombytes_uniform ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ $integer ] } } - Method [ static public method crypto_sign_publickey ] { + Method [ static public method sodium_bin2hex ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ $string ] } } - Method [ static public method crypto_sign ] { + Method [ static public method sodium_hex2bin ] { - Parameters [2] { - Parameter #0 [ $string ] - Parameter #1 [ $key ] + Parameter #0 [ $string_1 ] + Parameter #1 [ $string_2 ] } } - Method [ static public method crypto_sign_open ] { + Method [ static public method sodium_library_version_major ] { - - Parameters [2] { - Parameter #0 [ $string ] - Parameter #1 [ $key ] + - Parameters [0] { } } - Method [ static public method crypto_pwhash_scryptsalsa208sha256 ] { + Method [ static public method sodium_library_version_minor ] { - - Parameters [5] { - Parameter #0 [ $length ] - Parameter #1 [ $password ] - Parameter #2 [ $salt ] - Parameter #3 [ $opslimit ] - Parameter #4 [ $memlimit ] + - Parameters [0] { } } - Method [ static public method crypto_pwhash_scryptsalsa208sha256_str ] { + Method [ static public method sodium_memcmp ] { - - Parameters [3] { - Parameter #0 [ $password ] - Parameter #1 [ $opslimit ] - Parameter #2 [ $memlimit ] + - Parameters [2] { + Parameter #0 [ $string_1 ] + Parameter #1 [ $string_2 ] } } - Method [ static public method crypto_pwhash_scryptsalsa208sha256_str_verify ] { + Method [ static public method sodium_memzero ] { - Parameters [2] { - Parameter #0 [ $hash ] - Parameter #1 [ $password ] + Parameter #0 [ &$reference ] + Parameter #1 [ $length ] + } + } + + Method [ static public method sodium_version_string ] { + + - Parameters [0] { } } } -- cgit