Completed
Push — develop ( 3424d9...5f5160 )
by
unknown
19:11
created
vendor/paragonie/sodium_compat/lib/namespaced.php 2 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 require_once dirname(dirname(__FILE__)) . '/autoload.php';
4 4
 
5 5
 if (PHP_VERSION_ID < 50300) {
6
-    return;
6
+	return;
7 7
 }
8 8
 
9 9
 /*
@@ -21,28 +21,28 @@  discard block
 block discarded – undo
21 21
  * $x = Compat::crypto_aead_xchacha20poly1305_encrypt(...$args);
22 22
  */
23 23
 spl_autoload_register(function ($class) {
24
-    if ($class[0] === '\\') {
25
-        $class = substr($class, 1);
26
-    }
27
-    $namespace = 'ParagonIE\\Sodium';
28
-    // Does the class use the namespace prefix?
29
-    $len = strlen($namespace);
30
-    if (strncmp($namespace, $class, $len) !== 0) {
31
-        // no, move to the next registered autoloader
32
-        return false;
33
-    }
24
+	if ($class[0] === '\\') {
25
+		$class = substr($class, 1);
26
+	}
27
+	$namespace = 'ParagonIE\\Sodium';
28
+	// Does the class use the namespace prefix?
29
+	$len = strlen($namespace);
30
+	if (strncmp($namespace, $class, $len) !== 0) {
31
+		// no, move to the next registered autoloader
32
+		return false;
33
+	}
34 34
 
35
-    // Get the relative class name
36
-    $relative_class = substr($class, $len);
35
+	// Get the relative class name
36
+	$relative_class = substr($class, $len);
37 37
 
38
-    // Replace the namespace prefix with the base directory, replace namespace
39
-    // separators with directory separators in the relative class name, append
40
-    // with .php
41
-    $file = dirname(dirname(__FILE__)) . '/namespaced/' . str_replace('\\', '/', $relative_class) . '.php';
42
-    // if the file exists, require it
43
-    if (file_exists($file)) {
44
-        require_once $file;
45
-        return true;
46
-    }
47
-    return false;
38
+	// Replace the namespace prefix with the base directory, replace namespace
39
+	// separators with directory separators in the relative class name, append
40
+	// with .php
41
+	$file = dirname(dirname(__FILE__)) . '/namespaced/' . str_replace('\\', '/', $relative_class) . '.php';
42
+	// if the file exists, require it
43
+	if (file_exists($file)) {
44
+		require_once $file;
45
+		return true;
46
+	}
47
+	return false;
48 48
 });
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once dirname(dirname(__FILE__)) . '/autoload.php';
3
+require_once dirname( dirname( __FILE__ ) ) . '/autoload.php';
4 4
 
5
-if (PHP_VERSION_ID < 50300) {
5
+if ( PHP_VERSION_ID < 50300 ) {
6 6
     return;
7 7
 }
8 8
 
@@ -20,27 +20,27 @@  discard block
 block discarded – undo
20 20
  *
21 21
  * $x = Compat::crypto_aead_xchacha20poly1305_encrypt(...$args);
22 22
  */
23
-spl_autoload_register(function ($class) {
24
-    if ($class[0] === '\\') {
25
-        $class = substr($class, 1);
23
+spl_autoload_register( function( $class ) {
24
+    if ( $class[ 0 ] === '\\' ) {
25
+        $class = substr( $class, 1 );
26 26
     }
27 27
     $namespace = 'ParagonIE\\Sodium';
28 28
     // Does the class use the namespace prefix?
29
-    $len = strlen($namespace);
30
-    if (strncmp($namespace, $class, $len) !== 0) {
29
+    $len = strlen( $namespace );
30
+    if ( strncmp( $namespace, $class, $len ) !== 0 ) {
31 31
         // no, move to the next registered autoloader
32 32
         return false;
33 33
     }
34 34
 
35 35
     // Get the relative class name
36
-    $relative_class = substr($class, $len);
36
+    $relative_class = substr( $class, $len );
37 37
 
38 38
     // Replace the namespace prefix with the base directory, replace namespace
39 39
     // separators with directory separators in the relative class name, append
40 40
     // with .php
41
-    $file = dirname(dirname(__FILE__)) . '/namespaced/' . str_replace('\\', '/', $relative_class) . '.php';
41
+    $file = dirname( dirname( __FILE__ ) ) . '/namespaced/' . str_replace( '\\', '/', $relative_class ) . '.php';
42 42
     // if the file exists, require it
43
-    if (file_exists($file)) {
43
+    if ( file_exists( $file ) ) {
44 44
         require_once $file;
45 45
         return true;
46 46
     }
Please login to merge, or discard this patch.
vendor/paragonie/sodium_compat/lib/stream-xchacha20.php 3 patches
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -1,43 +1,43 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 if (!is_callable('sodium_crypto_stream_xchacha20')) {
4
-    /**
5
-     * @see ParagonIE_Sodium_Compat::crypto_stream_xchacha20()
6
-     * @param int $len
7
-     * @param string $nonce
8
-     * @param string $key
9
-     * @return string
10
-     * @throws SodiumException
11
-     * @throws TypeError
12
-     */
13
-    function sodium_crypto_stream_xchacha20($len, $nonce, $key)
14
-    {
15
-        return ParagonIE_Sodium_Compat::crypto_stream_xchacha20($len, $nonce, $key, true);
16
-    }
4
+	/**
5
+	 * @see ParagonIE_Sodium_Compat::crypto_stream_xchacha20()
6
+	 * @param int $len
7
+	 * @param string $nonce
8
+	 * @param string $key
9
+	 * @return string
10
+	 * @throws SodiumException
11
+	 * @throws TypeError
12
+	 */
13
+	function sodium_crypto_stream_xchacha20($len, $nonce, $key)
14
+	{
15
+		return ParagonIE_Sodium_Compat::crypto_stream_xchacha20($len, $nonce, $key, true);
16
+	}
17 17
 }
18 18
 if (!is_callable('sodium_crypto_stream_xchacha20_keygen')) {
19
-    /**
20
-     * @see ParagonIE_Sodium_Compat::crypto_stream_xchacha20_keygen()
21
-     * @return string
22
-     * @throws Exception
23
-     */
24
-    function sodium_crypto_stream_xchacha20_keygen()
25
-    {
26
-        return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_keygen();
27
-    }
19
+	/**
20
+	 * @see ParagonIE_Sodium_Compat::crypto_stream_xchacha20_keygen()
21
+	 * @return string
22
+	 * @throws Exception
23
+	 */
24
+	function sodium_crypto_stream_xchacha20_keygen()
25
+	{
26
+		return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_keygen();
27
+	}
28 28
 }
29 29
 if (!is_callable('sodium_crypto_stream_xchacha20_xor')) {
30
-    /**
31
-     * @see ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor()
32
-     * @param string $message
33
-     * @param string $nonce
34
-     * @param string $key
35
-     * @return string
36
-     * @throws SodiumException
37
-     * @throws TypeError
38
-     */
39
-    function sodium_crypto_stream_xchacha20_xor($message, $nonce, $key)
40
-    {
41
-        return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor($message, $nonce, $key, true);
42
-    }
30
+	/**
31
+	 * @see ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor()
32
+	 * @param string $message
33
+	 * @param string $nonce
34
+	 * @param string $key
35
+	 * @return string
36
+	 * @throws SodiumException
37
+	 * @throws TypeError
38
+	 */
39
+	function sodium_crypto_stream_xchacha20_xor($message, $nonce, $key)
40
+	{
41
+		return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor($message, $nonce, $key, true);
42
+	}
43 43
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!is_callable('sodium_crypto_stream_xchacha20')) {
3
+if ( ! is_callable( 'sodium_crypto_stream_xchacha20' ) ) {
4 4
     /**
5 5
      * @see ParagonIE_Sodium_Compat::crypto_stream_xchacha20()
6 6
      * @param int $len
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
10 10
      * @throws SodiumException
11 11
      * @throws TypeError
12 12
      */
13
-    function sodium_crypto_stream_xchacha20($len, $nonce, $key)
13
+    function sodium_crypto_stream_xchacha20( $len, $nonce, $key )
14 14
     {
15
-        return ParagonIE_Sodium_Compat::crypto_stream_xchacha20($len, $nonce, $key, true);
15
+        return ParagonIE_Sodium_Compat::crypto_stream_xchacha20( $len, $nonce, $key, true );
16 16
     }
17 17
 }
18
-if (!is_callable('sodium_crypto_stream_xchacha20_keygen')) {
18
+if ( ! is_callable( 'sodium_crypto_stream_xchacha20_keygen' ) ) {
19 19
     /**
20 20
      * @see ParagonIE_Sodium_Compat::crypto_stream_xchacha20_keygen()
21 21
      * @return string
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_keygen();
27 27
     }
28 28
 }
29
-if (!is_callable('sodium_crypto_stream_xchacha20_xor')) {
29
+if ( ! is_callable( 'sodium_crypto_stream_xchacha20_xor' ) ) {
30 30
     /**
31 31
      * @see ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor()
32 32
      * @param string $message
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
      * @throws SodiumException
37 37
      * @throws TypeError
38 38
      */
39
-    function sodium_crypto_stream_xchacha20_xor($message, $nonce, $key)
39
+    function sodium_crypto_stream_xchacha20_xor( $message, $nonce, $key )
40 40
     {
41
-        return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor($message, $nonce, $key, true);
41
+        return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor( $message, $nonce, $key, true );
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@  discard block
 block discarded – undo
10 10
      * @throws SodiumException
11 11
      * @throws TypeError
12 12
      */
13
-    function sodium_crypto_stream_xchacha20($len, $nonce, $key)
14
-    {
13
+    function sodium_crypto_stream_xchacha20($len, $nonce, $key) {
15 14
         return ParagonIE_Sodium_Compat::crypto_stream_xchacha20($len, $nonce, $key, true);
16 15
     }
17 16
 }
@@ -21,8 +20,7 @@  discard block
 block discarded – undo
21 20
      * @return string
22 21
      * @throws Exception
23 22
      */
24
-    function sodium_crypto_stream_xchacha20_keygen()
25
-    {
23
+    function sodium_crypto_stream_xchacha20_keygen() {
26 24
         return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_keygen();
27 25
     }
28 26
 }
@@ -36,8 +34,7 @@  discard block
 block discarded – undo
36 34
      * @throws SodiumException
37 35
      * @throws TypeError
38 36
      */
39
-    function sodium_crypto_stream_xchacha20_xor($message, $nonce, $key)
40
-    {
37
+    function sodium_crypto_stream_xchacha20_xor($message, $nonce, $key) {
41 38
         return ParagonIE_Sodium_Compat::crypto_stream_xchacha20_xor($message, $nonce, $key, true);
42 39
     }
43 40
 }
Please login to merge, or discard this patch.
vendor/paragonie/sodium_compat/lib/php72compat.php 3 patches
Indentation   +1170 added lines, -1170 removed lines patch added patch discarded remove patch
@@ -10,1360 +10,1360 @@
 block discarded – undo
10 10
  * ParagonIE_Sodium_Compat method or class constant, respectively.
11 11
  */
12 12
 foreach (array(
13
-    'BASE64_VARIANT_ORIGINAL',
14
-    'BASE64_VARIANT_ORIGINAL_NO_PADDING',
15
-    'BASE64_VARIANT_URLSAFE',
16
-    'BASE64_VARIANT_URLSAFE_NO_PADDING',
17
-    'CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES',
18
-    'CRYPTO_AEAD_CHACHA20POLY1305_NSECBYTES',
19
-    'CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES',
20
-    'CRYPTO_AEAD_CHACHA20POLY1305_ABYTES',
21
-    'CRYPTO_AEAD_AES256GCM_KEYBYTES',
22
-    'CRYPTO_AEAD_AES256GCM_NSECBYTES',
23
-    'CRYPTO_AEAD_AES256GCM_NPUBBYTES',
24
-    'CRYPTO_AEAD_AES256GCM_ABYTES',
25
-    'CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES',
26
-    'CRYPTO_AEAD_CHACHA20POLY1305_IETF_NSECBYTES',
27
-    'CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES',
28
-    'CRYPTO_AEAD_CHACHA20POLY1305_IETF_ABYTES',
29
-    'CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEYBYTES',
30
-    'CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NSECBYTES',
31
-    'CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES',
32
-    'CRYPTO_AEAD_XCHACHA20POLY1305_IETF_ABYTES',
33
-    'CRYPTO_AUTH_BYTES',
34
-    'CRYPTO_AUTH_KEYBYTES',
35
-    'CRYPTO_BOX_SEALBYTES',
36
-    'CRYPTO_BOX_SECRETKEYBYTES',
37
-    'CRYPTO_BOX_PUBLICKEYBYTES',
38
-    'CRYPTO_BOX_KEYPAIRBYTES',
39
-    'CRYPTO_BOX_MACBYTES',
40
-    'CRYPTO_BOX_NONCEBYTES',
41
-    'CRYPTO_BOX_SEEDBYTES',
42
-    'CRYPTO_KDF_BYTES_MIN',
43
-    'CRYPTO_KDF_BYTES_MAX',
44
-    'CRYPTO_KDF_CONTEXTBYTES',
45
-    'CRYPTO_KDF_KEYBYTES',
46
-    'CRYPTO_KX_BYTES',
47
-    'CRYPTO_KX_KEYPAIRBYTES',
48
-    'CRYPTO_KX_PRIMITIVE',
49
-    'CRYPTO_KX_SEEDBYTES',
50
-    'CRYPTO_KX_PUBLICKEYBYTES',
51
-    'CRYPTO_KX_SECRETKEYBYTES',
52
-    'CRYPTO_KX_SESSIONKEYBYTES',
53
-    'CRYPTO_GENERICHASH_BYTES',
54
-    'CRYPTO_GENERICHASH_BYTES_MIN',
55
-    'CRYPTO_GENERICHASH_BYTES_MAX',
56
-    'CRYPTO_GENERICHASH_KEYBYTES',
57
-    'CRYPTO_GENERICHASH_KEYBYTES_MIN',
58
-    'CRYPTO_GENERICHASH_KEYBYTES_MAX',
59
-    'CRYPTO_PWHASH_SALTBYTES',
60
-    'CRYPTO_PWHASH_STRPREFIX',
61
-    'CRYPTO_PWHASH_ALG_ARGON2I13',
62
-    'CRYPTO_PWHASH_ALG_ARGON2ID13',
63
-    'CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE',
64
-    'CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE',
65
-    'CRYPTO_PWHASH_MEMLIMIT_MODERATE',
66
-    'CRYPTO_PWHASH_OPSLIMIT_MODERATE',
67
-    'CRYPTO_PWHASH_MEMLIMIT_SENSITIVE',
68
-    'CRYPTO_PWHASH_OPSLIMIT_SENSITIVE',
69
-    'CRYPTO_PWHASH_SCRYPTSALSA208SHA256_SALTBYTES',
70
-    'CRYPTO_PWHASH_SCRYPTSALSA208SHA256_STRPREFIX',
71
-    'CRYPTO_PWHASH_SCRYPTSALSA208SHA256_MEMLIMIT_INTERACTIVE',
72
-    'CRYPTO_PWHASH_SCRYPTSALSA208SHA256_OPSLIMIT_INTERACTIVE',
73
-    'CRYPTO_PWHASH_SCRYPTSALSA208SHA256_MEMLIMIT_SENSITIVE',
74
-    'CRYPTO_PWHASH_SCRYPTSALSA208SHA256_OPSLIMIT_SENSITIVE',
75
-    'CRYPTO_SCALARMULT_BYTES',
76
-    'CRYPTO_SCALARMULT_SCALARBYTES',
77
-    'CRYPTO_SHORTHASH_BYTES',
78
-    'CRYPTO_SHORTHASH_KEYBYTES',
79
-    'CRYPTO_SECRETBOX_KEYBYTES',
80
-    'CRYPTO_SECRETBOX_MACBYTES',
81
-    'CRYPTO_SECRETBOX_NONCEBYTES',
82
-    'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_ABYTES',
83
-    'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_HEADERBYTES',
84
-    'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_KEYBYTES',
85
-    'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_PUSH',
86
-    'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_PULL',
87
-    'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_REKEY',
88
-    'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_FINAL',
89
-    'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_MESSAGEBYTES_MAX',
90
-    'CRYPTO_SIGN_BYTES',
91
-    'CRYPTO_SIGN_SEEDBYTES',
92
-    'CRYPTO_SIGN_PUBLICKEYBYTES',
93
-    'CRYPTO_SIGN_SECRETKEYBYTES',
94
-    'CRYPTO_SIGN_KEYPAIRBYTES',
95
-    'CRYPTO_STREAM_KEYBYTES',
96
-    'CRYPTO_STREAM_NONCEBYTES',
97
-    'CRYPTO_STREAM_XCHACHA20_KEYBYTES',
98
-    'CRYPTO_STREAM_XCHACHA20_NONCEBYTES',
99
-    'LIBRARY_MAJOR_VERSION',
100
-    'LIBRARY_MINOR_VERSION',
101
-    'LIBRARY_VERSION_MAJOR',
102
-    'LIBRARY_VERSION_MINOR',
103
-    'VERSION_STRING'
104
-    ) as $constant
13
+	'BASE64_VARIANT_ORIGINAL',
14
+	'BASE64_VARIANT_ORIGINAL_NO_PADDING',
15
+	'BASE64_VARIANT_URLSAFE',
16
+	'BASE64_VARIANT_URLSAFE_NO_PADDING',
17
+	'CRYPTO_AEAD_CHACHA20POLY1305_KEYBYTES',
18
+	'CRYPTO_AEAD_CHACHA20POLY1305_NSECBYTES',
19
+	'CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES',
20
+	'CRYPTO_AEAD_CHACHA20POLY1305_ABYTES',
21
+	'CRYPTO_AEAD_AES256GCM_KEYBYTES',
22
+	'CRYPTO_AEAD_AES256GCM_NSECBYTES',
23
+	'CRYPTO_AEAD_AES256GCM_NPUBBYTES',
24
+	'CRYPTO_AEAD_AES256GCM_ABYTES',
25
+	'CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES',
26
+	'CRYPTO_AEAD_CHACHA20POLY1305_IETF_NSECBYTES',
27
+	'CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES',
28
+	'CRYPTO_AEAD_CHACHA20POLY1305_IETF_ABYTES',
29
+	'CRYPTO_AEAD_XCHACHA20POLY1305_IETF_KEYBYTES',
30
+	'CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NSECBYTES',
31
+	'CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES',
32
+	'CRYPTO_AEAD_XCHACHA20POLY1305_IETF_ABYTES',
33
+	'CRYPTO_AUTH_BYTES',
34
+	'CRYPTO_AUTH_KEYBYTES',
35
+	'CRYPTO_BOX_SEALBYTES',
36
+	'CRYPTO_BOX_SECRETKEYBYTES',
37
+	'CRYPTO_BOX_PUBLICKEYBYTES',
38
+	'CRYPTO_BOX_KEYPAIRBYTES',
39
+	'CRYPTO_BOX_MACBYTES',
40
+	'CRYPTO_BOX_NONCEBYTES',
41
+	'CRYPTO_BOX_SEEDBYTES',
42
+	'CRYPTO_KDF_BYTES_MIN',
43
+	'CRYPTO_KDF_BYTES_MAX',
44
+	'CRYPTO_KDF_CONTEXTBYTES',
45
+	'CRYPTO_KDF_KEYBYTES',
46
+	'CRYPTO_KX_BYTES',
47
+	'CRYPTO_KX_KEYPAIRBYTES',
48
+	'CRYPTO_KX_PRIMITIVE',
49
+	'CRYPTO_KX_SEEDBYTES',
50
+	'CRYPTO_KX_PUBLICKEYBYTES',
51
+	'CRYPTO_KX_SECRETKEYBYTES',
52
+	'CRYPTO_KX_SESSIONKEYBYTES',
53
+	'CRYPTO_GENERICHASH_BYTES',
54
+	'CRYPTO_GENERICHASH_BYTES_MIN',
55
+	'CRYPTO_GENERICHASH_BYTES_MAX',
56
+	'CRYPTO_GENERICHASH_KEYBYTES',
57
+	'CRYPTO_GENERICHASH_KEYBYTES_MIN',
58
+	'CRYPTO_GENERICHASH_KEYBYTES_MAX',
59
+	'CRYPTO_PWHASH_SALTBYTES',
60
+	'CRYPTO_PWHASH_STRPREFIX',
61
+	'CRYPTO_PWHASH_ALG_ARGON2I13',
62
+	'CRYPTO_PWHASH_ALG_ARGON2ID13',
63
+	'CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE',
64
+	'CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE',
65
+	'CRYPTO_PWHASH_MEMLIMIT_MODERATE',
66
+	'CRYPTO_PWHASH_OPSLIMIT_MODERATE',
67
+	'CRYPTO_PWHASH_MEMLIMIT_SENSITIVE',
68
+	'CRYPTO_PWHASH_OPSLIMIT_SENSITIVE',
69
+	'CRYPTO_PWHASH_SCRYPTSALSA208SHA256_SALTBYTES',
70
+	'CRYPTO_PWHASH_SCRYPTSALSA208SHA256_STRPREFIX',
71
+	'CRYPTO_PWHASH_SCRYPTSALSA208SHA256_MEMLIMIT_INTERACTIVE',
72
+	'CRYPTO_PWHASH_SCRYPTSALSA208SHA256_OPSLIMIT_INTERACTIVE',
73
+	'CRYPTO_PWHASH_SCRYPTSALSA208SHA256_MEMLIMIT_SENSITIVE',
74
+	'CRYPTO_PWHASH_SCRYPTSALSA208SHA256_OPSLIMIT_SENSITIVE',
75
+	'CRYPTO_SCALARMULT_BYTES',
76
+	'CRYPTO_SCALARMULT_SCALARBYTES',
77
+	'CRYPTO_SHORTHASH_BYTES',
78
+	'CRYPTO_SHORTHASH_KEYBYTES',
79
+	'CRYPTO_SECRETBOX_KEYBYTES',
80
+	'CRYPTO_SECRETBOX_MACBYTES',
81
+	'CRYPTO_SECRETBOX_NONCEBYTES',
82
+	'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_ABYTES',
83
+	'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_HEADERBYTES',
84
+	'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_KEYBYTES',
85
+	'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_PUSH',
86
+	'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_PULL',
87
+	'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_REKEY',
88
+	'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_FINAL',
89
+	'CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_MESSAGEBYTES_MAX',
90
+	'CRYPTO_SIGN_BYTES',
91
+	'CRYPTO_SIGN_SEEDBYTES',
92
+	'CRYPTO_SIGN_PUBLICKEYBYTES',
93
+	'CRYPTO_SIGN_SECRETKEYBYTES',
94
+	'CRYPTO_SIGN_KEYPAIRBYTES',
95
+	'CRYPTO_STREAM_KEYBYTES',
96
+	'CRYPTO_STREAM_NONCEBYTES',
97
+	'CRYPTO_STREAM_XCHACHA20_KEYBYTES',
98
+	'CRYPTO_STREAM_XCHACHA20_NONCEBYTES',
99
+	'LIBRARY_MAJOR_VERSION',
100
+	'LIBRARY_MINOR_VERSION',
101
+	'LIBRARY_VERSION_MAJOR',
102
+	'LIBRARY_VERSION_MINOR',
103
+	'VERSION_STRING'
104
+	) as $constant
105 105
 ) {
106
-    if (!defined("SODIUM_$constant") && defined("ParagonIE_Sodium_Compat::$constant")) {
107
-        define("SODIUM_$constant", constant("ParagonIE_Sodium_Compat::$constant"));
108
-    }
106
+	if (!defined("SODIUM_$constant") && defined("ParagonIE_Sodium_Compat::$constant")) {
107
+		define("SODIUM_$constant", constant("ParagonIE_Sodium_Compat::$constant"));
108
+	}
109 109
 }
110 110
 if (!is_callable('sodium_add')) {
111
-    /**
112
-     * @see ParagonIE_Sodium_Compat::add()
113
-     * @param string $val
114
-     * @param string $addv
115
-     * @return void
116
-     * @throws SodiumException
117
-     */
118
-    function sodium_add(&$val, $addv)
119
-    {
120
-        ParagonIE_Sodium_Compat::add($val, $addv);
121
-    }
111
+	/**
112
+	 * @see ParagonIE_Sodium_Compat::add()
113
+	 * @param string $val
114
+	 * @param string $addv
115
+	 * @return void
116
+	 * @throws SodiumException
117
+	 */
118
+	function sodium_add(&$val, $addv)
119
+	{
120
+		ParagonIE_Sodium_Compat::add($val, $addv);
121
+	}
122 122
 }
123 123
 if (!is_callable('sodium_base642bin')) {
124
-    /**
125
-     * @see ParagonIE_Sodium_Compat::bin2base64()
126
-     * @param string $string
127
-     * @param int $variant
128
-     * @param string $ignore
129
-     * @return string
130
-     * @throws SodiumException
131
-     * @throws TypeError
132
-     */
133
-    function sodium_base642bin($string, $variant, $ignore ='')
134
-    {
135
-        return ParagonIE_Sodium_Compat::base642bin($string, $variant, $ignore);
136
-    }
124
+	/**
125
+	 * @see ParagonIE_Sodium_Compat::bin2base64()
126
+	 * @param string $string
127
+	 * @param int $variant
128
+	 * @param string $ignore
129
+	 * @return string
130
+	 * @throws SodiumException
131
+	 * @throws TypeError
132
+	 */
133
+	function sodium_base642bin($string, $variant, $ignore ='')
134
+	{
135
+		return ParagonIE_Sodium_Compat::base642bin($string, $variant, $ignore);
136
+	}
137 137
 }
138 138
 if (!is_callable('sodium_bin2base64')) {
139
-    /**
140
-     * @see ParagonIE_Sodium_Compat::bin2base64()
141
-     * @param string $string
142
-     * @param int $variant
143
-     * @return string
144
-     * @throws SodiumException
145
-     * @throws TypeError
146
-     */
147
-    function sodium_bin2base64($string, $variant)
148
-    {
149
-        return ParagonIE_Sodium_Compat::bin2base64($string, $variant);
150
-    }
139
+	/**
140
+	 * @see ParagonIE_Sodium_Compat::bin2base64()
141
+	 * @param string $string
142
+	 * @param int $variant
143
+	 * @return string
144
+	 * @throws SodiumException
145
+	 * @throws TypeError
146
+	 */
147
+	function sodium_bin2base64($string, $variant)
148
+	{
149
+		return ParagonIE_Sodium_Compat::bin2base64($string, $variant);
150
+	}
151 151
 }
152 152
 if (!is_callable('sodium_bin2hex')) {
153
-    /**
154
-     * @see ParagonIE_Sodium_Compat::hex2bin()
155
-     * @param string $string
156
-     * @return string
157
-     * @throws SodiumException
158
-     * @throws TypeError
159
-     */
160
-    function sodium_bin2hex($string)
161
-    {
162
-        return ParagonIE_Sodium_Compat::bin2hex($string);
163
-    }
153
+	/**
154
+	 * @see ParagonIE_Sodium_Compat::hex2bin()
155
+	 * @param string $string
156
+	 * @return string
157
+	 * @throws SodiumException
158
+	 * @throws TypeError
159
+	 */
160
+	function sodium_bin2hex($string)
161
+	{
162
+		return ParagonIE_Sodium_Compat::bin2hex($string);
163
+	}
164 164
 }
165 165
 if (!is_callable('sodium_compare')) {
166
-    /**
167
-     * @see ParagonIE_Sodium_Compat::compare()
168
-     * @param string $a
169
-     * @param string $b
170
-     * @return int
171
-     * @throws SodiumException
172
-     * @throws TypeError
173
-     */
174
-    function sodium_compare($a, $b)
175
-    {
176
-        return ParagonIE_Sodium_Compat::compare($a, $b);
177
-    }
166
+	/**
167
+	 * @see ParagonIE_Sodium_Compat::compare()
168
+	 * @param string $a
169
+	 * @param string $b
170
+	 * @return int
171
+	 * @throws SodiumException
172
+	 * @throws TypeError
173
+	 */
174
+	function sodium_compare($a, $b)
175
+	{
176
+		return ParagonIE_Sodium_Compat::compare($a, $b);
177
+	}
178 178
 }
179 179
 if (!is_callable('sodium_crypto_aead_aes256gcm_decrypt')) {
180
-    /**
181
-     * @see ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt()
182
-     * @param string $message
183
-     * @param string $assocData
184
-     * @param string $nonce
185
-     * @param string $key
186
-     * @return string|bool
187
-     */
188
-    function sodium_crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key)
189
-    {
190
-        try {
191
-            return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key);
192
-        } catch (Error $ex) {
193
-            return false;
194
-        } catch (Exception $ex) {
195
-            return false;
196
-        }
197
-    }
180
+	/**
181
+	 * @see ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt()
182
+	 * @param string $message
183
+	 * @param string $assocData
184
+	 * @param string $nonce
185
+	 * @param string $key
186
+	 * @return string|bool
187
+	 */
188
+	function sodium_crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key)
189
+	{
190
+		try {
191
+			return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key);
192
+		} catch (Error $ex) {
193
+			return false;
194
+		} catch (Exception $ex) {
195
+			return false;
196
+		}
197
+	}
198 198
 }
199 199
 if (!is_callable('sodium_crypto_aead_aes256gcm_encrypt')) {
200
-    /**
201
-     * @see ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_encrypt()
202
-     * @param string $message
203
-     * @param string $assocData
204
-     * @param string $nonce
205
-     * @param string $key
206
-     * @return string
207
-     * @throws SodiumException
208
-     * @throws TypeError
209
-     */
210
-    function sodium_crypto_aead_aes256gcm_encrypt($message, $assocData, $nonce, $key)
211
-    {
212
-        return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_encrypt($message, $assocData, $nonce, $key);
213
-    }
200
+	/**
201
+	 * @see ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_encrypt()
202
+	 * @param string $message
203
+	 * @param string $assocData
204
+	 * @param string $nonce
205
+	 * @param string $key
206
+	 * @return string
207
+	 * @throws SodiumException
208
+	 * @throws TypeError
209
+	 */
210
+	function sodium_crypto_aead_aes256gcm_encrypt($message, $assocData, $nonce, $key)
211
+	{
212
+		return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_encrypt($message, $assocData, $nonce, $key);
213
+	}
214 214
 }
215 215
 if (!is_callable('sodium_crypto_aead_aes256gcm_is_available')) {
216
-    /**
217
-     * @see ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_is_available()
218
-     * @return bool
219
-     */
220
-    function sodium_crypto_aead_aes256gcm_is_available()
221
-    {
222
-        return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_is_available();
223
-    }
216
+	/**
217
+	 * @see ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_is_available()
218
+	 * @return bool
219
+	 */
220
+	function sodium_crypto_aead_aes256gcm_is_available()
221
+	{
222
+		return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_is_available();
223
+	}
224 224
 }
225 225
 if (!is_callable('sodium_crypto_aead_chacha20poly1305_decrypt')) {
226
-    /**
227
-     * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_decrypt()
228
-     * @param string $message
229
-     * @param string $assocData
230
-     * @param string $nonce
231
-     * @param string $key
232
-     * @return string|bool
233
-     */
234
-    function sodium_crypto_aead_chacha20poly1305_decrypt($message, $assocData, $nonce, $key)
235
-    {
236
-        try {
237
-            return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_decrypt($message, $assocData, $nonce, $key);
238
-        } catch (Error $ex) {
239
-            return false;
240
-        } catch (Exception $ex) {
241
-            return false;
242
-        }
243
-    }
226
+	/**
227
+	 * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_decrypt()
228
+	 * @param string $message
229
+	 * @param string $assocData
230
+	 * @param string $nonce
231
+	 * @param string $key
232
+	 * @return string|bool
233
+	 */
234
+	function sodium_crypto_aead_chacha20poly1305_decrypt($message, $assocData, $nonce, $key)
235
+	{
236
+		try {
237
+			return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_decrypt($message, $assocData, $nonce, $key);
238
+		} catch (Error $ex) {
239
+			return false;
240
+		} catch (Exception $ex) {
241
+			return false;
242
+		}
243
+	}
244 244
 }
245 245
 if (!is_callable('sodium_crypto_aead_chacha20poly1305_encrypt')) {
246
-    /**
247
-     * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_encrypt()
248
-     * @param string $message
249
-     * @param string $assocData
250
-     * @param string $nonce
251
-     * @param string $key
252
-     * @return string
253
-     * @throws SodiumException
254
-     * @throws TypeError
255
-     */
256
-    function sodium_crypto_aead_chacha20poly1305_encrypt($message, $assocData, $nonce, $key)
257
-    {
258
-        return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_encrypt($message, $assocData, $nonce, $key);
259
-    }
246
+	/**
247
+	 * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_encrypt()
248
+	 * @param string $message
249
+	 * @param string $assocData
250
+	 * @param string $nonce
251
+	 * @param string $key
252
+	 * @return string
253
+	 * @throws SodiumException
254
+	 * @throws TypeError
255
+	 */
256
+	function sodium_crypto_aead_chacha20poly1305_encrypt($message, $assocData, $nonce, $key)
257
+	{
258
+		return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_encrypt($message, $assocData, $nonce, $key);
259
+	}
260 260
 }
261 261
 if (!is_callable('sodium_crypto_aead_chacha20poly1305_keygen')) {
262
-    /**
263
-     * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_keygen()
264
-     * @return string
265
-     * @throws Exception
266
-     */
267
-    function sodium_crypto_aead_chacha20poly1305_keygen()
268
-    {
269
-        return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_keygen();
270
-    }
262
+	/**
263
+	 * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_keygen()
264
+	 * @return string
265
+	 * @throws Exception
266
+	 */
267
+	function sodium_crypto_aead_chacha20poly1305_keygen()
268
+	{
269
+		return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_keygen();
270
+	}
271 271
 }
272 272
 if (!is_callable('sodium_crypto_aead_chacha20poly1305_ietf_decrypt')) {
273
-    /**
274
-     * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_decrypt()
275
-     * @param string $message
276
-     * @param string $assocData
277
-     * @param string $nonce
278
-     * @param string $key
279
-     * @return string|bool
280
-     */
281
-    function sodium_crypto_aead_chacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key)
282
-    {
283
-        try {
284
-            return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key);
285
-        } catch (Error $ex) {
286
-            return false;
287
-        } catch (Exception $ex) {
288
-            return false;
289
-        }
290
-    }
273
+	/**
274
+	 * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_decrypt()
275
+	 * @param string $message
276
+	 * @param string $assocData
277
+	 * @param string $nonce
278
+	 * @param string $key
279
+	 * @return string|bool
280
+	 */
281
+	function sodium_crypto_aead_chacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key)
282
+	{
283
+		try {
284
+			return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key);
285
+		} catch (Error $ex) {
286
+			return false;
287
+		} catch (Exception $ex) {
288
+			return false;
289
+		}
290
+	}
291 291
 }
292 292
 if (!is_callable('sodium_crypto_aead_chacha20poly1305_ietf_encrypt')) {
293
-    /**
294
-     * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_encrypt()
295
-     * @param string $message
296
-     * @param string $assocData
297
-     * @param string $nonce
298
-     * @param string $key
299
-     * @return string
300
-     * @throws SodiumException
301
-     * @throws TypeError
302
-     */
303
-    function sodium_crypto_aead_chacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key)
304
-    {
305
-        return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key);
306
-    }
293
+	/**
294
+	 * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_encrypt()
295
+	 * @param string $message
296
+	 * @param string $assocData
297
+	 * @param string $nonce
298
+	 * @param string $key
299
+	 * @return string
300
+	 * @throws SodiumException
301
+	 * @throws TypeError
302
+	 */
303
+	function sodium_crypto_aead_chacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key)
304
+	{
305
+		return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key);
306
+	}
307 307
 }
308 308
 if (!is_callable('sodium_crypto_aead_chacha20poly1305_ietf_keygen')) {
309
-    /**
310
-     * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_keygen()
311
-     * @return string
312
-     * @throws Exception
313
-     */
314
-    function sodium_crypto_aead_chacha20poly1305_ietf_keygen()
315
-    {
316
-        return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_keygen();
317
-    }
309
+	/**
310
+	 * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_keygen()
311
+	 * @return string
312
+	 * @throws Exception
313
+	 */
314
+	function sodium_crypto_aead_chacha20poly1305_ietf_keygen()
315
+	{
316
+		return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_keygen();
317
+	}
318 318
 }
319 319
 if (!is_callable('sodium_crypto_aead_xchacha20poly1305_ietf_decrypt')) {
320
-    /**
321
-     * @see ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_decrypt()
322
-     * @param string $message
323
-     * @param string $assocData
324
-     * @param string $nonce
325
-     * @param string $key
326
-     * @return string|bool
327
-     */
328
-    function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key)
329
-    {
330
-        try {
331
-            return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key, true);
332
-        } catch (Error $ex) {
333
-            return false;
334
-        } catch (Exception $ex) {
335
-            return false;
336
-        }
337
-    }
320
+	/**
321
+	 * @see ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_decrypt()
322
+	 * @param string $message
323
+	 * @param string $assocData
324
+	 * @param string $nonce
325
+	 * @param string $key
326
+	 * @return string|bool
327
+	 */
328
+	function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key)
329
+	{
330
+		try {
331
+			return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key, true);
332
+		} catch (Error $ex) {
333
+			return false;
334
+		} catch (Exception $ex) {
335
+			return false;
336
+		}
337
+	}
338 338
 }
339 339
 if (!is_callable('sodium_crypto_aead_xchacha20poly1305_ietf_encrypt')) {
340
-    /**
341
-     * @see ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_encrypt()
342
-     * @param string $message
343
-     * @param string $assocData
344
-     * @param string $nonce
345
-     * @param string $key
346
-     * @return string
347
-     * @throws SodiumException
348
-     * @throws TypeError
349
-     */
350
-    function sodium_crypto_aead_xchacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key)
351
-    {
352
-        return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key, true);
353
-    }
340
+	/**
341
+	 * @see ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_encrypt()
342
+	 * @param string $message
343
+	 * @param string $assocData
344
+	 * @param string $nonce
345
+	 * @param string $key
346
+	 * @return string
347
+	 * @throws SodiumException
348
+	 * @throws TypeError
349
+	 */
350
+	function sodium_crypto_aead_xchacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key)
351
+	{
352
+		return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key, true);
353
+	}
354 354
 }
355 355
 if (!is_callable('sodium_crypto_aead_xchacha20poly1305_ietf_keygen')) {
356
-    /**
357
-     * @see ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_keygen()
358
-     * @return string
359
-     * @throws Exception
360
-     */
361
-    function sodium_crypto_aead_xchacha20poly1305_ietf_keygen()
362
-    {
363
-        return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_keygen();
364
-    }
356
+	/**
357
+	 * @see ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_keygen()
358
+	 * @return string
359
+	 * @throws Exception
360
+	 */
361
+	function sodium_crypto_aead_xchacha20poly1305_ietf_keygen()
362
+	{
363
+		return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_keygen();
364
+	}
365 365
 }
366 366
 if (!is_callable('sodium_crypto_auth')) {
367
-    /**
368
-     * @see ParagonIE_Sodium_Compat::crypto_auth()
369
-     * @param string $message
370
-     * @param string $key
371
-     * @return string
372
-     * @throws SodiumException
373
-     * @throws TypeError
374
-     */
375
-    function sodium_crypto_auth($message, $key)
376
-    {
377
-        return ParagonIE_Sodium_Compat::crypto_auth($message, $key);
378
-    }
367
+	/**
368
+	 * @see ParagonIE_Sodium_Compat::crypto_auth()
369
+	 * @param string $message
370
+	 * @param string $key
371
+	 * @return string
372
+	 * @throws SodiumException
373
+	 * @throws TypeError
374
+	 */
375
+	function sodium_crypto_auth($message, $key)
376
+	{
377
+		return ParagonIE_Sodium_Compat::crypto_auth($message, $key);
378
+	}
379 379
 }
380 380
 if (!is_callable('sodium_crypto_auth_keygen')) {
381
-    /**
382
-     * @see ParagonIE_Sodium_Compat::crypto_auth_keygen()
383
-     * @return string
384
-     * @throws Exception
385
-     */
386
-    function sodium_crypto_auth_keygen()
387
-    {
388
-        return ParagonIE_Sodium_Compat::crypto_auth_keygen();
389
-    }
381
+	/**
382
+	 * @see ParagonIE_Sodium_Compat::crypto_auth_keygen()
383
+	 * @return string
384
+	 * @throws Exception
385
+	 */
386
+	function sodium_crypto_auth_keygen()
387
+	{
388
+		return ParagonIE_Sodium_Compat::crypto_auth_keygen();
389
+	}
390 390
 }
391 391
 if (!is_callable('sodium_crypto_auth_verify')) {
392
-    /**
393
-     * @see ParagonIE_Sodium_Compat::crypto_auth_verify()
394
-     * @param string $mac
395
-     * @param string $message
396
-     * @param string $key
397
-     * @return bool
398
-     * @throws SodiumException
399
-     * @throws TypeError
400
-     */
401
-    function sodium_crypto_auth_verify($mac, $message, $key)
402
-    {
403
-        return ParagonIE_Sodium_Compat::crypto_auth_verify($mac, $message, $key);
404
-    }
392
+	/**
393
+	 * @see ParagonIE_Sodium_Compat::crypto_auth_verify()
394
+	 * @param string $mac
395
+	 * @param string $message
396
+	 * @param string $key
397
+	 * @return bool
398
+	 * @throws SodiumException
399
+	 * @throws TypeError
400
+	 */
401
+	function sodium_crypto_auth_verify($mac, $message, $key)
402
+	{
403
+		return ParagonIE_Sodium_Compat::crypto_auth_verify($mac, $message, $key);
404
+	}
405 405
 }
406 406
 if (!is_callable('sodium_crypto_box')) {
407
-    /**
408
-     * @see ParagonIE_Sodium_Compat::crypto_box()
409
-     * @param string $message
410
-     * @param string $nonce
411
-     * @param string $kp
412
-     * @return string
413
-     * @throws SodiumException
414
-     * @throws TypeError
415
-     */
416
-    function sodium_crypto_box($message, $nonce, $kp)
417
-    {
418
-        return ParagonIE_Sodium_Compat::crypto_box($message, $nonce, $kp);
419
-    }
407
+	/**
408
+	 * @see ParagonIE_Sodium_Compat::crypto_box()
409
+	 * @param string $message
410
+	 * @param string $nonce
411
+	 * @param string $kp
412
+	 * @return string
413
+	 * @throws SodiumException
414
+	 * @throws TypeError
415
+	 */
416
+	function sodium_crypto_box($message, $nonce, $kp)
417
+	{
418
+		return ParagonIE_Sodium_Compat::crypto_box($message, $nonce, $kp);
419
+	}
420 420
 }
421 421
 if (!is_callable('sodium_crypto_box_keypair')) {
422
-    /**
423
-     * @see ParagonIE_Sodium_Compat::crypto_box_keypair()
424
-     * @return string
425
-     * @throws SodiumException
426
-     * @throws TypeError
427
-     */
428
-    function sodium_crypto_box_keypair()
429
-    {
430
-        return ParagonIE_Sodium_Compat::crypto_box_keypair();
431
-    }
422
+	/**
423
+	 * @see ParagonIE_Sodium_Compat::crypto_box_keypair()
424
+	 * @return string
425
+	 * @throws SodiumException
426
+	 * @throws TypeError
427
+	 */
428
+	function sodium_crypto_box_keypair()
429
+	{
430
+		return ParagonIE_Sodium_Compat::crypto_box_keypair();
431
+	}
432 432
 }
433 433
 if (!is_callable('sodium_crypto_box_keypair_from_secretkey_and_publickey')) {
434
-    /**
435
-     * @see ParagonIE_Sodium_Compat::crypto_box_keypair_from_secretkey_and_publickey()
436
-     * @param string $sk
437
-     * @param string $pk
438
-     * @return string
439
-     * @throws SodiumException
440
-     * @throws TypeError
441
-     */
442
-    function sodium_crypto_box_keypair_from_secretkey_and_publickey($sk, $pk)
443
-    {
444
-        return ParagonIE_Sodium_Compat::crypto_box_keypair_from_secretkey_and_publickey($sk, $pk);
445
-    }
434
+	/**
435
+	 * @see ParagonIE_Sodium_Compat::crypto_box_keypair_from_secretkey_and_publickey()
436
+	 * @param string $sk
437
+	 * @param string $pk
438
+	 * @return string
439
+	 * @throws SodiumException
440
+	 * @throws TypeError
441
+	 */
442
+	function sodium_crypto_box_keypair_from_secretkey_and_publickey($sk, $pk)
443
+	{
444
+		return ParagonIE_Sodium_Compat::crypto_box_keypair_from_secretkey_and_publickey($sk, $pk);
445
+	}
446 446
 }
447 447
 if (!is_callable('sodium_crypto_box_open')) {
448
-    /**
449
-     * @see ParagonIE_Sodium_Compat::crypto_box_open()
450
-     * @param string $message
451
-     * @param string $nonce
452
-     * @param string $kp
453
-     * @return string|bool
454
-     */
455
-    function sodium_crypto_box_open($message, $nonce, $kp)
456
-    {
457
-        try {
458
-            return ParagonIE_Sodium_Compat::crypto_box_open($message, $nonce, $kp);
459
-        } catch (Error $ex) {
460
-            return false;
461
-        } catch (Exception $ex) {
462
-            return false;
463
-        }
464
-    }
448
+	/**
449
+	 * @see ParagonIE_Sodium_Compat::crypto_box_open()
450
+	 * @param string $message
451
+	 * @param string $nonce
452
+	 * @param string $kp
453
+	 * @return string|bool
454
+	 */
455
+	function sodium_crypto_box_open($message, $nonce, $kp)
456
+	{
457
+		try {
458
+			return ParagonIE_Sodium_Compat::crypto_box_open($message, $nonce, $kp);
459
+		} catch (Error $ex) {
460
+			return false;
461
+		} catch (Exception $ex) {
462
+			return false;
463
+		}
464
+	}
465 465
 }
466 466
 if (!is_callable('sodium_crypto_box_publickey')) {
467
-    /**
468
-     * @see ParagonIE_Sodium_Compat::crypto_box_publickey()
469
-     * @param string $keypair
470
-     * @return string
471
-     * @throws SodiumException
472
-     * @throws TypeError
473
-     */
474
-    function sodium_crypto_box_publickey($keypair)
475
-    {
476
-        return ParagonIE_Sodium_Compat::crypto_box_publickey($keypair);
477
-    }
467
+	/**
468
+	 * @see ParagonIE_Sodium_Compat::crypto_box_publickey()
469
+	 * @param string $keypair
470
+	 * @return string
471
+	 * @throws SodiumException
472
+	 * @throws TypeError
473
+	 */
474
+	function sodium_crypto_box_publickey($keypair)
475
+	{
476
+		return ParagonIE_Sodium_Compat::crypto_box_publickey($keypair);
477
+	}
478 478
 }
479 479
 if (!is_callable('sodium_crypto_box_publickey_from_secretkey')) {
480
-    /**
481
-     * @see ParagonIE_Sodium_Compat::crypto_box_publickey_from_secretkey()
482
-     * @param string $sk
483
-     * @return string
484
-     * @throws SodiumException
485
-     * @throws TypeError
486
-     */
487
-    function sodium_crypto_box_publickey_from_secretkey($sk)
488
-    {
489
-        return ParagonIE_Sodium_Compat::crypto_box_publickey_from_secretkey($sk);
490
-    }
480
+	/**
481
+	 * @see ParagonIE_Sodium_Compat::crypto_box_publickey_from_secretkey()
482
+	 * @param string $sk
483
+	 * @return string
484
+	 * @throws SodiumException
485
+	 * @throws TypeError
486
+	 */
487
+	function sodium_crypto_box_publickey_from_secretkey($sk)
488
+	{
489
+		return ParagonIE_Sodium_Compat::crypto_box_publickey_from_secretkey($sk);
490
+	}
491 491
 }
492 492
 if (!is_callable('sodium_crypto_box_seal')) {
493
-    /**
494
-     * @see ParagonIE_Sodium_Compat::crypto_box_seal()
495
-     * @param string $message
496
-     * @param string $publicKey
497
-     * @return string
498
-     * @throws SodiumException
499
-     * @throws TypeError
500
-     */
501
-    function sodium_crypto_box_seal($message, $publicKey)
502
-    {
503
-        return ParagonIE_Sodium_Compat::crypto_box_seal($message, $publicKey);
504
-    }
493
+	/**
494
+	 * @see ParagonIE_Sodium_Compat::crypto_box_seal()
495
+	 * @param string $message
496
+	 * @param string $publicKey
497
+	 * @return string
498
+	 * @throws SodiumException
499
+	 * @throws TypeError
500
+	 */
501
+	function sodium_crypto_box_seal($message, $publicKey)
502
+	{
503
+		return ParagonIE_Sodium_Compat::crypto_box_seal($message, $publicKey);
504
+	}
505 505
 }
506 506
 if (!is_callable('sodium_crypto_box_seal_open')) {
507
-    /**
508
-     * @see ParagonIE_Sodium_Compat::crypto_box_seal_open()
509
-     * @param string $message
510
-     * @param string $kp
511
-     * @return string|bool
512
-     * @throws SodiumException
513
-     */
514
-    function sodium_crypto_box_seal_open($message, $kp)
515
-    {
516
-        try {
517
-            return ParagonIE_Sodium_Compat::crypto_box_seal_open($message, $kp);
518
-        } catch (SodiumException $ex) {
519
-            if ($ex->getMessage() === 'Argument 2 must be CRYPTO_BOX_KEYPAIRBYTES long.') {
520
-                throw $ex;
521
-            }
522
-            return false;
523
-        }
524
-    }
507
+	/**
508
+	 * @see ParagonIE_Sodium_Compat::crypto_box_seal_open()
509
+	 * @param string $message
510
+	 * @param string $kp
511
+	 * @return string|bool
512
+	 * @throws SodiumException
513
+	 */
514
+	function sodium_crypto_box_seal_open($message, $kp)
515
+	{
516
+		try {
517
+			return ParagonIE_Sodium_Compat::crypto_box_seal_open($message, $kp);
518
+		} catch (SodiumException $ex) {
519
+			if ($ex->getMessage() === 'Argument 2 must be CRYPTO_BOX_KEYPAIRBYTES long.') {
520
+				throw $ex;
521
+			}
522
+			return false;
523
+		}
524
+	}
525 525
 }
526 526
 if (!is_callable('sodium_crypto_box_secretkey')) {
527
-    /**
528
-     * @see ParagonIE_Sodium_Compat::crypto_box_secretkey()
529
-     * @param string $keypair
530
-     * @return string
531
-     * @throws SodiumException
532
-     * @throws TypeError
533
-     */
534
-    function sodium_crypto_box_secretkey($keypair)
535
-    {
536
-        return ParagonIE_Sodium_Compat::crypto_box_secretkey($keypair);
537
-    }
527
+	/**
528
+	 * @see ParagonIE_Sodium_Compat::crypto_box_secretkey()
529
+	 * @param string $keypair
530
+	 * @return string
531
+	 * @throws SodiumException
532
+	 * @throws TypeError
533
+	 */
534
+	function sodium_crypto_box_secretkey($keypair)
535
+	{
536
+		return ParagonIE_Sodium_Compat::crypto_box_secretkey($keypair);
537
+	}
538 538
 }
539 539
 if (!is_callable('sodium_crypto_box_seed_keypair')) {
540
-    /**
541
-     * @see ParagonIE_Sodium_Compat::crypto_box_seed_keypair()
542
-     * @param string $seed
543
-     * @return string
544
-     * @throws SodiumException
545
-     * @throws TypeError
546
-     */
547
-    function sodium_crypto_box_seed_keypair($seed)
548
-    {
549
-        return ParagonIE_Sodium_Compat::crypto_box_seed_keypair($seed);
550
-    }
540
+	/**
541
+	 * @see ParagonIE_Sodium_Compat::crypto_box_seed_keypair()
542
+	 * @param string $seed
543
+	 * @return string
544
+	 * @throws SodiumException
545
+	 * @throws TypeError
546
+	 */
547
+	function sodium_crypto_box_seed_keypair($seed)
548
+	{
549
+		return ParagonIE_Sodium_Compat::crypto_box_seed_keypair($seed);
550
+	}
551 551
 }
552 552
 if (!is_callable('sodium_crypto_generichash')) {
553
-    /**
554
-     * @see ParagonIE_Sodium_Compat::crypto_generichash()
555
-     * @param string $message
556
-     * @param string|null $key
557
-     * @param int $outLen
558
-     * @return string
559
-     * @throws SodiumException
560
-     * @throws TypeError
561
-     */
562
-    function sodium_crypto_generichash($message, $key = null, $outLen = 32)
563
-    {
564
-        return ParagonIE_Sodium_Compat::crypto_generichash($message, $key, $outLen);
565
-    }
553
+	/**
554
+	 * @see ParagonIE_Sodium_Compat::crypto_generichash()
555
+	 * @param string $message
556
+	 * @param string|null $key
557
+	 * @param int $outLen
558
+	 * @return string
559
+	 * @throws SodiumException
560
+	 * @throws TypeError
561
+	 */
562
+	function sodium_crypto_generichash($message, $key = null, $outLen = 32)
563
+	{
564
+		return ParagonIE_Sodium_Compat::crypto_generichash($message, $key, $outLen);
565
+	}
566 566
 }
567 567
 if (!is_callable('sodium_crypto_generichash_final')) {
568
-    /**
569
-     * @see ParagonIE_Sodium_Compat::crypto_generichash_final()
570
-     * @param string|null $ctx
571
-     * @param int $outputLength
572
-     * @return string
573
-     * @throws SodiumException
574
-     * @throws TypeError
575
-     */
576
-    function sodium_crypto_generichash_final(&$ctx, $outputLength = 32)
577
-    {
578
-        return ParagonIE_Sodium_Compat::crypto_generichash_final($ctx, $outputLength);
579
-    }
568
+	/**
569
+	 * @see ParagonIE_Sodium_Compat::crypto_generichash_final()
570
+	 * @param string|null $ctx
571
+	 * @param int $outputLength
572
+	 * @return string
573
+	 * @throws SodiumException
574
+	 * @throws TypeError
575
+	 */
576
+	function sodium_crypto_generichash_final(&$ctx, $outputLength = 32)
577
+	{
578
+		return ParagonIE_Sodium_Compat::crypto_generichash_final($ctx, $outputLength);
579
+	}
580 580
 }
581 581
 if (!is_callable('sodium_crypto_generichash_init')) {
582
-    /**
583
-     * @see ParagonIE_Sodium_Compat::crypto_generichash_init()
584
-     * @param string|null $key
585
-     * @param int $outLen
586
-     * @return string
587
-     * @throws SodiumException
588
-     * @throws TypeError
589
-     */
590
-    function sodium_crypto_generichash_init($key = null, $outLen = 32)
591
-    {
592
-        return ParagonIE_Sodium_Compat::crypto_generichash_init($key, $outLen);
593
-    }
582
+	/**
583
+	 * @see ParagonIE_Sodium_Compat::crypto_generichash_init()
584
+	 * @param string|null $key
585
+	 * @param int $outLen
586
+	 * @return string
587
+	 * @throws SodiumException
588
+	 * @throws TypeError
589
+	 */
590
+	function sodium_crypto_generichash_init($key = null, $outLen = 32)
591
+	{
592
+		return ParagonIE_Sodium_Compat::crypto_generichash_init($key, $outLen);
593
+	}
594 594
 }
595 595
 if (!is_callable('sodium_crypto_generichash_keygen')) {
596
-    /**
597
-     * @see ParagonIE_Sodium_Compat::crypto_generichash_keygen()
598
-     * @return string
599
-     * @throws Exception
600
-     */
601
-    function sodium_crypto_generichash_keygen()
602
-    {
603
-        return ParagonIE_Sodium_Compat::crypto_generichash_keygen();
604
-    }
596
+	/**
597
+	 * @see ParagonIE_Sodium_Compat::crypto_generichash_keygen()
598
+	 * @return string
599
+	 * @throws Exception
600
+	 */
601
+	function sodium_crypto_generichash_keygen()
602
+	{
603
+		return ParagonIE_Sodium_Compat::crypto_generichash_keygen();
604
+	}
605 605
 }
606 606
 if (!is_callable('sodium_crypto_generichash_update')) {
607
-    /**
608
-     * @see ParagonIE_Sodium_Compat::crypto_generichash_update()
609
-     * @param string|null $ctx
610
-     * @param string $message
611
-     * @return void
612
-     * @throws SodiumException
613
-     * @throws TypeError
614
-     */
615
-    function sodium_crypto_generichash_update(&$ctx, $message = '')
616
-    {
617
-        ParagonIE_Sodium_Compat::crypto_generichash_update($ctx, $message);
618
-    }
607
+	/**
608
+	 * @see ParagonIE_Sodium_Compat::crypto_generichash_update()
609
+	 * @param string|null $ctx
610
+	 * @param string $message
611
+	 * @return void
612
+	 * @throws SodiumException
613
+	 * @throws TypeError
614
+	 */
615
+	function sodium_crypto_generichash_update(&$ctx, $message = '')
616
+	{
617
+		ParagonIE_Sodium_Compat::crypto_generichash_update($ctx, $message);
618
+	}
619 619
 }
620 620
 if (!is_callable('sodium_crypto_kdf_keygen')) {
621
-    /**
622
-     * @see ParagonIE_Sodium_Compat::crypto_kdf_keygen()
623
-     * @return string
624
-     * @throws Exception
625
-     */
626
-    function sodium_crypto_kdf_keygen()
627
-    {
628
-        return ParagonIE_Sodium_Compat::crypto_kdf_keygen();
629
-    }
621
+	/**
622
+	 * @see ParagonIE_Sodium_Compat::crypto_kdf_keygen()
623
+	 * @return string
624
+	 * @throws Exception
625
+	 */
626
+	function sodium_crypto_kdf_keygen()
627
+	{
628
+		return ParagonIE_Sodium_Compat::crypto_kdf_keygen();
629
+	}
630 630
 }
631 631
 if (!is_callable('sodium_crypto_kdf_derive_from_key')) {
632
-    /**
633
-     * @see ParagonIE_Sodium_Compat::crypto_kdf_derive_from_key()
634
-     * @param int $subkey_len
635
-     * @param int $subkey_id
636
-     * @param string $context
637
-     * @param string $key
638
-     * @return string
639
-     * @throws Exception
640
-     */
641
-    function sodium_crypto_kdf_derive_from_key($subkey_len, $subkey_id, $context, $key)
642
-    {
643
-        return ParagonIE_Sodium_Compat::crypto_kdf_derive_from_key(
644
-            $subkey_len,
645
-            $subkey_id,
646
-            $context,
647
-            $key
648
-        );
649
-    }
632
+	/**
633
+	 * @see ParagonIE_Sodium_Compat::crypto_kdf_derive_from_key()
634
+	 * @param int $subkey_len
635
+	 * @param int $subkey_id
636
+	 * @param string $context
637
+	 * @param string $key
638
+	 * @return string
639
+	 * @throws Exception
640
+	 */
641
+	function sodium_crypto_kdf_derive_from_key($subkey_len, $subkey_id, $context, $key)
642
+	{
643
+		return ParagonIE_Sodium_Compat::crypto_kdf_derive_from_key(
644
+			$subkey_len,
645
+			$subkey_id,
646
+			$context,
647
+			$key
648
+		);
649
+	}
650 650
 }
651 651
 if (!is_callable('sodium_crypto_kx')) {
652
-    /**
653
-     * @see ParagonIE_Sodium_Compat::crypto_kx()
654
-     * @param string $my_secret
655
-     * @param string $their_public
656
-     * @param string $client_public
657
-     * @param string $server_public
658
-     * @return string
659
-     * @throws SodiumException
660
-     * @throws TypeError
661
-     */
662
-    function sodium_crypto_kx($my_secret, $their_public, $client_public, $server_public)
663
-    {
664
-        return ParagonIE_Sodium_Compat::crypto_kx(
665
-            $my_secret,
666
-            $their_public,
667
-            $client_public,
668
-            $server_public
669
-        );
670
-    }
652
+	/**
653
+	 * @see ParagonIE_Sodium_Compat::crypto_kx()
654
+	 * @param string $my_secret
655
+	 * @param string $their_public
656
+	 * @param string $client_public
657
+	 * @param string $server_public
658
+	 * @return string
659
+	 * @throws SodiumException
660
+	 * @throws TypeError
661
+	 */
662
+	function sodium_crypto_kx($my_secret, $their_public, $client_public, $server_public)
663
+	{
664
+		return ParagonIE_Sodium_Compat::crypto_kx(
665
+			$my_secret,
666
+			$their_public,
667
+			$client_public,
668
+			$server_public
669
+		);
670
+	}
671 671
 }
672 672
 if (!is_callable('sodium_crypto_kx_seed_keypair')) {
673
-    /**
674
-     * @param string $seed
675
-     * @return string
676
-     * @throws Exception
677
-     */
678
-    function sodium_crypto_kx_seed_keypair($seed)
679
-    {
680
-        return ParagonIE_Sodium_Compat::crypto_kx_seed_keypair($seed);
681
-    }
673
+	/**
674
+	 * @param string $seed
675
+	 * @return string
676
+	 * @throws Exception
677
+	 */
678
+	function sodium_crypto_kx_seed_keypair($seed)
679
+	{
680
+		return ParagonIE_Sodium_Compat::crypto_kx_seed_keypair($seed);
681
+	}
682 682
 }
683 683
 if (!is_callable('sodium_crypto_kx_keypair')) {
684
-    /**
685
-     * @return string
686
-     * @throws Exception
687
-     */
688
-    function sodium_crypto_kx_keypair()
689
-    {
690
-        return ParagonIE_Sodium_Compat::crypto_kx_keypair();
691
-    }
684
+	/**
685
+	 * @return string
686
+	 * @throws Exception
687
+	 */
688
+	function sodium_crypto_kx_keypair()
689
+	{
690
+		return ParagonIE_Sodium_Compat::crypto_kx_keypair();
691
+	}
692 692
 }
693 693
 if (!is_callable('sodium_crypto_kx_client_session_keys')) {
694
-    /**
695
-     * @param string $keypair
696
-     * @param string $serverPublicKey
697
-     * @return array{0: string, 1: string}
698
-     * @throws SodiumException
699
-     */
700
-    function sodium_crypto_kx_client_session_keys($keypair, $serverPublicKey)
701
-    {
702
-        return ParagonIE_Sodium_Compat::crypto_kx_client_session_keys($keypair, $serverPublicKey);
703
-    }
694
+	/**
695
+	 * @param string $keypair
696
+	 * @param string $serverPublicKey
697
+	 * @return array{0: string, 1: string}
698
+	 * @throws SodiumException
699
+	 */
700
+	function sodium_crypto_kx_client_session_keys($keypair, $serverPublicKey)
701
+	{
702
+		return ParagonIE_Sodium_Compat::crypto_kx_client_session_keys($keypair, $serverPublicKey);
703
+	}
704 704
 }
705 705
 if (!is_callable('sodium_crypto_kx_server_session_keys')) {
706
-    /**
707
-     * @param string $keypair
708
-     * @param string $clientPublicKey
709
-     * @return array{0: string, 1: string}
710
-     * @throws SodiumException
711
-     */
712
-    function sodium_crypto_kx_server_session_keys($keypair, $clientPublicKey)
713
-    {
714
-        return ParagonIE_Sodium_Compat::crypto_kx_server_session_keys($keypair, $clientPublicKey);
715
-    }
706
+	/**
707
+	 * @param string $keypair
708
+	 * @param string $clientPublicKey
709
+	 * @return array{0: string, 1: string}
710
+	 * @throws SodiumException
711
+	 */
712
+	function sodium_crypto_kx_server_session_keys($keypair, $clientPublicKey)
713
+	{
714
+		return ParagonIE_Sodium_Compat::crypto_kx_server_session_keys($keypair, $clientPublicKey);
715
+	}
716 716
 }
717 717
 if (!is_callable('sodium_crypto_kx_secretkey')) {
718
-    /**
719
-     * @param string $keypair
720
-     * @return string
721
-     * @throws Exception
722
-     */
723
-    function sodium_crypto_kx_secretkey($keypair)
724
-    {
725
-        return ParagonIE_Sodium_Compat::crypto_kx_secretkey($keypair);
726
-    }
718
+	/**
719
+	 * @param string $keypair
720
+	 * @return string
721
+	 * @throws Exception
722
+	 */
723
+	function sodium_crypto_kx_secretkey($keypair)
724
+	{
725
+		return ParagonIE_Sodium_Compat::crypto_kx_secretkey($keypair);
726
+	}
727 727
 }
728 728
 if (!is_callable('sodium_crypto_kx_publickey')) {
729
-    /**
730
-     * @param string $keypair
731
-     * @return string
732
-     * @throws Exception
733
-     */
734
-    function sodium_crypto_kx_publickey($keypair)
735
-    {
736
-        return ParagonIE_Sodium_Compat::crypto_kx_publickey($keypair);
737
-    }
729
+	/**
730
+	 * @param string $keypair
731
+	 * @return string
732
+	 * @throws Exception
733
+	 */
734
+	function sodium_crypto_kx_publickey($keypair)
735
+	{
736
+		return ParagonIE_Sodium_Compat::crypto_kx_publickey($keypair);
737
+	}
738 738
 }
739 739
 if (!is_callable('sodium_crypto_pwhash')) {
740
-    /**
741
-     * @see ParagonIE_Sodium_Compat::crypto_pwhash()
742
-     * @param int $outlen
743
-     * @param string $passwd
744
-     * @param string $salt
745
-     * @param int $opslimit
746
-     * @param int $memlimit
747
-     * @param int|null $algo
748
-     * @return string
749
-     * @throws SodiumException
750
-     * @throws TypeError
751
-     */
752
-    function sodium_crypto_pwhash($outlen, $passwd, $salt, $opslimit, $memlimit, $algo = null)
753
-    {
754
-        return ParagonIE_Sodium_Compat::crypto_pwhash($outlen, $passwd, $salt, $opslimit, $memlimit, $algo);
755
-    }
740
+	/**
741
+	 * @see ParagonIE_Sodium_Compat::crypto_pwhash()
742
+	 * @param int $outlen
743
+	 * @param string $passwd
744
+	 * @param string $salt
745
+	 * @param int $opslimit
746
+	 * @param int $memlimit
747
+	 * @param int|null $algo
748
+	 * @return string
749
+	 * @throws SodiumException
750
+	 * @throws TypeError
751
+	 */
752
+	function sodium_crypto_pwhash($outlen, $passwd, $salt, $opslimit, $memlimit, $algo = null)
753
+	{
754
+		return ParagonIE_Sodium_Compat::crypto_pwhash($outlen, $passwd, $salt, $opslimit, $memlimit, $algo);
755
+	}
756 756
 }
757 757
 if (!is_callable('sodium_crypto_pwhash_str')) {
758
-    /**
759
-     * @see ParagonIE_Sodium_Compat::crypto_pwhash_str()
760
-     * @param string $passwd
761
-     * @param int $opslimit
762
-     * @param int $memlimit
763
-     * @return string
764
-     * @throws SodiumException
765
-     * @throws TypeError
766
-     */
767
-    function sodium_crypto_pwhash_str($passwd, $opslimit, $memlimit)
768
-    {
769
-        return ParagonIE_Sodium_Compat::crypto_pwhash_str($passwd, $opslimit, $memlimit);
770
-    }
758
+	/**
759
+	 * @see ParagonIE_Sodium_Compat::crypto_pwhash_str()
760
+	 * @param string $passwd
761
+	 * @param int $opslimit
762
+	 * @param int $memlimit
763
+	 * @return string
764
+	 * @throws SodiumException
765
+	 * @throws TypeError
766
+	 */
767
+	function sodium_crypto_pwhash_str($passwd, $opslimit, $memlimit)
768
+	{
769
+		return ParagonIE_Sodium_Compat::crypto_pwhash_str($passwd, $opslimit, $memlimit);
770
+	}
771 771
 }
772 772
 if (!is_callable('sodium_crypto_pwhash_str_needs_rehash')) {
773
-    /**
774
-     * @see ParagonIE_Sodium_Compat::crypto_pwhash_str_needs_rehash()
775
-     * @param string $hash
776
-     * @param int $opslimit
777
-     * @param int $memlimit
778
-     * @return bool
779
-     *
780
-     * @throws SodiumException
781
-     */
782
-    function sodium_crypto_pwhash_str_needs_rehash($hash, $opslimit, $memlimit)
783
-    {
784
-        return ParagonIE_Sodium_Compat::crypto_pwhash_str_needs_rehash($hash, $opslimit, $memlimit);
785
-    }
773
+	/**
774
+	 * @see ParagonIE_Sodium_Compat::crypto_pwhash_str_needs_rehash()
775
+	 * @param string $hash
776
+	 * @param int $opslimit
777
+	 * @param int $memlimit
778
+	 * @return bool
779
+	 *
780
+	 * @throws SodiumException
781
+	 */
782
+	function sodium_crypto_pwhash_str_needs_rehash($hash, $opslimit, $memlimit)
783
+	{
784
+		return ParagonIE_Sodium_Compat::crypto_pwhash_str_needs_rehash($hash, $opslimit, $memlimit);
785
+	}
786 786
 }
787 787
 if (!is_callable('sodium_crypto_pwhash_str_verify')) {
788
-    /**
789
-     * @see ParagonIE_Sodium_Compat::crypto_pwhash_str_verify()
790
-     * @param string $passwd
791
-     * @param string $hash
792
-     * @return bool
793
-     * @throws SodiumException
794
-     * @throws TypeError
795
-     */
796
-    function sodium_crypto_pwhash_str_verify($passwd, $hash)
797
-    {
798
-        return ParagonIE_Sodium_Compat::crypto_pwhash_str_verify($passwd, $hash);
799
-    }
788
+	/**
789
+	 * @see ParagonIE_Sodium_Compat::crypto_pwhash_str_verify()
790
+	 * @param string $passwd
791
+	 * @param string $hash
792
+	 * @return bool
793
+	 * @throws SodiumException
794
+	 * @throws TypeError
795
+	 */
796
+	function sodium_crypto_pwhash_str_verify($passwd, $hash)
797
+	{
798
+		return ParagonIE_Sodium_Compat::crypto_pwhash_str_verify($passwd, $hash);
799
+	}
800 800
 }
801 801
 if (!is_callable('sodium_crypto_pwhash_scryptsalsa208sha256')) {
802
-    /**
803
-     * @see ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256()
804
-     * @param int $outlen
805
-     * @param string $passwd
806
-     * @param string $salt
807
-     * @param int $opslimit
808
-     * @param int $memlimit
809
-     * @return string
810
-     * @throws SodiumException
811
-     * @throws TypeError
812
-     */
813
-    function sodium_crypto_pwhash_scryptsalsa208sha256($outlen, $passwd, $salt, $opslimit, $memlimit)
814
-    {
815
-        return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256($outlen, $passwd, $salt, $opslimit, $memlimit);
816
-    }
802
+	/**
803
+	 * @see ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256()
804
+	 * @param int $outlen
805
+	 * @param string $passwd
806
+	 * @param string $salt
807
+	 * @param int $opslimit
808
+	 * @param int $memlimit
809
+	 * @return string
810
+	 * @throws SodiumException
811
+	 * @throws TypeError
812
+	 */
813
+	function sodium_crypto_pwhash_scryptsalsa208sha256($outlen, $passwd, $salt, $opslimit, $memlimit)
814
+	{
815
+		return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256($outlen, $passwd, $salt, $opslimit, $memlimit);
816
+	}
817 817
 }
818 818
 if (!is_callable('sodium_crypto_pwhash_scryptsalsa208sha256_str')) {
819
-    /**
820
-     * @see ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str()
821
-     * @param string $passwd
822
-     * @param int $opslimit
823
-     * @param int $memlimit
824
-     * @return string
825
-     * @throws SodiumException
826
-     * @throws TypeError
827
-     */
828
-    function sodium_crypto_pwhash_scryptsalsa208sha256_str($passwd, $opslimit, $memlimit)
829
-    {
830
-        return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str($passwd, $opslimit, $memlimit);
831
-    }
819
+	/**
820
+	 * @see ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str()
821
+	 * @param string $passwd
822
+	 * @param int $opslimit
823
+	 * @param int $memlimit
824
+	 * @return string
825
+	 * @throws SodiumException
826
+	 * @throws TypeError
827
+	 */
828
+	function sodium_crypto_pwhash_scryptsalsa208sha256_str($passwd, $opslimit, $memlimit)
829
+	{
830
+		return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str($passwd, $opslimit, $memlimit);
831
+	}
832 832
 }
833 833
 if (!is_callable('sodium_crypto_pwhash_scryptsalsa208sha256_str_verify')) {
834
-    /**
835
-     * @see ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str_verify()
836
-     * @param string $passwd
837
-     * @param string $hash
838
-     * @return bool
839
-     * @throws SodiumException
840
-     * @throws TypeError
841
-     */
842
-    function sodium_crypto_pwhash_scryptsalsa208sha256_str_verify($passwd, $hash)
843
-    {
844
-        return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str_verify($passwd, $hash);
845
-    }
834
+	/**
835
+	 * @see ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str_verify()
836
+	 * @param string $passwd
837
+	 * @param string $hash
838
+	 * @return bool
839
+	 * @throws SodiumException
840
+	 * @throws TypeError
841
+	 */
842
+	function sodium_crypto_pwhash_scryptsalsa208sha256_str_verify($passwd, $hash)
843
+	{
844
+		return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str_verify($passwd, $hash);
845
+	}
846 846
 }
847 847
 if (!is_callable('sodium_crypto_scalarmult')) {
848
-    /**
849
-     * @see ParagonIE_Sodium_Compat::crypto_scalarmult()
850
-     * @param string $n
851
-     * @param string $p
852
-     * @return string
853
-     * @throws SodiumException
854
-     * @throws TypeError
855
-     */
856
-    function sodium_crypto_scalarmult($n, $p)
857
-    {
858
-        return ParagonIE_Sodium_Compat::crypto_scalarmult($n, $p);
859
-    }
848
+	/**
849
+	 * @see ParagonIE_Sodium_Compat::crypto_scalarmult()
850
+	 * @param string $n
851
+	 * @param string $p
852
+	 * @return string
853
+	 * @throws SodiumException
854
+	 * @throws TypeError
855
+	 */
856
+	function sodium_crypto_scalarmult($n, $p)
857
+	{
858
+		return ParagonIE_Sodium_Compat::crypto_scalarmult($n, $p);
859
+	}
860 860
 }
861 861
 if (!is_callable('sodium_crypto_scalarmult_base')) {
862
-    /**
863
-     * @see ParagonIE_Sodium_Compat::crypto_scalarmult_base()
864
-     * @param string $n
865
-     * @return string
866
-     * @throws SodiumException
867
-     * @throws TypeError
868
-     */
869
-    function sodium_crypto_scalarmult_base($n)
870
-    {
871
-        return ParagonIE_Sodium_Compat::crypto_scalarmult_base($n);
872
-    }
862
+	/**
863
+	 * @see ParagonIE_Sodium_Compat::crypto_scalarmult_base()
864
+	 * @param string $n
865
+	 * @return string
866
+	 * @throws SodiumException
867
+	 * @throws TypeError
868
+	 */
869
+	function sodium_crypto_scalarmult_base($n)
870
+	{
871
+		return ParagonIE_Sodium_Compat::crypto_scalarmult_base($n);
872
+	}
873 873
 }
874 874
 if (!is_callable('sodium_crypto_secretbox')) {
875
-    /**
876
-     * @see ParagonIE_Sodium_Compat::crypto_secretbox()
877
-     * @param string $message
878
-     * @param string $nonce
879
-     * @param string $key
880
-     * @return string
881
-     * @throws SodiumException
882
-     * @throws TypeError
883
-     */
884
-    function sodium_crypto_secretbox($message, $nonce, $key)
885
-    {
886
-        return ParagonIE_Sodium_Compat::crypto_secretbox($message, $nonce, $key);
887
-    }
875
+	/**
876
+	 * @see ParagonIE_Sodium_Compat::crypto_secretbox()
877
+	 * @param string $message
878
+	 * @param string $nonce
879
+	 * @param string $key
880
+	 * @return string
881
+	 * @throws SodiumException
882
+	 * @throws TypeError
883
+	 */
884
+	function sodium_crypto_secretbox($message, $nonce, $key)
885
+	{
886
+		return ParagonIE_Sodium_Compat::crypto_secretbox($message, $nonce, $key);
887
+	}
888 888
 }
889 889
 if (!is_callable('sodium_crypto_secretbox_keygen')) {
890
-    /**
891
-     * @see ParagonIE_Sodium_Compat::crypto_secretbox_keygen()
892
-     * @return string
893
-     * @throws Exception
894
-     */
895
-    function sodium_crypto_secretbox_keygen()
896
-    {
897
-        return ParagonIE_Sodium_Compat::crypto_secretbox_keygen();
898
-    }
890
+	/**
891
+	 * @see ParagonIE_Sodium_Compat::crypto_secretbox_keygen()
892
+	 * @return string
893
+	 * @throws Exception
894
+	 */
895
+	function sodium_crypto_secretbox_keygen()
896
+	{
897
+		return ParagonIE_Sodium_Compat::crypto_secretbox_keygen();
898
+	}
899 899
 }
900 900
 if (!is_callable('sodium_crypto_secretbox_open')) {
901
-    /**
902
-     * @see ParagonIE_Sodium_Compat::crypto_secretbox_open()
903
-     * @param string $message
904
-     * @param string $nonce
905
-     * @param string $key
906
-     * @return string|bool
907
-     */
908
-    function sodium_crypto_secretbox_open($message, $nonce, $key)
909
-    {
910
-        try {
911
-            return ParagonIE_Sodium_Compat::crypto_secretbox_open($message, $nonce, $key);
912
-        } catch (Error $ex) {
913
-            return false;
914
-        } catch (Exception $ex) {
915
-            return false;
916
-        }
917
-    }
901
+	/**
902
+	 * @see ParagonIE_Sodium_Compat::crypto_secretbox_open()
903
+	 * @param string $message
904
+	 * @param string $nonce
905
+	 * @param string $key
906
+	 * @return string|bool
907
+	 */
908
+	function sodium_crypto_secretbox_open($message, $nonce, $key)
909
+	{
910
+		try {
911
+			return ParagonIE_Sodium_Compat::crypto_secretbox_open($message, $nonce, $key);
912
+		} catch (Error $ex) {
913
+			return false;
914
+		} catch (Exception $ex) {
915
+			return false;
916
+		}
917
+	}
918 918
 }
919 919
 if (!is_callable('sodium_crypto_secretstream_xchacha20poly1305_init_push')) {
920
-    /**
921
-     * @param string $key
922
-     * @return array<int, string>
923
-     * @throws SodiumException
924
-     */
925
-    function sodium_crypto_secretstream_xchacha20poly1305_init_push($key)
926
-    {
927
-        return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_init_push($key);
928
-    }
920
+	/**
921
+	 * @param string $key
922
+	 * @return array<int, string>
923
+	 * @throws SodiumException
924
+	 */
925
+	function sodium_crypto_secretstream_xchacha20poly1305_init_push($key)
926
+	{
927
+		return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_init_push($key);
928
+	}
929 929
 }
930 930
 if (!is_callable('sodium_crypto_secretstream_xchacha20poly1305_push')) {
931
-    /**
932
-     * @param string $state
933
-     * @param string $msg
934
-     * @param string $aad
935
-     * @param int $tag
936
-     * @return string
937
-     * @throws SodiumException
938
-     */
939
-    function sodium_crypto_secretstream_xchacha20poly1305_push(&$state, $msg, $aad = '', $tag = 0)
940
-    {
941
-        return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_push($state, $msg, $aad, $tag);
942
-    }
931
+	/**
932
+	 * @param string $state
933
+	 * @param string $msg
934
+	 * @param string $aad
935
+	 * @param int $tag
936
+	 * @return string
937
+	 * @throws SodiumException
938
+	 */
939
+	function sodium_crypto_secretstream_xchacha20poly1305_push(&$state, $msg, $aad = '', $tag = 0)
940
+	{
941
+		return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_push($state, $msg, $aad, $tag);
942
+	}
943 943
 }
944 944
 if (!is_callable('sodium_crypto_secretstream_xchacha20poly1305_init_pull')) {
945
-    /**
946
-     * @param string $header
947
-     * @param string $key
948
-     * @return string
949
-     * @throws Exception
950
-     */
951
-    function sodium_crypto_secretstream_xchacha20poly1305_init_pull($header, $key)
952
-    {
953
-        return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_init_pull($header, $key);
954
-    }
945
+	/**
946
+	 * @param string $header
947
+	 * @param string $key
948
+	 * @return string
949
+	 * @throws Exception
950
+	 */
951
+	function sodium_crypto_secretstream_xchacha20poly1305_init_pull($header, $key)
952
+	{
953
+		return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_init_pull($header, $key);
954
+	}
955 955
 }
956 956
 if (!is_callable('sodium_crypto_secretstream_xchacha20poly1305_pull')) {
957
-    /**
958
-     * @param string $state
959
-     * @param string $cipher
960
-     * @param string $aad
961
-     * @return bool|array{0: string, 1: int}
962
-     * @throws SodiumException
963
-     */
964
-    function sodium_crypto_secretstream_xchacha20poly1305_pull(&$state, $cipher, $aad = '')
965
-    {
966
-        return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_pull($state, $cipher, $aad);
967
-    }
957
+	/**
958
+	 * @param string $state
959
+	 * @param string $cipher
960
+	 * @param string $aad
961
+	 * @return bool|array{0: string, 1: int}
962
+	 * @throws SodiumException
963
+	 */
964
+	function sodium_crypto_secretstream_xchacha20poly1305_pull(&$state, $cipher, $aad = '')
965
+	{
966
+		return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_pull($state, $cipher, $aad);
967
+	}
968 968
 }
969 969
 if (!is_callable('sodium_crypto_secretstream_xchacha20poly1305_rekey')) {
970
-    /**
971
-     * @param string $state
972
-     * @return void
973
-     * @throws SodiumException
974
-     */
975
-    function sodium_crypto_secretstream_xchacha20poly1305_rekey(&$state)
976
-    {
977
-        ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_rekey($state);
978
-    }
970
+	/**
971
+	 * @param string $state
972
+	 * @return void
973
+	 * @throws SodiumException
974
+	 */
975
+	function sodium_crypto_secretstream_xchacha20poly1305_rekey(&$state)
976
+	{
977
+		ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_rekey($state);
978
+	}
979 979
 }
980 980
 if (!is_callable('sodium_crypto_secretstream_xchacha20poly1305_keygen')) {
981
-    /**
982
-     * @return string
983
-     * @throws Exception
984
-     */
985
-    function sodium_crypto_secretstream_xchacha20poly1305_keygen()
986
-    {
987
-        return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_keygen();
988
-    }
981
+	/**
982
+	 * @return string
983
+	 * @throws Exception
984
+	 */
985
+	function sodium_crypto_secretstream_xchacha20poly1305_keygen()
986
+	{
987
+		return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_keygen();
988
+	}
989 989
 }
990 990
 if (!is_callable('sodium_crypto_shorthash')) {
991
-    /**
992
-     * @see ParagonIE_Sodium_Compat::crypto_shorthash()
993
-     * @param string $message
994
-     * @param string $key
995
-     * @return string
996
-     * @throws SodiumException
997
-     * @throws TypeError
998
-     */
999
-    function sodium_crypto_shorthash($message, $key = '')
1000
-    {
1001
-        return ParagonIE_Sodium_Compat::crypto_shorthash($message, $key);
1002
-    }
991
+	/**
992
+	 * @see ParagonIE_Sodium_Compat::crypto_shorthash()
993
+	 * @param string $message
994
+	 * @param string $key
995
+	 * @return string
996
+	 * @throws SodiumException
997
+	 * @throws TypeError
998
+	 */
999
+	function sodium_crypto_shorthash($message, $key = '')
1000
+	{
1001
+		return ParagonIE_Sodium_Compat::crypto_shorthash($message, $key);
1002
+	}
1003 1003
 }
1004 1004
 if (!is_callable('sodium_crypto_shorthash_keygen')) {
1005
-    /**
1006
-     * @see ParagonIE_Sodium_Compat::crypto_shorthash_keygen()
1007
-     * @return string
1008
-     * @throws Exception
1009
-     */
1010
-    function sodium_crypto_shorthash_keygen()
1011
-    {
1012
-        return ParagonIE_Sodium_Compat::crypto_shorthash_keygen();
1013
-    }
1005
+	/**
1006
+	 * @see ParagonIE_Sodium_Compat::crypto_shorthash_keygen()
1007
+	 * @return string
1008
+	 * @throws Exception
1009
+	 */
1010
+	function sodium_crypto_shorthash_keygen()
1011
+	{
1012
+		return ParagonIE_Sodium_Compat::crypto_shorthash_keygen();
1013
+	}
1014 1014
 }
1015 1015
 if (!is_callable('sodium_crypto_sign')) {
1016
-    /**
1017
-     * @see ParagonIE_Sodium_Compat::crypto_sign()
1018
-     * @param string $message
1019
-     * @param string $sk
1020
-     * @return string
1021
-     * @throws SodiumException
1022
-     * @throws TypeError
1023
-     */
1024
-    function sodium_crypto_sign($message, $sk)
1025
-    {
1026
-        return ParagonIE_Sodium_Compat::crypto_sign($message, $sk);
1027
-    }
1016
+	/**
1017
+	 * @see ParagonIE_Sodium_Compat::crypto_sign()
1018
+	 * @param string $message
1019
+	 * @param string $sk
1020
+	 * @return string
1021
+	 * @throws SodiumException
1022
+	 * @throws TypeError
1023
+	 */
1024
+	function sodium_crypto_sign($message, $sk)
1025
+	{
1026
+		return ParagonIE_Sodium_Compat::crypto_sign($message, $sk);
1027
+	}
1028 1028
 }
1029 1029
 if (!is_callable('sodium_crypto_sign_detached')) {
1030
-    /**
1031
-     * @see ParagonIE_Sodium_Compat::crypto_sign_detached()
1032
-     * @param string $message
1033
-     * @param string $sk
1034
-     * @return string
1035
-     * @throws SodiumException
1036
-     * @throws TypeError
1037
-     */
1038
-    function sodium_crypto_sign_detached($message, $sk)
1039
-    {
1040
-        return ParagonIE_Sodium_Compat::crypto_sign_detached($message, $sk);
1041
-    }
1030
+	/**
1031
+	 * @see ParagonIE_Sodium_Compat::crypto_sign_detached()
1032
+	 * @param string $message
1033
+	 * @param string $sk
1034
+	 * @return string
1035
+	 * @throws SodiumException
1036
+	 * @throws TypeError
1037
+	 */
1038
+	function sodium_crypto_sign_detached($message, $sk)
1039
+	{
1040
+		return ParagonIE_Sodium_Compat::crypto_sign_detached($message, $sk);
1041
+	}
1042 1042
 }
1043 1043
 if (!is_callable('sodium_crypto_sign_keypair_from_secretkey_and_publickey')) {
1044
-    /**
1045
-     * @see ParagonIE_Sodium_Compat::crypto_sign_keypair_from_secretkey_and_publickey()
1046
-     * @param string $sk
1047
-     * @param string $pk
1048
-     * @return string
1049
-     * @throws SodiumException
1050
-     * @throws TypeError
1051
-     */
1052
-    function sodium_crypto_sign_keypair_from_secretkey_and_publickey($sk, $pk)
1053
-    {
1054
-        return ParagonIE_Sodium_Compat::crypto_sign_keypair_from_secretkey_and_publickey($sk, $pk);
1055
-    }
1044
+	/**
1045
+	 * @see ParagonIE_Sodium_Compat::crypto_sign_keypair_from_secretkey_and_publickey()
1046
+	 * @param string $sk
1047
+	 * @param string $pk
1048
+	 * @return string
1049
+	 * @throws SodiumException
1050
+	 * @throws TypeError
1051
+	 */
1052
+	function sodium_crypto_sign_keypair_from_secretkey_and_publickey($sk, $pk)
1053
+	{
1054
+		return ParagonIE_Sodium_Compat::crypto_sign_keypair_from_secretkey_and_publickey($sk, $pk);
1055
+	}
1056 1056
 }
1057 1057
 if (!is_callable('sodium_crypto_sign_keypair')) {
1058
-    /**
1059
-     * @see ParagonIE_Sodium_Compat::crypto_sign_keypair()
1060
-     * @return string
1061
-     * @throws SodiumException
1062
-     * @throws TypeError
1063
-     */
1064
-    function sodium_crypto_sign_keypair()
1065
-    {
1066
-        return ParagonIE_Sodium_Compat::crypto_sign_keypair();
1067
-    }
1058
+	/**
1059
+	 * @see ParagonIE_Sodium_Compat::crypto_sign_keypair()
1060
+	 * @return string
1061
+	 * @throws SodiumException
1062
+	 * @throws TypeError
1063
+	 */
1064
+	function sodium_crypto_sign_keypair()
1065
+	{
1066
+		return ParagonIE_Sodium_Compat::crypto_sign_keypair();
1067
+	}
1068 1068
 }
1069 1069
 if (!is_callable('sodium_crypto_sign_open')) {
1070
-    /**
1071
-     * @see ParagonIE_Sodium_Compat::crypto_sign_open()
1072
-     * @param string $signedMessage
1073
-     * @param string $pk
1074
-     * @return string|bool
1075
-     */
1076
-    function sodium_crypto_sign_open($signedMessage, $pk)
1077
-    {
1078
-        try {
1079
-            return ParagonIE_Sodium_Compat::crypto_sign_open($signedMessage, $pk);
1080
-        } catch (Error $ex) {
1081
-            return false;
1082
-        } catch (Exception $ex) {
1083
-            return false;
1084
-        }
1085
-    }
1070
+	/**
1071
+	 * @see ParagonIE_Sodium_Compat::crypto_sign_open()
1072
+	 * @param string $signedMessage
1073
+	 * @param string $pk
1074
+	 * @return string|bool
1075
+	 */
1076
+	function sodium_crypto_sign_open($signedMessage, $pk)
1077
+	{
1078
+		try {
1079
+			return ParagonIE_Sodium_Compat::crypto_sign_open($signedMessage, $pk);
1080
+		} catch (Error $ex) {
1081
+			return false;
1082
+		} catch (Exception $ex) {
1083
+			return false;
1084
+		}
1085
+	}
1086 1086
 }
1087 1087
 if (!is_callable('sodium_crypto_sign_publickey')) {
1088
-    /**
1089
-     * @see ParagonIE_Sodium_Compat::crypto_sign_publickey()
1090
-     * @param string $keypair
1091
-     * @return string
1092
-     * @throws SodiumException
1093
-     * @throws TypeError
1094
-     */
1095
-    function sodium_crypto_sign_publickey($keypair)
1096
-    {
1097
-        return ParagonIE_Sodium_Compat::crypto_sign_publickey($keypair);
1098
-    }
1088
+	/**
1089
+	 * @see ParagonIE_Sodium_Compat::crypto_sign_publickey()
1090
+	 * @param string $keypair
1091
+	 * @return string
1092
+	 * @throws SodiumException
1093
+	 * @throws TypeError
1094
+	 */
1095
+	function sodium_crypto_sign_publickey($keypair)
1096
+	{
1097
+		return ParagonIE_Sodium_Compat::crypto_sign_publickey($keypair);
1098
+	}
1099 1099
 }
1100 1100
 if (!is_callable('sodium_crypto_sign_publickey_from_secretkey')) {
1101
-    /**
1102
-     * @see ParagonIE_Sodium_Compat::crypto_sign_publickey_from_secretkey()
1103
-     * @param string $sk
1104
-     * @return string
1105
-     * @throws SodiumException
1106
-     * @throws TypeError
1107
-     */
1108
-    function sodium_crypto_sign_publickey_from_secretkey($sk)
1109
-    {
1110
-        return ParagonIE_Sodium_Compat::crypto_sign_publickey_from_secretkey($sk);
1111
-    }
1101
+	/**
1102
+	 * @see ParagonIE_Sodium_Compat::crypto_sign_publickey_from_secretkey()
1103
+	 * @param string $sk
1104
+	 * @return string
1105
+	 * @throws SodiumException
1106
+	 * @throws TypeError
1107
+	 */
1108
+	function sodium_crypto_sign_publickey_from_secretkey($sk)
1109
+	{
1110
+		return ParagonIE_Sodium_Compat::crypto_sign_publickey_from_secretkey($sk);
1111
+	}
1112 1112
 }
1113 1113
 if (!is_callable('sodium_crypto_sign_secretkey')) {
1114
-    /**
1115
-     * @see ParagonIE_Sodium_Compat::crypto_sign_secretkey()
1116
-     * @param string $keypair
1117
-     * @return string
1118
-     * @throws SodiumException
1119
-     * @throws TypeError
1120
-     */
1121
-    function sodium_crypto_sign_secretkey($keypair)
1122
-    {
1123
-        return ParagonIE_Sodium_Compat::crypto_sign_secretkey($keypair);
1124
-    }
1114
+	/**
1115
+	 * @see ParagonIE_Sodium_Compat::crypto_sign_secretkey()
1116
+	 * @param string $keypair
1117
+	 * @return string
1118
+	 * @throws SodiumException
1119
+	 * @throws TypeError
1120
+	 */
1121
+	function sodium_crypto_sign_secretkey($keypair)
1122
+	{
1123
+		return ParagonIE_Sodium_Compat::crypto_sign_secretkey($keypair);
1124
+	}
1125 1125
 }
1126 1126
 if (!is_callable('sodium_crypto_sign_seed_keypair')) {
1127
-    /**
1128
-     * @see ParagonIE_Sodium_Compat::crypto_sign_seed_keypair()
1129
-     * @param string $seed
1130
-     * @return string
1131
-     * @throws SodiumException
1132
-     * @throws TypeError
1133
-     */
1134
-    function sodium_crypto_sign_seed_keypair($seed)
1135
-    {
1136
-        return ParagonIE_Sodium_Compat::crypto_sign_seed_keypair($seed);
1137
-    }
1127
+	/**
1128
+	 * @see ParagonIE_Sodium_Compat::crypto_sign_seed_keypair()
1129
+	 * @param string $seed
1130
+	 * @return string
1131
+	 * @throws SodiumException
1132
+	 * @throws TypeError
1133
+	 */
1134
+	function sodium_crypto_sign_seed_keypair($seed)
1135
+	{
1136
+		return ParagonIE_Sodium_Compat::crypto_sign_seed_keypair($seed);
1137
+	}
1138 1138
 }
1139 1139
 if (!is_callable('sodium_crypto_sign_verify_detached')) {
1140
-    /**
1141
-     * @see ParagonIE_Sodium_Compat::crypto_sign_verify_detached()
1142
-     * @param string $signature
1143
-     * @param string $message
1144
-     * @param string $pk
1145
-     * @return bool
1146
-     * @throws SodiumException
1147
-     * @throws TypeError
1148
-     */
1149
-    function sodium_crypto_sign_verify_detached($signature, $message, $pk)
1150
-    {
1151
-        return ParagonIE_Sodium_Compat::crypto_sign_verify_detached($signature, $message, $pk);
1152
-    }
1140
+	/**
1141
+	 * @see ParagonIE_Sodium_Compat::crypto_sign_verify_detached()
1142
+	 * @param string $signature
1143
+	 * @param string $message
1144
+	 * @param string $pk
1145
+	 * @return bool
1146
+	 * @throws SodiumException
1147
+	 * @throws TypeError
1148
+	 */
1149
+	function sodium_crypto_sign_verify_detached($signature, $message, $pk)
1150
+	{
1151
+		return ParagonIE_Sodium_Compat::crypto_sign_verify_detached($signature, $message, $pk);
1152
+	}
1153 1153
 }
1154 1154
 if (!is_callable('sodium_crypto_sign_ed25519_pk_to_curve25519')) {
1155
-    /**
1156
-     * @see ParagonIE_Sodium_Compat::crypto_sign_ed25519_pk_to_curve25519()
1157
-     * @param string $pk
1158
-     * @return string
1159
-     * @throws SodiumException
1160
-     * @throws TypeError
1161
-     */
1162
-    function sodium_crypto_sign_ed25519_pk_to_curve25519($pk)
1163
-    {
1164
-        return ParagonIE_Sodium_Compat::crypto_sign_ed25519_pk_to_curve25519($pk);
1165
-    }
1155
+	/**
1156
+	 * @see ParagonIE_Sodium_Compat::crypto_sign_ed25519_pk_to_curve25519()
1157
+	 * @param string $pk
1158
+	 * @return string
1159
+	 * @throws SodiumException
1160
+	 * @throws TypeError
1161
+	 */
1162
+	function sodium_crypto_sign_ed25519_pk_to_curve25519($pk)
1163
+	{
1164
+		return ParagonIE_Sodium_Compat::crypto_sign_ed25519_pk_to_curve25519($pk);
1165
+	}
1166 1166
 }
1167 1167
 if (!is_callable('sodium_crypto_sign_ed25519_sk_to_curve25519')) {
1168
-    /**
1169
-     * @see ParagonIE_Sodium_Compat::crypto_sign_ed25519_sk_to_curve25519()
1170
-     * @param string $sk
1171
-     * @return string
1172
-     * @throws SodiumException
1173
-     * @throws TypeError
1174
-     */
1175
-    function sodium_crypto_sign_ed25519_sk_to_curve25519($sk)
1176
-    {
1177
-        return ParagonIE_Sodium_Compat::crypto_sign_ed25519_sk_to_curve25519($sk);
1178
-    }
1168
+	/**
1169
+	 * @see ParagonIE_Sodium_Compat::crypto_sign_ed25519_sk_to_curve25519()
1170
+	 * @param string $sk
1171
+	 * @return string
1172
+	 * @throws SodiumException
1173
+	 * @throws TypeError
1174
+	 */
1175
+	function sodium_crypto_sign_ed25519_sk_to_curve25519($sk)
1176
+	{
1177
+		return ParagonIE_Sodium_Compat::crypto_sign_ed25519_sk_to_curve25519($sk);
1178
+	}
1179 1179
 }
1180 1180
 if (!is_callable('sodium_crypto_stream')) {
1181
-    /**
1182
-     * @see ParagonIE_Sodium_Compat::crypto_stream()
1183
-     * @param int $len
1184
-     * @param string $nonce
1185
-     * @param string $key
1186
-     * @return string
1187
-     * @throws SodiumException
1188
-     * @throws TypeError
1189
-     */
1190
-    function sodium_crypto_stream($len, $nonce, $key)
1191
-    {
1192
-        return ParagonIE_Sodium_Compat::crypto_stream($len, $nonce, $key);
1193
-    }
1181
+	/**
1182
+	 * @see ParagonIE_Sodium_Compat::crypto_stream()
1183
+	 * @param int $len
1184
+	 * @param string $nonce
1185
+	 * @param string $key
1186
+	 * @return string
1187
+	 * @throws SodiumException
1188
+	 * @throws TypeError
1189
+	 */
1190
+	function sodium_crypto_stream($len, $nonce, $key)
1191
+	{
1192
+		return ParagonIE_Sodium_Compat::crypto_stream($len, $nonce, $key);
1193
+	}
1194 1194
 }
1195 1195
 if (!is_callable('sodium_crypto_stream_keygen')) {
1196
-    /**
1197
-     * @see ParagonIE_Sodium_Compat::crypto_stream_keygen()
1198
-     * @return string
1199
-     * @throws Exception
1200
-     */
1201
-    function sodium_crypto_stream_keygen()
1202
-    {
1203
-        return ParagonIE_Sodium_Compat::crypto_stream_keygen();
1204
-    }
1196
+	/**
1197
+	 * @see ParagonIE_Sodium_Compat::crypto_stream_keygen()
1198
+	 * @return string
1199
+	 * @throws Exception
1200
+	 */
1201
+	function sodium_crypto_stream_keygen()
1202
+	{
1203
+		return ParagonIE_Sodium_Compat::crypto_stream_keygen();
1204
+	}
1205 1205
 }
1206 1206
 if (!is_callable('sodium_crypto_stream_xor')) {
1207
-    /**
1208
-     * @see ParagonIE_Sodium_Compat::crypto_stream_xor()
1209
-     * @param string $message
1210
-     * @param string $nonce
1211
-     * @param string $key
1212
-     * @return string
1213
-     * @throws SodiumException
1214
-     * @throws TypeError
1215
-     */
1216
-    function sodium_crypto_stream_xor($message, $nonce, $key)
1217
-    {
1218
-        return ParagonIE_Sodium_Compat::crypto_stream_xor($message, $nonce, $key);
1219
-    }
1207
+	/**
1208
+	 * @see ParagonIE_Sodium_Compat::crypto_stream_xor()
1209
+	 * @param string $message
1210
+	 * @param string $nonce
1211
+	 * @param string $key
1212
+	 * @return string
1213
+	 * @throws SodiumException
1214
+	 * @throws TypeError
1215
+	 */
1216
+	function sodium_crypto_stream_xor($message, $nonce, $key)
1217
+	{
1218
+		return ParagonIE_Sodium_Compat::crypto_stream_xor($message, $nonce, $key);
1219
+	}
1220 1220
 }
1221 1221
 require_once dirname(__FILE__) . '/stream-xchacha20.php';
1222 1222
 if (!is_callable('sodium_hex2bin')) {
1223
-    /**
1224
-     * @see ParagonIE_Sodium_Compat::hex2bin()
1225
-     * @param string $string
1226
-     * @return string
1227
-     * @throws SodiumException
1228
-     * @throws TypeError
1229
-     */
1230
-    function sodium_hex2bin($string)
1231
-    {
1232
-        return ParagonIE_Sodium_Compat::hex2bin($string);
1233
-    }
1223
+	/**
1224
+	 * @see ParagonIE_Sodium_Compat::hex2bin()
1225
+	 * @param string $string
1226
+	 * @return string
1227
+	 * @throws SodiumException
1228
+	 * @throws TypeError
1229
+	 */
1230
+	function sodium_hex2bin($string)
1231
+	{
1232
+		return ParagonIE_Sodium_Compat::hex2bin($string);
1233
+	}
1234 1234
 }
1235 1235
 if (!is_callable('sodium_increment')) {
1236
-    /**
1237
-     * @see ParagonIE_Sodium_Compat::increment()
1238
-     * @param string $string
1239
-     * @return void
1240
-     * @throws SodiumException
1241
-     * @throws TypeError
1242
-     */
1243
-    function sodium_increment(&$string)
1244
-    {
1245
-        ParagonIE_Sodium_Compat::increment($string);
1246
-    }
1236
+	/**
1237
+	 * @see ParagonIE_Sodium_Compat::increment()
1238
+	 * @param string $string
1239
+	 * @return void
1240
+	 * @throws SodiumException
1241
+	 * @throws TypeError
1242
+	 */
1243
+	function sodium_increment(&$string)
1244
+	{
1245
+		ParagonIE_Sodium_Compat::increment($string);
1246
+	}
1247 1247
 }
1248 1248
 if (!is_callable('sodium_library_version_major')) {
1249
-    /**
1250
-     * @see ParagonIE_Sodium_Compat::library_version_major()
1251
-     * @return int
1252
-     */
1253
-    function sodium_library_version_major()
1254
-    {
1255
-        return ParagonIE_Sodium_Compat::library_version_major();
1256
-    }
1249
+	/**
1250
+	 * @see ParagonIE_Sodium_Compat::library_version_major()
1251
+	 * @return int
1252
+	 */
1253
+	function sodium_library_version_major()
1254
+	{
1255
+		return ParagonIE_Sodium_Compat::library_version_major();
1256
+	}
1257 1257
 }
1258 1258
 if (!is_callable('sodium_library_version_minor')) {
1259
-    /**
1260
-     * @see ParagonIE_Sodium_Compat::library_version_minor()
1261
-     * @return int
1262
-     */
1263
-    function sodium_library_version_minor()
1264
-    {
1265
-        return ParagonIE_Sodium_Compat::library_version_minor();
1266
-    }
1259
+	/**
1260
+	 * @see ParagonIE_Sodium_Compat::library_version_minor()
1261
+	 * @return int
1262
+	 */
1263
+	function sodium_library_version_minor()
1264
+	{
1265
+		return ParagonIE_Sodium_Compat::library_version_minor();
1266
+	}
1267 1267
 }
1268 1268
 if (!is_callable('sodium_version_string')) {
1269
-    /**
1270
-     * @see ParagonIE_Sodium_Compat::version_string()
1271
-     * @return string
1272
-     */
1273
-    function sodium_version_string()
1274
-    {
1275
-        return ParagonIE_Sodium_Compat::version_string();
1276
-    }
1269
+	/**
1270
+	 * @see ParagonIE_Sodium_Compat::version_string()
1271
+	 * @return string
1272
+	 */
1273
+	function sodium_version_string()
1274
+	{
1275
+		return ParagonIE_Sodium_Compat::version_string();
1276
+	}
1277 1277
 }
1278 1278
 if (!is_callable('sodium_memcmp')) {
1279
-    /**
1280
-     * @see ParagonIE_Sodium_Compat::memcmp()
1281
-     * @param string $a
1282
-     * @param string $b
1283
-     * @return int
1284
-     * @throws SodiumException
1285
-     * @throws TypeError
1286
-     */
1287
-    function sodium_memcmp($a, $b)
1288
-    {
1289
-        return ParagonIE_Sodium_Compat::memcmp($a, $b);
1290
-    }
1279
+	/**
1280
+	 * @see ParagonIE_Sodium_Compat::memcmp()
1281
+	 * @param string $a
1282
+	 * @param string $b
1283
+	 * @return int
1284
+	 * @throws SodiumException
1285
+	 * @throws TypeError
1286
+	 */
1287
+	function sodium_memcmp($a, $b)
1288
+	{
1289
+		return ParagonIE_Sodium_Compat::memcmp($a, $b);
1290
+	}
1291 1291
 }
1292 1292
 if (!is_callable('sodium_memzero')) {
1293
-    /**
1294
-     * @see ParagonIE_Sodium_Compat::memzero()
1295
-     * @param string $str
1296
-     * @return void
1297
-     * @throws SodiumException
1298
-     * @throws TypeError
1299
-     */
1300
-    function sodium_memzero(&$str)
1301
-    {
1302
-        ParagonIE_Sodium_Compat::memzero($str);
1303
-    }
1293
+	/**
1294
+	 * @see ParagonIE_Sodium_Compat::memzero()
1295
+	 * @param string $str
1296
+	 * @return void
1297
+	 * @throws SodiumException
1298
+	 * @throws TypeError
1299
+	 */
1300
+	function sodium_memzero(&$str)
1301
+	{
1302
+		ParagonIE_Sodium_Compat::memzero($str);
1303
+	}
1304 1304
 }
1305 1305
 if (!is_callable('sodium_pad')) {
1306
-    /**
1307
-     * @see ParagonIE_Sodium_Compat::pad()
1308
-     * @param string $unpadded
1309
-     * @param int $blockSize
1310
-     * @return int
1311
-     * @throws SodiumException
1312
-     * @throws TypeError
1313
-     */
1314
-    function sodium_pad($unpadded, $blockSize)
1315
-    {
1316
-        return ParagonIE_Sodium_Compat::pad($unpadded, $blockSize, true);
1317
-    }
1306
+	/**
1307
+	 * @see ParagonIE_Sodium_Compat::pad()
1308
+	 * @param string $unpadded
1309
+	 * @param int $blockSize
1310
+	 * @return int
1311
+	 * @throws SodiumException
1312
+	 * @throws TypeError
1313
+	 */
1314
+	function sodium_pad($unpadded, $blockSize)
1315
+	{
1316
+		return ParagonIE_Sodium_Compat::pad($unpadded, $blockSize, true);
1317
+	}
1318 1318
 }
1319 1319
 if (!is_callable('sodium_unpad')) {
1320
-    /**
1321
-     * @see ParagonIE_Sodium_Compat::pad()
1322
-     * @param string $padded
1323
-     * @param int $blockSize
1324
-     * @return int
1325
-     * @throws SodiumException
1326
-     * @throws TypeError
1327
-     */
1328
-    function sodium_unpad($padded, $blockSize)
1329
-    {
1330
-        return ParagonIE_Sodium_Compat::unpad($padded, $blockSize, true);
1331
-    }
1320
+	/**
1321
+	 * @see ParagonIE_Sodium_Compat::pad()
1322
+	 * @param string $padded
1323
+	 * @param int $blockSize
1324
+	 * @return int
1325
+	 * @throws SodiumException
1326
+	 * @throws TypeError
1327
+	 */
1328
+	function sodium_unpad($padded, $blockSize)
1329
+	{
1330
+		return ParagonIE_Sodium_Compat::unpad($padded, $blockSize, true);
1331
+	}
1332 1332
 }
1333 1333
 if (!is_callable('sodium_randombytes_buf')) {
1334
-    /**
1335
-     * @see ParagonIE_Sodium_Compat::randombytes_buf()
1336
-     * @param int $amount
1337
-     * @return string
1338
-     * @throws Exception
1339
-     */
1340
-    function sodium_randombytes_buf($amount)
1341
-    {
1342
-        return ParagonIE_Sodium_Compat::randombytes_buf($amount);
1343
-    }
1334
+	/**
1335
+	 * @see ParagonIE_Sodium_Compat::randombytes_buf()
1336
+	 * @param int $amount
1337
+	 * @return string
1338
+	 * @throws Exception
1339
+	 */
1340
+	function sodium_randombytes_buf($amount)
1341
+	{
1342
+		return ParagonIE_Sodium_Compat::randombytes_buf($amount);
1343
+	}
1344 1344
 }
1345 1345
 
1346 1346
 if (!is_callable('sodium_randombytes_uniform')) {
1347
-    /**
1348
-     * @see ParagonIE_Sodium_Compat::randombytes_uniform()
1349
-     * @param int $upperLimit
1350
-     * @return int
1351
-     * @throws Exception
1352
-     */
1353
-    function sodium_randombytes_uniform($upperLimit)
1354
-    {
1355
-        return ParagonIE_Sodium_Compat::randombytes_uniform($upperLimit);
1356
-    }
1347
+	/**
1348
+	 * @see ParagonIE_Sodium_Compat::randombytes_uniform()
1349
+	 * @param int $upperLimit
1350
+	 * @return int
1351
+	 * @throws Exception
1352
+	 */
1353
+	function sodium_randombytes_uniform($upperLimit)
1354
+	{
1355
+		return ParagonIE_Sodium_Compat::randombytes_uniform($upperLimit);
1356
+	}
1357 1357
 }
1358 1358
 
1359 1359
 if (!is_callable('sodium_randombytes_random16')) {
1360
-    /**
1361
-     * @see ParagonIE_Sodium_Compat::randombytes_random16()
1362
-     * @return int
1363
-     * @throws Exception
1364
-     */
1365
-    function sodium_randombytes_random16()
1366
-    {
1367
-        return ParagonIE_Sodium_Compat::randombytes_random16();
1368
-    }
1360
+	/**
1361
+	 * @see ParagonIE_Sodium_Compat::randombytes_random16()
1362
+	 * @return int
1363
+	 * @throws Exception
1364
+	 */
1365
+	function sodium_randombytes_random16()
1366
+	{
1367
+		return ParagonIE_Sodium_Compat::randombytes_random16();
1368
+	}
1369 1369
 }
Please login to merge, or discard this patch.
Spacing   +256 added lines, -256 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once dirname(dirname(__FILE__)) . '/autoload.php';
3
+require_once dirname( dirname( __FILE__ ) ) . '/autoload.php';
4 4
 
5 5
 /**
6 6
  * This file will monkey patch the pure-PHP implementation in place of the
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * Thus, the functions or constants just proxy to the appropriate
10 10
  * ParagonIE_Sodium_Compat method or class constant, respectively.
11 11
  */
12
-foreach (array(
12
+foreach ( array(
13 13
     'BASE64_VARIANT_ORIGINAL',
14 14
     'BASE64_VARIANT_ORIGINAL_NO_PADDING',
15 15
     'BASE64_VARIANT_URLSAFE',
@@ -103,11 +103,11 @@  discard block
 block discarded – undo
103 103
     'VERSION_STRING'
104 104
     ) as $constant
105 105
 ) {
106
-    if (!defined("SODIUM_$constant") && defined("ParagonIE_Sodium_Compat::$constant")) {
107
-        define("SODIUM_$constant", constant("ParagonIE_Sodium_Compat::$constant"));
106
+    if ( ! defined( "SODIUM_$constant" ) && defined( "ParagonIE_Sodium_Compat::$constant" ) ) {
107
+        define( "SODIUM_$constant", constant( "ParagonIE_Sodium_Compat::$constant" ) );
108 108
     }
109 109
 }
110
-if (!is_callable('sodium_add')) {
110
+if ( ! is_callable( 'sodium_add' ) ) {
111 111
     /**
112 112
      * @see ParagonIE_Sodium_Compat::add()
113 113
      * @param string $val
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
      * @return void
116 116
      * @throws SodiumException
117 117
      */
118
-    function sodium_add(&$val, $addv)
118
+    function sodium_add( &$val, $addv )
119 119
     {
120
-        ParagonIE_Sodium_Compat::add($val, $addv);
120
+        ParagonIE_Sodium_Compat::add( $val, $addv );
121 121
     }
122 122
 }
123
-if (!is_callable('sodium_base642bin')) {
123
+if ( ! is_callable( 'sodium_base642bin' ) ) {
124 124
     /**
125 125
      * @see ParagonIE_Sodium_Compat::bin2base64()
126 126
      * @param string $string
@@ -130,12 +130,12 @@  discard block
 block discarded – undo
130 130
      * @throws SodiumException
131 131
      * @throws TypeError
132 132
      */
133
-    function sodium_base642bin($string, $variant, $ignore ='')
133
+    function sodium_base642bin( $string, $variant, $ignore = '' )
134 134
     {
135
-        return ParagonIE_Sodium_Compat::base642bin($string, $variant, $ignore);
135
+        return ParagonIE_Sodium_Compat::base642bin( $string, $variant, $ignore );
136 136
     }
137 137
 }
138
-if (!is_callable('sodium_bin2base64')) {
138
+if ( ! is_callable( 'sodium_bin2base64' ) ) {
139 139
     /**
140 140
      * @see ParagonIE_Sodium_Compat::bin2base64()
141 141
      * @param string $string
@@ -144,12 +144,12 @@  discard block
 block discarded – undo
144 144
      * @throws SodiumException
145 145
      * @throws TypeError
146 146
      */
147
-    function sodium_bin2base64($string, $variant)
147
+    function sodium_bin2base64( $string, $variant )
148 148
     {
149
-        return ParagonIE_Sodium_Compat::bin2base64($string, $variant);
149
+        return ParagonIE_Sodium_Compat::bin2base64( $string, $variant );
150 150
     }
151 151
 }
152
-if (!is_callable('sodium_bin2hex')) {
152
+if ( ! is_callable( 'sodium_bin2hex' ) ) {
153 153
     /**
154 154
      * @see ParagonIE_Sodium_Compat::hex2bin()
155 155
      * @param string $string
@@ -157,12 +157,12 @@  discard block
 block discarded – undo
157 157
      * @throws SodiumException
158 158
      * @throws TypeError
159 159
      */
160
-    function sodium_bin2hex($string)
160
+    function sodium_bin2hex( $string )
161 161
     {
162
-        return ParagonIE_Sodium_Compat::bin2hex($string);
162
+        return ParagonIE_Sodium_Compat::bin2hex( $string );
163 163
     }
164 164
 }
165
-if (!is_callable('sodium_compare')) {
165
+if ( ! is_callable( 'sodium_compare' ) ) {
166 166
     /**
167 167
      * @see ParagonIE_Sodium_Compat::compare()
168 168
      * @param string $a
@@ -171,12 +171,12 @@  discard block
 block discarded – undo
171 171
      * @throws SodiumException
172 172
      * @throws TypeError
173 173
      */
174
-    function sodium_compare($a, $b)
174
+    function sodium_compare( $a, $b )
175 175
     {
176
-        return ParagonIE_Sodium_Compat::compare($a, $b);
176
+        return ParagonIE_Sodium_Compat::compare( $a, $b );
177 177
     }
178 178
 }
179
-if (!is_callable('sodium_crypto_aead_aes256gcm_decrypt')) {
179
+if ( ! is_callable( 'sodium_crypto_aead_aes256gcm_decrypt' ) ) {
180 180
     /**
181 181
      * @see ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt()
182 182
      * @param string $message
@@ -185,18 +185,18 @@  discard block
 block discarded – undo
185 185
      * @param string $key
186 186
      * @return string|bool
187 187
      */
188
-    function sodium_crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key)
188
+    function sodium_crypto_aead_aes256gcm_decrypt( $message, $assocData, $nonce, $key )
189 189
     {
190 190
         try {
191
-            return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key);
192
-        } catch (Error $ex) {
191
+            return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt( $message, $assocData, $nonce, $key );
192
+        } catch ( Error $ex ) {
193 193
             return false;
194
-        } catch (Exception $ex) {
194
+        } catch ( Exception $ex ) {
195 195
             return false;
196 196
         }
197 197
     }
198 198
 }
199
-if (!is_callable('sodium_crypto_aead_aes256gcm_encrypt')) {
199
+if ( ! is_callable( 'sodium_crypto_aead_aes256gcm_encrypt' ) ) {
200 200
     /**
201 201
      * @see ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_encrypt()
202 202
      * @param string $message
@@ -207,12 +207,12 @@  discard block
 block discarded – undo
207 207
      * @throws SodiumException
208 208
      * @throws TypeError
209 209
      */
210
-    function sodium_crypto_aead_aes256gcm_encrypt($message, $assocData, $nonce, $key)
210
+    function sodium_crypto_aead_aes256gcm_encrypt( $message, $assocData, $nonce, $key )
211 211
     {
212
-        return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_encrypt($message, $assocData, $nonce, $key);
212
+        return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_encrypt( $message, $assocData, $nonce, $key );
213 213
     }
214 214
 }
215
-if (!is_callable('sodium_crypto_aead_aes256gcm_is_available')) {
215
+if ( ! is_callable( 'sodium_crypto_aead_aes256gcm_is_available' ) ) {
216 216
     /**
217 217
      * @see ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_is_available()
218 218
      * @return bool
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_is_available();
223 223
     }
224 224
 }
225
-if (!is_callable('sodium_crypto_aead_chacha20poly1305_decrypt')) {
225
+if ( ! is_callable( 'sodium_crypto_aead_chacha20poly1305_decrypt' ) ) {
226 226
     /**
227 227
      * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_decrypt()
228 228
      * @param string $message
@@ -231,18 +231,18 @@  discard block
 block discarded – undo
231 231
      * @param string $key
232 232
      * @return string|bool
233 233
      */
234
-    function sodium_crypto_aead_chacha20poly1305_decrypt($message, $assocData, $nonce, $key)
234
+    function sodium_crypto_aead_chacha20poly1305_decrypt( $message, $assocData, $nonce, $key )
235 235
     {
236 236
         try {
237
-            return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_decrypt($message, $assocData, $nonce, $key);
238
-        } catch (Error $ex) {
237
+            return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_decrypt( $message, $assocData, $nonce, $key );
238
+        } catch ( Error $ex ) {
239 239
             return false;
240
-        } catch (Exception $ex) {
240
+        } catch ( Exception $ex ) {
241 241
             return false;
242 242
         }
243 243
     }
244 244
 }
245
-if (!is_callable('sodium_crypto_aead_chacha20poly1305_encrypt')) {
245
+if ( ! is_callable( 'sodium_crypto_aead_chacha20poly1305_encrypt' ) ) {
246 246
     /**
247 247
      * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_encrypt()
248 248
      * @param string $message
@@ -253,12 +253,12 @@  discard block
 block discarded – undo
253 253
      * @throws SodiumException
254 254
      * @throws TypeError
255 255
      */
256
-    function sodium_crypto_aead_chacha20poly1305_encrypt($message, $assocData, $nonce, $key)
256
+    function sodium_crypto_aead_chacha20poly1305_encrypt( $message, $assocData, $nonce, $key )
257 257
     {
258
-        return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_encrypt($message, $assocData, $nonce, $key);
258
+        return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_encrypt( $message, $assocData, $nonce, $key );
259 259
     }
260 260
 }
261
-if (!is_callable('sodium_crypto_aead_chacha20poly1305_keygen')) {
261
+if ( ! is_callable( 'sodium_crypto_aead_chacha20poly1305_keygen' ) ) {
262 262
     /**
263 263
      * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_keygen()
264 264
      * @return string
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
         return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_keygen();
270 270
     }
271 271
 }
272
-if (!is_callable('sodium_crypto_aead_chacha20poly1305_ietf_decrypt')) {
272
+if ( ! is_callable( 'sodium_crypto_aead_chacha20poly1305_ietf_decrypt' ) ) {
273 273
     /**
274 274
      * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_decrypt()
275 275
      * @param string $message
@@ -278,18 +278,18 @@  discard block
 block discarded – undo
278 278
      * @param string $key
279 279
      * @return string|bool
280 280
      */
281
-    function sodium_crypto_aead_chacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key)
281
+    function sodium_crypto_aead_chacha20poly1305_ietf_decrypt( $message, $assocData, $nonce, $key )
282 282
     {
283 283
         try {
284
-            return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key);
285
-        } catch (Error $ex) {
284
+            return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_decrypt( $message, $assocData, $nonce, $key );
285
+        } catch ( Error $ex ) {
286 286
             return false;
287
-        } catch (Exception $ex) {
287
+        } catch ( Exception $ex ) {
288 288
             return false;
289 289
         }
290 290
     }
291 291
 }
292
-if (!is_callable('sodium_crypto_aead_chacha20poly1305_ietf_encrypt')) {
292
+if ( ! is_callable( 'sodium_crypto_aead_chacha20poly1305_ietf_encrypt' ) ) {
293 293
     /**
294 294
      * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_encrypt()
295 295
      * @param string $message
@@ -300,12 +300,12 @@  discard block
 block discarded – undo
300 300
      * @throws SodiumException
301 301
      * @throws TypeError
302 302
      */
303
-    function sodium_crypto_aead_chacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key)
303
+    function sodium_crypto_aead_chacha20poly1305_ietf_encrypt( $message, $assocData, $nonce, $key )
304 304
     {
305
-        return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key);
305
+        return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_encrypt( $message, $assocData, $nonce, $key );
306 306
     }
307 307
 }
308
-if (!is_callable('sodium_crypto_aead_chacha20poly1305_ietf_keygen')) {
308
+if ( ! is_callable( 'sodium_crypto_aead_chacha20poly1305_ietf_keygen' ) ) {
309 309
     /**
310 310
      * @see ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_keygen()
311 311
      * @return string
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
         return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_keygen();
317 317
     }
318 318
 }
319
-if (!is_callable('sodium_crypto_aead_xchacha20poly1305_ietf_decrypt')) {
319
+if ( ! is_callable( 'sodium_crypto_aead_xchacha20poly1305_ietf_decrypt' ) ) {
320 320
     /**
321 321
      * @see ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_decrypt()
322 322
      * @param string $message
@@ -325,18 +325,18 @@  discard block
 block discarded – undo
325 325
      * @param string $key
326 326
      * @return string|bool
327 327
      */
328
-    function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key)
328
+    function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt( $message, $assocData, $nonce, $key )
329 329
     {
330 330
         try {
331
-            return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key, true);
332
-        } catch (Error $ex) {
331
+            return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_decrypt( $message, $assocData, $nonce, $key, true );
332
+        } catch ( Error $ex ) {
333 333
             return false;
334
-        } catch (Exception $ex) {
334
+        } catch ( Exception $ex ) {
335 335
             return false;
336 336
         }
337 337
     }
338 338
 }
339
-if (!is_callable('sodium_crypto_aead_xchacha20poly1305_ietf_encrypt')) {
339
+if ( ! is_callable( 'sodium_crypto_aead_xchacha20poly1305_ietf_encrypt' ) ) {
340 340
     /**
341 341
      * @see ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_encrypt()
342 342
      * @param string $message
@@ -347,12 +347,12 @@  discard block
 block discarded – undo
347 347
      * @throws SodiumException
348 348
      * @throws TypeError
349 349
      */
350
-    function sodium_crypto_aead_xchacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key)
350
+    function sodium_crypto_aead_xchacha20poly1305_ietf_encrypt( $message, $assocData, $nonce, $key )
351 351
     {
352
-        return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key, true);
352
+        return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_encrypt( $message, $assocData, $nonce, $key, true );
353 353
     }
354 354
 }
355
-if (!is_callable('sodium_crypto_aead_xchacha20poly1305_ietf_keygen')) {
355
+if ( ! is_callable( 'sodium_crypto_aead_xchacha20poly1305_ietf_keygen' ) ) {
356 356
     /**
357 357
      * @see ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_keygen()
358 358
      * @return string
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
         return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_keygen();
364 364
     }
365 365
 }
366
-if (!is_callable('sodium_crypto_auth')) {
366
+if ( ! is_callable( 'sodium_crypto_auth' ) ) {
367 367
     /**
368 368
      * @see ParagonIE_Sodium_Compat::crypto_auth()
369 369
      * @param string $message
@@ -372,12 +372,12 @@  discard block
 block discarded – undo
372 372
      * @throws SodiumException
373 373
      * @throws TypeError
374 374
      */
375
-    function sodium_crypto_auth($message, $key)
375
+    function sodium_crypto_auth( $message, $key )
376 376
     {
377
-        return ParagonIE_Sodium_Compat::crypto_auth($message, $key);
377
+        return ParagonIE_Sodium_Compat::crypto_auth( $message, $key );
378 378
     }
379 379
 }
380
-if (!is_callable('sodium_crypto_auth_keygen')) {
380
+if ( ! is_callable( 'sodium_crypto_auth_keygen' ) ) {
381 381
     /**
382 382
      * @see ParagonIE_Sodium_Compat::crypto_auth_keygen()
383 383
      * @return string
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
         return ParagonIE_Sodium_Compat::crypto_auth_keygen();
389 389
     }
390 390
 }
391
-if (!is_callable('sodium_crypto_auth_verify')) {
391
+if ( ! is_callable( 'sodium_crypto_auth_verify' ) ) {
392 392
     /**
393 393
      * @see ParagonIE_Sodium_Compat::crypto_auth_verify()
394 394
      * @param string $mac
@@ -398,12 +398,12 @@  discard block
 block discarded – undo
398 398
      * @throws SodiumException
399 399
      * @throws TypeError
400 400
      */
401
-    function sodium_crypto_auth_verify($mac, $message, $key)
401
+    function sodium_crypto_auth_verify( $mac, $message, $key )
402 402
     {
403
-        return ParagonIE_Sodium_Compat::crypto_auth_verify($mac, $message, $key);
403
+        return ParagonIE_Sodium_Compat::crypto_auth_verify( $mac, $message, $key );
404 404
     }
405 405
 }
406
-if (!is_callable('sodium_crypto_box')) {
406
+if ( ! is_callable( 'sodium_crypto_box' ) ) {
407 407
     /**
408 408
      * @see ParagonIE_Sodium_Compat::crypto_box()
409 409
      * @param string $message
@@ -413,12 +413,12 @@  discard block
 block discarded – undo
413 413
      * @throws SodiumException
414 414
      * @throws TypeError
415 415
      */
416
-    function sodium_crypto_box($message, $nonce, $kp)
416
+    function sodium_crypto_box( $message, $nonce, $kp )
417 417
     {
418
-        return ParagonIE_Sodium_Compat::crypto_box($message, $nonce, $kp);
418
+        return ParagonIE_Sodium_Compat::crypto_box( $message, $nonce, $kp );
419 419
     }
420 420
 }
421
-if (!is_callable('sodium_crypto_box_keypair')) {
421
+if ( ! is_callable( 'sodium_crypto_box_keypair' ) ) {
422 422
     /**
423 423
      * @see ParagonIE_Sodium_Compat::crypto_box_keypair()
424 424
      * @return string
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
         return ParagonIE_Sodium_Compat::crypto_box_keypair();
431 431
     }
432 432
 }
433
-if (!is_callable('sodium_crypto_box_keypair_from_secretkey_and_publickey')) {
433
+if ( ! is_callable( 'sodium_crypto_box_keypair_from_secretkey_and_publickey' ) ) {
434 434
     /**
435 435
      * @see ParagonIE_Sodium_Compat::crypto_box_keypair_from_secretkey_and_publickey()
436 436
      * @param string $sk
@@ -439,12 +439,12 @@  discard block
 block discarded – undo
439 439
      * @throws SodiumException
440 440
      * @throws TypeError
441 441
      */
442
-    function sodium_crypto_box_keypair_from_secretkey_and_publickey($sk, $pk)
442
+    function sodium_crypto_box_keypair_from_secretkey_and_publickey( $sk, $pk )
443 443
     {
444
-        return ParagonIE_Sodium_Compat::crypto_box_keypair_from_secretkey_and_publickey($sk, $pk);
444
+        return ParagonIE_Sodium_Compat::crypto_box_keypair_from_secretkey_and_publickey( $sk, $pk );
445 445
     }
446 446
 }
447
-if (!is_callable('sodium_crypto_box_open')) {
447
+if ( ! is_callable( 'sodium_crypto_box_open' ) ) {
448 448
     /**
449 449
      * @see ParagonIE_Sodium_Compat::crypto_box_open()
450 450
      * @param string $message
@@ -452,18 +452,18 @@  discard block
 block discarded – undo
452 452
      * @param string $kp
453 453
      * @return string|bool
454 454
      */
455
-    function sodium_crypto_box_open($message, $nonce, $kp)
455
+    function sodium_crypto_box_open( $message, $nonce, $kp )
456 456
     {
457 457
         try {
458
-            return ParagonIE_Sodium_Compat::crypto_box_open($message, $nonce, $kp);
459
-        } catch (Error $ex) {
458
+            return ParagonIE_Sodium_Compat::crypto_box_open( $message, $nonce, $kp );
459
+        } catch ( Error $ex ) {
460 460
             return false;
461
-        } catch (Exception $ex) {
461
+        } catch ( Exception $ex ) {
462 462
             return false;
463 463
         }
464 464
     }
465 465
 }
466
-if (!is_callable('sodium_crypto_box_publickey')) {
466
+if ( ! is_callable( 'sodium_crypto_box_publickey' ) ) {
467 467
     /**
468 468
      * @see ParagonIE_Sodium_Compat::crypto_box_publickey()
469 469
      * @param string $keypair
@@ -471,12 +471,12 @@  discard block
 block discarded – undo
471 471
      * @throws SodiumException
472 472
      * @throws TypeError
473 473
      */
474
-    function sodium_crypto_box_publickey($keypair)
474
+    function sodium_crypto_box_publickey( $keypair )
475 475
     {
476
-        return ParagonIE_Sodium_Compat::crypto_box_publickey($keypair);
476
+        return ParagonIE_Sodium_Compat::crypto_box_publickey( $keypair );
477 477
     }
478 478
 }
479
-if (!is_callable('sodium_crypto_box_publickey_from_secretkey')) {
479
+if ( ! is_callable( 'sodium_crypto_box_publickey_from_secretkey' ) ) {
480 480
     /**
481 481
      * @see ParagonIE_Sodium_Compat::crypto_box_publickey_from_secretkey()
482 482
      * @param string $sk
@@ -484,12 +484,12 @@  discard block
 block discarded – undo
484 484
      * @throws SodiumException
485 485
      * @throws TypeError
486 486
      */
487
-    function sodium_crypto_box_publickey_from_secretkey($sk)
487
+    function sodium_crypto_box_publickey_from_secretkey( $sk )
488 488
     {
489
-        return ParagonIE_Sodium_Compat::crypto_box_publickey_from_secretkey($sk);
489
+        return ParagonIE_Sodium_Compat::crypto_box_publickey_from_secretkey( $sk );
490 490
     }
491 491
 }
492
-if (!is_callable('sodium_crypto_box_seal')) {
492
+if ( ! is_callable( 'sodium_crypto_box_seal' ) ) {
493 493
     /**
494 494
      * @see ParagonIE_Sodium_Compat::crypto_box_seal()
495 495
      * @param string $message
@@ -498,12 +498,12 @@  discard block
 block discarded – undo
498 498
      * @throws SodiumException
499 499
      * @throws TypeError
500 500
      */
501
-    function sodium_crypto_box_seal($message, $publicKey)
501
+    function sodium_crypto_box_seal( $message, $publicKey )
502 502
     {
503
-        return ParagonIE_Sodium_Compat::crypto_box_seal($message, $publicKey);
503
+        return ParagonIE_Sodium_Compat::crypto_box_seal( $message, $publicKey );
504 504
     }
505 505
 }
506
-if (!is_callable('sodium_crypto_box_seal_open')) {
506
+if ( ! is_callable( 'sodium_crypto_box_seal_open' ) ) {
507 507
     /**
508 508
      * @see ParagonIE_Sodium_Compat::crypto_box_seal_open()
509 509
      * @param string $message
@@ -511,19 +511,19 @@  discard block
 block discarded – undo
511 511
      * @return string|bool
512 512
      * @throws SodiumException
513 513
      */
514
-    function sodium_crypto_box_seal_open($message, $kp)
514
+    function sodium_crypto_box_seal_open( $message, $kp )
515 515
     {
516 516
         try {
517
-            return ParagonIE_Sodium_Compat::crypto_box_seal_open($message, $kp);
518
-        } catch (SodiumException $ex) {
519
-            if ($ex->getMessage() === 'Argument 2 must be CRYPTO_BOX_KEYPAIRBYTES long.') {
517
+            return ParagonIE_Sodium_Compat::crypto_box_seal_open( $message, $kp );
518
+        } catch ( SodiumException $ex ) {
519
+            if ( $ex->getMessage() === 'Argument 2 must be CRYPTO_BOX_KEYPAIRBYTES long.' ) {
520 520
                 throw $ex;
521 521
             }
522 522
             return false;
523 523
         }
524 524
     }
525 525
 }
526
-if (!is_callable('sodium_crypto_box_secretkey')) {
526
+if ( ! is_callable( 'sodium_crypto_box_secretkey' ) ) {
527 527
     /**
528 528
      * @see ParagonIE_Sodium_Compat::crypto_box_secretkey()
529 529
      * @param string $keypair
@@ -531,12 +531,12 @@  discard block
 block discarded – undo
531 531
      * @throws SodiumException
532 532
      * @throws TypeError
533 533
      */
534
-    function sodium_crypto_box_secretkey($keypair)
534
+    function sodium_crypto_box_secretkey( $keypair )
535 535
     {
536
-        return ParagonIE_Sodium_Compat::crypto_box_secretkey($keypair);
536
+        return ParagonIE_Sodium_Compat::crypto_box_secretkey( $keypair );
537 537
     }
538 538
 }
539
-if (!is_callable('sodium_crypto_box_seed_keypair')) {
539
+if ( ! is_callable( 'sodium_crypto_box_seed_keypair' ) ) {
540 540
     /**
541 541
      * @see ParagonIE_Sodium_Compat::crypto_box_seed_keypair()
542 542
      * @param string $seed
@@ -544,12 +544,12 @@  discard block
 block discarded – undo
544 544
      * @throws SodiumException
545 545
      * @throws TypeError
546 546
      */
547
-    function sodium_crypto_box_seed_keypair($seed)
547
+    function sodium_crypto_box_seed_keypair( $seed )
548 548
     {
549
-        return ParagonIE_Sodium_Compat::crypto_box_seed_keypair($seed);
549
+        return ParagonIE_Sodium_Compat::crypto_box_seed_keypair( $seed );
550 550
     }
551 551
 }
552
-if (!is_callable('sodium_crypto_generichash')) {
552
+if ( ! is_callable( 'sodium_crypto_generichash' ) ) {
553 553
     /**
554 554
      * @see ParagonIE_Sodium_Compat::crypto_generichash()
555 555
      * @param string $message
@@ -559,12 +559,12 @@  discard block
 block discarded – undo
559 559
      * @throws SodiumException
560 560
      * @throws TypeError
561 561
      */
562
-    function sodium_crypto_generichash($message, $key = null, $outLen = 32)
562
+    function sodium_crypto_generichash( $message, $key = null, $outLen = 32 )
563 563
     {
564
-        return ParagonIE_Sodium_Compat::crypto_generichash($message, $key, $outLen);
564
+        return ParagonIE_Sodium_Compat::crypto_generichash( $message, $key, $outLen );
565 565
     }
566 566
 }
567
-if (!is_callable('sodium_crypto_generichash_final')) {
567
+if ( ! is_callable( 'sodium_crypto_generichash_final' ) ) {
568 568
     /**
569 569
      * @see ParagonIE_Sodium_Compat::crypto_generichash_final()
570 570
      * @param string|null $ctx
@@ -573,12 +573,12 @@  discard block
 block discarded – undo
573 573
      * @throws SodiumException
574 574
      * @throws TypeError
575 575
      */
576
-    function sodium_crypto_generichash_final(&$ctx, $outputLength = 32)
576
+    function sodium_crypto_generichash_final( &$ctx, $outputLength = 32 )
577 577
     {
578
-        return ParagonIE_Sodium_Compat::crypto_generichash_final($ctx, $outputLength);
578
+        return ParagonIE_Sodium_Compat::crypto_generichash_final( $ctx, $outputLength );
579 579
     }
580 580
 }
581
-if (!is_callable('sodium_crypto_generichash_init')) {
581
+if ( ! is_callable( 'sodium_crypto_generichash_init' ) ) {
582 582
     /**
583 583
      * @see ParagonIE_Sodium_Compat::crypto_generichash_init()
584 584
      * @param string|null $key
@@ -587,12 +587,12 @@  discard block
 block discarded – undo
587 587
      * @throws SodiumException
588 588
      * @throws TypeError
589 589
      */
590
-    function sodium_crypto_generichash_init($key = null, $outLen = 32)
590
+    function sodium_crypto_generichash_init( $key = null, $outLen = 32 )
591 591
     {
592
-        return ParagonIE_Sodium_Compat::crypto_generichash_init($key, $outLen);
592
+        return ParagonIE_Sodium_Compat::crypto_generichash_init( $key, $outLen );
593 593
     }
594 594
 }
595
-if (!is_callable('sodium_crypto_generichash_keygen')) {
595
+if ( ! is_callable( 'sodium_crypto_generichash_keygen' ) ) {
596 596
     /**
597 597
      * @see ParagonIE_Sodium_Compat::crypto_generichash_keygen()
598 598
      * @return string
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
         return ParagonIE_Sodium_Compat::crypto_generichash_keygen();
604 604
     }
605 605
 }
606
-if (!is_callable('sodium_crypto_generichash_update')) {
606
+if ( ! is_callable( 'sodium_crypto_generichash_update' ) ) {
607 607
     /**
608 608
      * @see ParagonIE_Sodium_Compat::crypto_generichash_update()
609 609
      * @param string|null $ctx
@@ -612,12 +612,12 @@  discard block
 block discarded – undo
612 612
      * @throws SodiumException
613 613
      * @throws TypeError
614 614
      */
615
-    function sodium_crypto_generichash_update(&$ctx, $message = '')
615
+    function sodium_crypto_generichash_update( &$ctx, $message = '' )
616 616
     {
617
-        ParagonIE_Sodium_Compat::crypto_generichash_update($ctx, $message);
617
+        ParagonIE_Sodium_Compat::crypto_generichash_update( $ctx, $message );
618 618
     }
619 619
 }
620
-if (!is_callable('sodium_crypto_kdf_keygen')) {
620
+if ( ! is_callable( 'sodium_crypto_kdf_keygen' ) ) {
621 621
     /**
622 622
      * @see ParagonIE_Sodium_Compat::crypto_kdf_keygen()
623 623
      * @return string
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
         return ParagonIE_Sodium_Compat::crypto_kdf_keygen();
629 629
     }
630 630
 }
631
-if (!is_callable('sodium_crypto_kdf_derive_from_key')) {
631
+if ( ! is_callable( 'sodium_crypto_kdf_derive_from_key' ) ) {
632 632
     /**
633 633
      * @see ParagonIE_Sodium_Compat::crypto_kdf_derive_from_key()
634 634
      * @param int $subkey_len
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
      * @return string
639 639
      * @throws Exception
640 640
      */
641
-    function sodium_crypto_kdf_derive_from_key($subkey_len, $subkey_id, $context, $key)
641
+    function sodium_crypto_kdf_derive_from_key( $subkey_len, $subkey_id, $context, $key )
642 642
     {
643 643
         return ParagonIE_Sodium_Compat::crypto_kdf_derive_from_key(
644 644
             $subkey_len,
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
         );
649 649
     }
650 650
 }
651
-if (!is_callable('sodium_crypto_kx')) {
651
+if ( ! is_callable( 'sodium_crypto_kx' ) ) {
652 652
     /**
653 653
      * @see ParagonIE_Sodium_Compat::crypto_kx()
654 654
      * @param string $my_secret
@@ -659,7 +659,7 @@  discard block
 block discarded – undo
659 659
      * @throws SodiumException
660 660
      * @throws TypeError
661 661
      */
662
-    function sodium_crypto_kx($my_secret, $their_public, $client_public, $server_public)
662
+    function sodium_crypto_kx( $my_secret, $their_public, $client_public, $server_public )
663 663
     {
664 664
         return ParagonIE_Sodium_Compat::crypto_kx(
665 665
             $my_secret,
@@ -669,18 +669,18 @@  discard block
 block discarded – undo
669 669
         );
670 670
     }
671 671
 }
672
-if (!is_callable('sodium_crypto_kx_seed_keypair')) {
672
+if ( ! is_callable( 'sodium_crypto_kx_seed_keypair' ) ) {
673 673
     /**
674 674
      * @param string $seed
675 675
      * @return string
676 676
      * @throws Exception
677 677
      */
678
-    function sodium_crypto_kx_seed_keypair($seed)
678
+    function sodium_crypto_kx_seed_keypair( $seed )
679 679
     {
680
-        return ParagonIE_Sodium_Compat::crypto_kx_seed_keypair($seed);
680
+        return ParagonIE_Sodium_Compat::crypto_kx_seed_keypair( $seed );
681 681
     }
682 682
 }
683
-if (!is_callable('sodium_crypto_kx_keypair')) {
683
+if ( ! is_callable( 'sodium_crypto_kx_keypair' ) ) {
684 684
     /**
685 685
      * @return string
686 686
      * @throws Exception
@@ -690,53 +690,53 @@  discard block
 block discarded – undo
690 690
         return ParagonIE_Sodium_Compat::crypto_kx_keypair();
691 691
     }
692 692
 }
693
-if (!is_callable('sodium_crypto_kx_client_session_keys')) {
693
+if ( ! is_callable( 'sodium_crypto_kx_client_session_keys' ) ) {
694 694
     /**
695 695
      * @param string $keypair
696 696
      * @param string $serverPublicKey
697 697
      * @return array{0: string, 1: string}
698 698
      * @throws SodiumException
699 699
      */
700
-    function sodium_crypto_kx_client_session_keys($keypair, $serverPublicKey)
700
+    function sodium_crypto_kx_client_session_keys( $keypair, $serverPublicKey )
701 701
     {
702
-        return ParagonIE_Sodium_Compat::crypto_kx_client_session_keys($keypair, $serverPublicKey);
702
+        return ParagonIE_Sodium_Compat::crypto_kx_client_session_keys( $keypair, $serverPublicKey );
703 703
     }
704 704
 }
705
-if (!is_callable('sodium_crypto_kx_server_session_keys')) {
705
+if ( ! is_callable( 'sodium_crypto_kx_server_session_keys' ) ) {
706 706
     /**
707 707
      * @param string $keypair
708 708
      * @param string $clientPublicKey
709 709
      * @return array{0: string, 1: string}
710 710
      * @throws SodiumException
711 711
      */
712
-    function sodium_crypto_kx_server_session_keys($keypair, $clientPublicKey)
712
+    function sodium_crypto_kx_server_session_keys( $keypair, $clientPublicKey )
713 713
     {
714
-        return ParagonIE_Sodium_Compat::crypto_kx_server_session_keys($keypair, $clientPublicKey);
714
+        return ParagonIE_Sodium_Compat::crypto_kx_server_session_keys( $keypair, $clientPublicKey );
715 715
     }
716 716
 }
717
-if (!is_callable('sodium_crypto_kx_secretkey')) {
717
+if ( ! is_callable( 'sodium_crypto_kx_secretkey' ) ) {
718 718
     /**
719 719
      * @param string $keypair
720 720
      * @return string
721 721
      * @throws Exception
722 722
      */
723
-    function sodium_crypto_kx_secretkey($keypair)
723
+    function sodium_crypto_kx_secretkey( $keypair )
724 724
     {
725
-        return ParagonIE_Sodium_Compat::crypto_kx_secretkey($keypair);
725
+        return ParagonIE_Sodium_Compat::crypto_kx_secretkey( $keypair );
726 726
     }
727 727
 }
728
-if (!is_callable('sodium_crypto_kx_publickey')) {
728
+if ( ! is_callable( 'sodium_crypto_kx_publickey' ) ) {
729 729
     /**
730 730
      * @param string $keypair
731 731
      * @return string
732 732
      * @throws Exception
733 733
      */
734
-    function sodium_crypto_kx_publickey($keypair)
734
+    function sodium_crypto_kx_publickey( $keypair )
735 735
     {
736
-        return ParagonIE_Sodium_Compat::crypto_kx_publickey($keypair);
736
+        return ParagonIE_Sodium_Compat::crypto_kx_publickey( $keypair );
737 737
     }
738 738
 }
739
-if (!is_callable('sodium_crypto_pwhash')) {
739
+if ( ! is_callable( 'sodium_crypto_pwhash' ) ) {
740 740
     /**
741 741
      * @see ParagonIE_Sodium_Compat::crypto_pwhash()
742 742
      * @param int $outlen
@@ -749,12 +749,12 @@  discard block
 block discarded – undo
749 749
      * @throws SodiumException
750 750
      * @throws TypeError
751 751
      */
752
-    function sodium_crypto_pwhash($outlen, $passwd, $salt, $opslimit, $memlimit, $algo = null)
752
+    function sodium_crypto_pwhash( $outlen, $passwd, $salt, $opslimit, $memlimit, $algo = null )
753 753
     {
754
-        return ParagonIE_Sodium_Compat::crypto_pwhash($outlen, $passwd, $salt, $opslimit, $memlimit, $algo);
754
+        return ParagonIE_Sodium_Compat::crypto_pwhash( $outlen, $passwd, $salt, $opslimit, $memlimit, $algo );
755 755
     }
756 756
 }
757
-if (!is_callable('sodium_crypto_pwhash_str')) {
757
+if ( ! is_callable( 'sodium_crypto_pwhash_str' ) ) {
758 758
     /**
759 759
      * @see ParagonIE_Sodium_Compat::crypto_pwhash_str()
760 760
      * @param string $passwd
@@ -764,12 +764,12 @@  discard block
 block discarded – undo
764 764
      * @throws SodiumException
765 765
      * @throws TypeError
766 766
      */
767
-    function sodium_crypto_pwhash_str($passwd, $opslimit, $memlimit)
767
+    function sodium_crypto_pwhash_str( $passwd, $opslimit, $memlimit )
768 768
     {
769
-        return ParagonIE_Sodium_Compat::crypto_pwhash_str($passwd, $opslimit, $memlimit);
769
+        return ParagonIE_Sodium_Compat::crypto_pwhash_str( $passwd, $opslimit, $memlimit );
770 770
     }
771 771
 }
772
-if (!is_callable('sodium_crypto_pwhash_str_needs_rehash')) {
772
+if ( ! is_callable( 'sodium_crypto_pwhash_str_needs_rehash' ) ) {
773 773
     /**
774 774
      * @see ParagonIE_Sodium_Compat::crypto_pwhash_str_needs_rehash()
775 775
      * @param string $hash
@@ -779,12 +779,12 @@  discard block
 block discarded – undo
779 779
      *
780 780
      * @throws SodiumException
781 781
      */
782
-    function sodium_crypto_pwhash_str_needs_rehash($hash, $opslimit, $memlimit)
782
+    function sodium_crypto_pwhash_str_needs_rehash( $hash, $opslimit, $memlimit )
783 783
     {
784
-        return ParagonIE_Sodium_Compat::crypto_pwhash_str_needs_rehash($hash, $opslimit, $memlimit);
784
+        return ParagonIE_Sodium_Compat::crypto_pwhash_str_needs_rehash( $hash, $opslimit, $memlimit );
785 785
     }
786 786
 }
787
-if (!is_callable('sodium_crypto_pwhash_str_verify')) {
787
+if ( ! is_callable( 'sodium_crypto_pwhash_str_verify' ) ) {
788 788
     /**
789 789
      * @see ParagonIE_Sodium_Compat::crypto_pwhash_str_verify()
790 790
      * @param string $passwd
@@ -793,12 +793,12 @@  discard block
 block discarded – undo
793 793
      * @throws SodiumException
794 794
      * @throws TypeError
795 795
      */
796
-    function sodium_crypto_pwhash_str_verify($passwd, $hash)
796
+    function sodium_crypto_pwhash_str_verify( $passwd, $hash )
797 797
     {
798
-        return ParagonIE_Sodium_Compat::crypto_pwhash_str_verify($passwd, $hash);
798
+        return ParagonIE_Sodium_Compat::crypto_pwhash_str_verify( $passwd, $hash );
799 799
     }
800 800
 }
801
-if (!is_callable('sodium_crypto_pwhash_scryptsalsa208sha256')) {
801
+if ( ! is_callable( 'sodium_crypto_pwhash_scryptsalsa208sha256' ) ) {
802 802
     /**
803 803
      * @see ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256()
804 804
      * @param int $outlen
@@ -810,12 +810,12 @@  discard block
 block discarded – undo
810 810
      * @throws SodiumException
811 811
      * @throws TypeError
812 812
      */
813
-    function sodium_crypto_pwhash_scryptsalsa208sha256($outlen, $passwd, $salt, $opslimit, $memlimit)
813
+    function sodium_crypto_pwhash_scryptsalsa208sha256( $outlen, $passwd, $salt, $opslimit, $memlimit )
814 814
     {
815
-        return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256($outlen, $passwd, $salt, $opslimit, $memlimit);
815
+        return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256( $outlen, $passwd, $salt, $opslimit, $memlimit );
816 816
     }
817 817
 }
818
-if (!is_callable('sodium_crypto_pwhash_scryptsalsa208sha256_str')) {
818
+if ( ! is_callable( 'sodium_crypto_pwhash_scryptsalsa208sha256_str' ) ) {
819 819
     /**
820 820
      * @see ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str()
821 821
      * @param string $passwd
@@ -825,12 +825,12 @@  discard block
 block discarded – undo
825 825
      * @throws SodiumException
826 826
      * @throws TypeError
827 827
      */
828
-    function sodium_crypto_pwhash_scryptsalsa208sha256_str($passwd, $opslimit, $memlimit)
828
+    function sodium_crypto_pwhash_scryptsalsa208sha256_str( $passwd, $opslimit, $memlimit )
829 829
     {
830
-        return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str($passwd, $opslimit, $memlimit);
830
+        return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str( $passwd, $opslimit, $memlimit );
831 831
     }
832 832
 }
833
-if (!is_callable('sodium_crypto_pwhash_scryptsalsa208sha256_str_verify')) {
833
+if ( ! is_callable( 'sodium_crypto_pwhash_scryptsalsa208sha256_str_verify' ) ) {
834 834
     /**
835 835
      * @see ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str_verify()
836 836
      * @param string $passwd
@@ -839,12 +839,12 @@  discard block
 block discarded – undo
839 839
      * @throws SodiumException
840 840
      * @throws TypeError
841 841
      */
842
-    function sodium_crypto_pwhash_scryptsalsa208sha256_str_verify($passwd, $hash)
842
+    function sodium_crypto_pwhash_scryptsalsa208sha256_str_verify( $passwd, $hash )
843 843
     {
844
-        return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str_verify($passwd, $hash);
844
+        return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str_verify( $passwd, $hash );
845 845
     }
846 846
 }
847
-if (!is_callable('sodium_crypto_scalarmult')) {
847
+if ( ! is_callable( 'sodium_crypto_scalarmult' ) ) {
848 848
     /**
849 849
      * @see ParagonIE_Sodium_Compat::crypto_scalarmult()
850 850
      * @param string $n
@@ -853,12 +853,12 @@  discard block
 block discarded – undo
853 853
      * @throws SodiumException
854 854
      * @throws TypeError
855 855
      */
856
-    function sodium_crypto_scalarmult($n, $p)
856
+    function sodium_crypto_scalarmult( $n, $p )
857 857
     {
858
-        return ParagonIE_Sodium_Compat::crypto_scalarmult($n, $p);
858
+        return ParagonIE_Sodium_Compat::crypto_scalarmult( $n, $p );
859 859
     }
860 860
 }
861
-if (!is_callable('sodium_crypto_scalarmult_base')) {
861
+if ( ! is_callable( 'sodium_crypto_scalarmult_base' ) ) {
862 862
     /**
863 863
      * @see ParagonIE_Sodium_Compat::crypto_scalarmult_base()
864 864
      * @param string $n
@@ -866,12 +866,12 @@  discard block
 block discarded – undo
866 866
      * @throws SodiumException
867 867
      * @throws TypeError
868 868
      */
869
-    function sodium_crypto_scalarmult_base($n)
869
+    function sodium_crypto_scalarmult_base( $n )
870 870
     {
871
-        return ParagonIE_Sodium_Compat::crypto_scalarmult_base($n);
871
+        return ParagonIE_Sodium_Compat::crypto_scalarmult_base( $n );
872 872
     }
873 873
 }
874
-if (!is_callable('sodium_crypto_secretbox')) {
874
+if ( ! is_callable( 'sodium_crypto_secretbox' ) ) {
875 875
     /**
876 876
      * @see ParagonIE_Sodium_Compat::crypto_secretbox()
877 877
      * @param string $message
@@ -881,12 +881,12 @@  discard block
 block discarded – undo
881 881
      * @throws SodiumException
882 882
      * @throws TypeError
883 883
      */
884
-    function sodium_crypto_secretbox($message, $nonce, $key)
884
+    function sodium_crypto_secretbox( $message, $nonce, $key )
885 885
     {
886
-        return ParagonIE_Sodium_Compat::crypto_secretbox($message, $nonce, $key);
886
+        return ParagonIE_Sodium_Compat::crypto_secretbox( $message, $nonce, $key );
887 887
     }
888 888
 }
889
-if (!is_callable('sodium_crypto_secretbox_keygen')) {
889
+if ( ! is_callable( 'sodium_crypto_secretbox_keygen' ) ) {
890 890
     /**
891 891
      * @see ParagonIE_Sodium_Compat::crypto_secretbox_keygen()
892 892
      * @return string
@@ -897,7 +897,7 @@  discard block
 block discarded – undo
897 897
         return ParagonIE_Sodium_Compat::crypto_secretbox_keygen();
898 898
     }
899 899
 }
900
-if (!is_callable('sodium_crypto_secretbox_open')) {
900
+if ( ! is_callable( 'sodium_crypto_secretbox_open' ) ) {
901 901
     /**
902 902
      * @see ParagonIE_Sodium_Compat::crypto_secretbox_open()
903 903
      * @param string $message
@@ -905,29 +905,29 @@  discard block
 block discarded – undo
905 905
      * @param string $key
906 906
      * @return string|bool
907 907
      */
908
-    function sodium_crypto_secretbox_open($message, $nonce, $key)
908
+    function sodium_crypto_secretbox_open( $message, $nonce, $key )
909 909
     {
910 910
         try {
911
-            return ParagonIE_Sodium_Compat::crypto_secretbox_open($message, $nonce, $key);
912
-        } catch (Error $ex) {
911
+            return ParagonIE_Sodium_Compat::crypto_secretbox_open( $message, $nonce, $key );
912
+        } catch ( Error $ex ) {
913 913
             return false;
914
-        } catch (Exception $ex) {
914
+        } catch ( Exception $ex ) {
915 915
             return false;
916 916
         }
917 917
     }
918 918
 }
919
-if (!is_callable('sodium_crypto_secretstream_xchacha20poly1305_init_push')) {
919
+if ( ! is_callable( 'sodium_crypto_secretstream_xchacha20poly1305_init_push' ) ) {
920 920
     /**
921 921
      * @param string $key
922 922
      * @return array<int, string>
923 923
      * @throws SodiumException
924 924
      */
925
-    function sodium_crypto_secretstream_xchacha20poly1305_init_push($key)
925
+    function sodium_crypto_secretstream_xchacha20poly1305_init_push( $key )
926 926
     {
927
-        return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_init_push($key);
927
+        return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_init_push( $key );
928 928
     }
929 929
 }
930
-if (!is_callable('sodium_crypto_secretstream_xchacha20poly1305_push')) {
930
+if ( ! is_callable( 'sodium_crypto_secretstream_xchacha20poly1305_push' ) ) {
931 931
     /**
932 932
      * @param string $state
933 933
      * @param string $msg
@@ -936,24 +936,24 @@  discard block
 block discarded – undo
936 936
      * @return string
937 937
      * @throws SodiumException
938 938
      */
939
-    function sodium_crypto_secretstream_xchacha20poly1305_push(&$state, $msg, $aad = '', $tag = 0)
939
+    function sodium_crypto_secretstream_xchacha20poly1305_push( &$state, $msg, $aad = '', $tag = 0 )
940 940
     {
941
-        return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_push($state, $msg, $aad, $tag);
941
+        return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_push( $state, $msg, $aad, $tag );
942 942
     }
943 943
 }
944
-if (!is_callable('sodium_crypto_secretstream_xchacha20poly1305_init_pull')) {
944
+if ( ! is_callable( 'sodium_crypto_secretstream_xchacha20poly1305_init_pull' ) ) {
945 945
     /**
946 946
      * @param string $header
947 947
      * @param string $key
948 948
      * @return string
949 949
      * @throws Exception
950 950
      */
951
-    function sodium_crypto_secretstream_xchacha20poly1305_init_pull($header, $key)
951
+    function sodium_crypto_secretstream_xchacha20poly1305_init_pull( $header, $key )
952 952
     {
953
-        return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_init_pull($header, $key);
953
+        return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_init_pull( $header, $key );
954 954
     }
955 955
 }
956
-if (!is_callable('sodium_crypto_secretstream_xchacha20poly1305_pull')) {
956
+if ( ! is_callable( 'sodium_crypto_secretstream_xchacha20poly1305_pull' ) ) {
957 957
     /**
958 958
      * @param string $state
959 959
      * @param string $cipher
@@ -961,23 +961,23 @@  discard block
 block discarded – undo
961 961
      * @return bool|array{0: string, 1: int}
962 962
      * @throws SodiumException
963 963
      */
964
-    function sodium_crypto_secretstream_xchacha20poly1305_pull(&$state, $cipher, $aad = '')
964
+    function sodium_crypto_secretstream_xchacha20poly1305_pull( &$state, $cipher, $aad = '' )
965 965
     {
966
-        return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_pull($state, $cipher, $aad);
966
+        return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_pull( $state, $cipher, $aad );
967 967
     }
968 968
 }
969
-if (!is_callable('sodium_crypto_secretstream_xchacha20poly1305_rekey')) {
969
+if ( ! is_callable( 'sodium_crypto_secretstream_xchacha20poly1305_rekey' ) ) {
970 970
     /**
971 971
      * @param string $state
972 972
      * @return void
973 973
      * @throws SodiumException
974 974
      */
975
-    function sodium_crypto_secretstream_xchacha20poly1305_rekey(&$state)
975
+    function sodium_crypto_secretstream_xchacha20poly1305_rekey( &$state )
976 976
     {
977
-        ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_rekey($state);
977
+        ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_rekey( $state );
978 978
     }
979 979
 }
980
-if (!is_callable('sodium_crypto_secretstream_xchacha20poly1305_keygen')) {
980
+if ( ! is_callable( 'sodium_crypto_secretstream_xchacha20poly1305_keygen' ) ) {
981 981
     /**
982 982
      * @return string
983 983
      * @throws Exception
@@ -987,7 +987,7 @@  discard block
 block discarded – undo
987 987
         return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_keygen();
988 988
     }
989 989
 }
990
-if (!is_callable('sodium_crypto_shorthash')) {
990
+if ( ! is_callable( 'sodium_crypto_shorthash' ) ) {
991 991
     /**
992 992
      * @see ParagonIE_Sodium_Compat::crypto_shorthash()
993 993
      * @param string $message
@@ -996,12 +996,12 @@  discard block
 block discarded – undo
996 996
      * @throws SodiumException
997 997
      * @throws TypeError
998 998
      */
999
-    function sodium_crypto_shorthash($message, $key = '')
999
+    function sodium_crypto_shorthash( $message, $key = '' )
1000 1000
     {
1001
-        return ParagonIE_Sodium_Compat::crypto_shorthash($message, $key);
1001
+        return ParagonIE_Sodium_Compat::crypto_shorthash( $message, $key );
1002 1002
     }
1003 1003
 }
1004
-if (!is_callable('sodium_crypto_shorthash_keygen')) {
1004
+if ( ! is_callable( 'sodium_crypto_shorthash_keygen' ) ) {
1005 1005
     /**
1006 1006
      * @see ParagonIE_Sodium_Compat::crypto_shorthash_keygen()
1007 1007
      * @return string
@@ -1012,7 +1012,7 @@  discard block
 block discarded – undo
1012 1012
         return ParagonIE_Sodium_Compat::crypto_shorthash_keygen();
1013 1013
     }
1014 1014
 }
1015
-if (!is_callable('sodium_crypto_sign')) {
1015
+if ( ! is_callable( 'sodium_crypto_sign' ) ) {
1016 1016
     /**
1017 1017
      * @see ParagonIE_Sodium_Compat::crypto_sign()
1018 1018
      * @param string $message
@@ -1021,12 +1021,12 @@  discard block
 block discarded – undo
1021 1021
      * @throws SodiumException
1022 1022
      * @throws TypeError
1023 1023
      */
1024
-    function sodium_crypto_sign($message, $sk)
1024
+    function sodium_crypto_sign( $message, $sk )
1025 1025
     {
1026
-        return ParagonIE_Sodium_Compat::crypto_sign($message, $sk);
1026
+        return ParagonIE_Sodium_Compat::crypto_sign( $message, $sk );
1027 1027
     }
1028 1028
 }
1029
-if (!is_callable('sodium_crypto_sign_detached')) {
1029
+if ( ! is_callable( 'sodium_crypto_sign_detached' ) ) {
1030 1030
     /**
1031 1031
      * @see ParagonIE_Sodium_Compat::crypto_sign_detached()
1032 1032
      * @param string $message
@@ -1035,12 +1035,12 @@  discard block
 block discarded – undo
1035 1035
      * @throws SodiumException
1036 1036
      * @throws TypeError
1037 1037
      */
1038
-    function sodium_crypto_sign_detached($message, $sk)
1038
+    function sodium_crypto_sign_detached( $message, $sk )
1039 1039
     {
1040
-        return ParagonIE_Sodium_Compat::crypto_sign_detached($message, $sk);
1040
+        return ParagonIE_Sodium_Compat::crypto_sign_detached( $message, $sk );
1041 1041
     }
1042 1042
 }
1043
-if (!is_callable('sodium_crypto_sign_keypair_from_secretkey_and_publickey')) {
1043
+if ( ! is_callable( 'sodium_crypto_sign_keypair_from_secretkey_and_publickey' ) ) {
1044 1044
     /**
1045 1045
      * @see ParagonIE_Sodium_Compat::crypto_sign_keypair_from_secretkey_and_publickey()
1046 1046
      * @param string $sk
@@ -1049,12 +1049,12 @@  discard block
 block discarded – undo
1049 1049
      * @throws SodiumException
1050 1050
      * @throws TypeError
1051 1051
      */
1052
-    function sodium_crypto_sign_keypair_from_secretkey_and_publickey($sk, $pk)
1052
+    function sodium_crypto_sign_keypair_from_secretkey_and_publickey( $sk, $pk )
1053 1053
     {
1054
-        return ParagonIE_Sodium_Compat::crypto_sign_keypair_from_secretkey_and_publickey($sk, $pk);
1054
+        return ParagonIE_Sodium_Compat::crypto_sign_keypair_from_secretkey_and_publickey( $sk, $pk );
1055 1055
     }
1056 1056
 }
1057
-if (!is_callable('sodium_crypto_sign_keypair')) {
1057
+if ( ! is_callable( 'sodium_crypto_sign_keypair' ) ) {
1058 1058
     /**
1059 1059
      * @see ParagonIE_Sodium_Compat::crypto_sign_keypair()
1060 1060
      * @return string
@@ -1066,25 +1066,25 @@  discard block
 block discarded – undo
1066 1066
         return ParagonIE_Sodium_Compat::crypto_sign_keypair();
1067 1067
     }
1068 1068
 }
1069
-if (!is_callable('sodium_crypto_sign_open')) {
1069
+if ( ! is_callable( 'sodium_crypto_sign_open' ) ) {
1070 1070
     /**
1071 1071
      * @see ParagonIE_Sodium_Compat::crypto_sign_open()
1072 1072
      * @param string $signedMessage
1073 1073
      * @param string $pk
1074 1074
      * @return string|bool
1075 1075
      */
1076
-    function sodium_crypto_sign_open($signedMessage, $pk)
1076
+    function sodium_crypto_sign_open( $signedMessage, $pk )
1077 1077
     {
1078 1078
         try {
1079
-            return ParagonIE_Sodium_Compat::crypto_sign_open($signedMessage, $pk);
1080
-        } catch (Error $ex) {
1079
+            return ParagonIE_Sodium_Compat::crypto_sign_open( $signedMessage, $pk );
1080
+        } catch ( Error $ex ) {
1081 1081
             return false;
1082
-        } catch (Exception $ex) {
1082
+        } catch ( Exception $ex ) {
1083 1083
             return false;
1084 1084
         }
1085 1085
     }
1086 1086
 }
1087
-if (!is_callable('sodium_crypto_sign_publickey')) {
1087
+if ( ! is_callable( 'sodium_crypto_sign_publickey' ) ) {
1088 1088
     /**
1089 1089
      * @see ParagonIE_Sodium_Compat::crypto_sign_publickey()
1090 1090
      * @param string $keypair
@@ -1092,12 +1092,12 @@  discard block
 block discarded – undo
1092 1092
      * @throws SodiumException
1093 1093
      * @throws TypeError
1094 1094
      */
1095
-    function sodium_crypto_sign_publickey($keypair)
1095
+    function sodium_crypto_sign_publickey( $keypair )
1096 1096
     {
1097
-        return ParagonIE_Sodium_Compat::crypto_sign_publickey($keypair);
1097
+        return ParagonIE_Sodium_Compat::crypto_sign_publickey( $keypair );
1098 1098
     }
1099 1099
 }
1100
-if (!is_callable('sodium_crypto_sign_publickey_from_secretkey')) {
1100
+if ( ! is_callable( 'sodium_crypto_sign_publickey_from_secretkey' ) ) {
1101 1101
     /**
1102 1102
      * @see ParagonIE_Sodium_Compat::crypto_sign_publickey_from_secretkey()
1103 1103
      * @param string $sk
@@ -1105,12 +1105,12 @@  discard block
 block discarded – undo
1105 1105
      * @throws SodiumException
1106 1106
      * @throws TypeError
1107 1107
      */
1108
-    function sodium_crypto_sign_publickey_from_secretkey($sk)
1108
+    function sodium_crypto_sign_publickey_from_secretkey( $sk )
1109 1109
     {
1110
-        return ParagonIE_Sodium_Compat::crypto_sign_publickey_from_secretkey($sk);
1110
+        return ParagonIE_Sodium_Compat::crypto_sign_publickey_from_secretkey( $sk );
1111 1111
     }
1112 1112
 }
1113
-if (!is_callable('sodium_crypto_sign_secretkey')) {
1113
+if ( ! is_callable( 'sodium_crypto_sign_secretkey' ) ) {
1114 1114
     /**
1115 1115
      * @see ParagonIE_Sodium_Compat::crypto_sign_secretkey()
1116 1116
      * @param string $keypair
@@ -1118,12 +1118,12 @@  discard block
 block discarded – undo
1118 1118
      * @throws SodiumException
1119 1119
      * @throws TypeError
1120 1120
      */
1121
-    function sodium_crypto_sign_secretkey($keypair)
1121
+    function sodium_crypto_sign_secretkey( $keypair )
1122 1122
     {
1123
-        return ParagonIE_Sodium_Compat::crypto_sign_secretkey($keypair);
1123
+        return ParagonIE_Sodium_Compat::crypto_sign_secretkey( $keypair );
1124 1124
     }
1125 1125
 }
1126
-if (!is_callable('sodium_crypto_sign_seed_keypair')) {
1126
+if ( ! is_callable( 'sodium_crypto_sign_seed_keypair' ) ) {
1127 1127
     /**
1128 1128
      * @see ParagonIE_Sodium_Compat::crypto_sign_seed_keypair()
1129 1129
      * @param string $seed
@@ -1131,12 +1131,12 @@  discard block
 block discarded – undo
1131 1131
      * @throws SodiumException
1132 1132
      * @throws TypeError
1133 1133
      */
1134
-    function sodium_crypto_sign_seed_keypair($seed)
1134
+    function sodium_crypto_sign_seed_keypair( $seed )
1135 1135
     {
1136
-        return ParagonIE_Sodium_Compat::crypto_sign_seed_keypair($seed);
1136
+        return ParagonIE_Sodium_Compat::crypto_sign_seed_keypair( $seed );
1137 1137
     }
1138 1138
 }
1139
-if (!is_callable('sodium_crypto_sign_verify_detached')) {
1139
+if ( ! is_callable( 'sodium_crypto_sign_verify_detached' ) ) {
1140 1140
     /**
1141 1141
      * @see ParagonIE_Sodium_Compat::crypto_sign_verify_detached()
1142 1142
      * @param string $signature
@@ -1146,12 +1146,12 @@  discard block
 block discarded – undo
1146 1146
      * @throws SodiumException
1147 1147
      * @throws TypeError
1148 1148
      */
1149
-    function sodium_crypto_sign_verify_detached($signature, $message, $pk)
1149
+    function sodium_crypto_sign_verify_detached( $signature, $message, $pk )
1150 1150
     {
1151
-        return ParagonIE_Sodium_Compat::crypto_sign_verify_detached($signature, $message, $pk);
1151
+        return ParagonIE_Sodium_Compat::crypto_sign_verify_detached( $signature, $message, $pk );
1152 1152
     }
1153 1153
 }
1154
-if (!is_callable('sodium_crypto_sign_ed25519_pk_to_curve25519')) {
1154
+if ( ! is_callable( 'sodium_crypto_sign_ed25519_pk_to_curve25519' ) ) {
1155 1155
     /**
1156 1156
      * @see ParagonIE_Sodium_Compat::crypto_sign_ed25519_pk_to_curve25519()
1157 1157
      * @param string $pk
@@ -1159,12 +1159,12 @@  discard block
 block discarded – undo
1159 1159
      * @throws SodiumException
1160 1160
      * @throws TypeError
1161 1161
      */
1162
-    function sodium_crypto_sign_ed25519_pk_to_curve25519($pk)
1162
+    function sodium_crypto_sign_ed25519_pk_to_curve25519( $pk )
1163 1163
     {
1164
-        return ParagonIE_Sodium_Compat::crypto_sign_ed25519_pk_to_curve25519($pk);
1164
+        return ParagonIE_Sodium_Compat::crypto_sign_ed25519_pk_to_curve25519( $pk );
1165 1165
     }
1166 1166
 }
1167
-if (!is_callable('sodium_crypto_sign_ed25519_sk_to_curve25519')) {
1167
+if ( ! is_callable( 'sodium_crypto_sign_ed25519_sk_to_curve25519' ) ) {
1168 1168
     /**
1169 1169
      * @see ParagonIE_Sodium_Compat::crypto_sign_ed25519_sk_to_curve25519()
1170 1170
      * @param string $sk
@@ -1172,12 +1172,12 @@  discard block
 block discarded – undo
1172 1172
      * @throws SodiumException
1173 1173
      * @throws TypeError
1174 1174
      */
1175
-    function sodium_crypto_sign_ed25519_sk_to_curve25519($sk)
1175
+    function sodium_crypto_sign_ed25519_sk_to_curve25519( $sk )
1176 1176
     {
1177
-        return ParagonIE_Sodium_Compat::crypto_sign_ed25519_sk_to_curve25519($sk);
1177
+        return ParagonIE_Sodium_Compat::crypto_sign_ed25519_sk_to_curve25519( $sk );
1178 1178
     }
1179 1179
 }
1180
-if (!is_callable('sodium_crypto_stream')) {
1180
+if ( ! is_callable( 'sodium_crypto_stream' ) ) {
1181 1181
     /**
1182 1182
      * @see ParagonIE_Sodium_Compat::crypto_stream()
1183 1183
      * @param int $len
@@ -1187,12 +1187,12 @@  discard block
 block discarded – undo
1187 1187
      * @throws SodiumException
1188 1188
      * @throws TypeError
1189 1189
      */
1190
-    function sodium_crypto_stream($len, $nonce, $key)
1190
+    function sodium_crypto_stream( $len, $nonce, $key )
1191 1191
     {
1192
-        return ParagonIE_Sodium_Compat::crypto_stream($len, $nonce, $key);
1192
+        return ParagonIE_Sodium_Compat::crypto_stream( $len, $nonce, $key );
1193 1193
     }
1194 1194
 }
1195
-if (!is_callable('sodium_crypto_stream_keygen')) {
1195
+if ( ! is_callable( 'sodium_crypto_stream_keygen' ) ) {
1196 1196
     /**
1197 1197
      * @see ParagonIE_Sodium_Compat::crypto_stream_keygen()
1198 1198
      * @return string
@@ -1203,7 +1203,7 @@  discard block
 block discarded – undo
1203 1203
         return ParagonIE_Sodium_Compat::crypto_stream_keygen();
1204 1204
     }
1205 1205
 }
1206
-if (!is_callable('sodium_crypto_stream_xor')) {
1206
+if ( ! is_callable( 'sodium_crypto_stream_xor' ) ) {
1207 1207
     /**
1208 1208
      * @see ParagonIE_Sodium_Compat::crypto_stream_xor()
1209 1209
      * @param string $message
@@ -1213,13 +1213,13 @@  discard block
 block discarded – undo
1213 1213
      * @throws SodiumException
1214 1214
      * @throws TypeError
1215 1215
      */
1216
-    function sodium_crypto_stream_xor($message, $nonce, $key)
1216
+    function sodium_crypto_stream_xor( $message, $nonce, $key )
1217 1217
     {
1218
-        return ParagonIE_Sodium_Compat::crypto_stream_xor($message, $nonce, $key);
1218
+        return ParagonIE_Sodium_Compat::crypto_stream_xor( $message, $nonce, $key );
1219 1219
     }
1220 1220
 }
1221
-require_once dirname(__FILE__) . '/stream-xchacha20.php';
1222
-if (!is_callable('sodium_hex2bin')) {
1221
+require_once dirname( __FILE__ ) . '/stream-xchacha20.php';
1222
+if ( ! is_callable( 'sodium_hex2bin' ) ) {
1223 1223
     /**
1224 1224
      * @see ParagonIE_Sodium_Compat::hex2bin()
1225 1225
      * @param string $string
@@ -1227,12 +1227,12 @@  discard block
 block discarded – undo
1227 1227
      * @throws SodiumException
1228 1228
      * @throws TypeError
1229 1229
      */
1230
-    function sodium_hex2bin($string)
1230
+    function sodium_hex2bin( $string )
1231 1231
     {
1232
-        return ParagonIE_Sodium_Compat::hex2bin($string);
1232
+        return ParagonIE_Sodium_Compat::hex2bin( $string );
1233 1233
     }
1234 1234
 }
1235
-if (!is_callable('sodium_increment')) {
1235
+if ( ! is_callable( 'sodium_increment' ) ) {
1236 1236
     /**
1237 1237
      * @see ParagonIE_Sodium_Compat::increment()
1238 1238
      * @param string $string
@@ -1240,12 +1240,12 @@  discard block
 block discarded – undo
1240 1240
      * @throws SodiumException
1241 1241
      * @throws TypeError
1242 1242
      */
1243
-    function sodium_increment(&$string)
1243
+    function sodium_increment( &$string )
1244 1244
     {
1245
-        ParagonIE_Sodium_Compat::increment($string);
1245
+        ParagonIE_Sodium_Compat::increment( $string );
1246 1246
     }
1247 1247
 }
1248
-if (!is_callable('sodium_library_version_major')) {
1248
+if ( ! is_callable( 'sodium_library_version_major' ) ) {
1249 1249
     /**
1250 1250
      * @see ParagonIE_Sodium_Compat::library_version_major()
1251 1251
      * @return int
@@ -1255,7 +1255,7 @@  discard block
 block discarded – undo
1255 1255
         return ParagonIE_Sodium_Compat::library_version_major();
1256 1256
     }
1257 1257
 }
1258
-if (!is_callable('sodium_library_version_minor')) {
1258
+if ( ! is_callable( 'sodium_library_version_minor' ) ) {
1259 1259
     /**
1260 1260
      * @see ParagonIE_Sodium_Compat::library_version_minor()
1261 1261
      * @return int
@@ -1265,7 +1265,7 @@  discard block
 block discarded – undo
1265 1265
         return ParagonIE_Sodium_Compat::library_version_minor();
1266 1266
     }
1267 1267
 }
1268
-if (!is_callable('sodium_version_string')) {
1268
+if ( ! is_callable( 'sodium_version_string' ) ) {
1269 1269
     /**
1270 1270
      * @see ParagonIE_Sodium_Compat::version_string()
1271 1271
      * @return string
@@ -1275,7 +1275,7 @@  discard block
 block discarded – undo
1275 1275
         return ParagonIE_Sodium_Compat::version_string();
1276 1276
     }
1277 1277
 }
1278
-if (!is_callable('sodium_memcmp')) {
1278
+if ( ! is_callable( 'sodium_memcmp' ) ) {
1279 1279
     /**
1280 1280
      * @see ParagonIE_Sodium_Compat::memcmp()
1281 1281
      * @param string $a
@@ -1284,12 +1284,12 @@  discard block
 block discarded – undo
1284 1284
      * @throws SodiumException
1285 1285
      * @throws TypeError
1286 1286
      */
1287
-    function sodium_memcmp($a, $b)
1287
+    function sodium_memcmp( $a, $b )
1288 1288
     {
1289
-        return ParagonIE_Sodium_Compat::memcmp($a, $b);
1289
+        return ParagonIE_Sodium_Compat::memcmp( $a, $b );
1290 1290
     }
1291 1291
 }
1292
-if (!is_callable('sodium_memzero')) {
1292
+if ( ! is_callable( 'sodium_memzero' ) ) {
1293 1293
     /**
1294 1294
      * @see ParagonIE_Sodium_Compat::memzero()
1295 1295
      * @param string $str
@@ -1297,12 +1297,12 @@  discard block
 block discarded – undo
1297 1297
      * @throws SodiumException
1298 1298
      * @throws TypeError
1299 1299
      */
1300
-    function sodium_memzero(&$str)
1300
+    function sodium_memzero( &$str )
1301 1301
     {
1302
-        ParagonIE_Sodium_Compat::memzero($str);
1302
+        ParagonIE_Sodium_Compat::memzero( $str );
1303 1303
     }
1304 1304
 }
1305
-if (!is_callable('sodium_pad')) {
1305
+if ( ! is_callable( 'sodium_pad' ) ) {
1306 1306
     /**
1307 1307
      * @see ParagonIE_Sodium_Compat::pad()
1308 1308
      * @param string $unpadded
@@ -1311,12 +1311,12 @@  discard block
 block discarded – undo
1311 1311
      * @throws SodiumException
1312 1312
      * @throws TypeError
1313 1313
      */
1314
-    function sodium_pad($unpadded, $blockSize)
1314
+    function sodium_pad( $unpadded, $blockSize )
1315 1315
     {
1316
-        return ParagonIE_Sodium_Compat::pad($unpadded, $blockSize, true);
1316
+        return ParagonIE_Sodium_Compat::pad( $unpadded, $blockSize, true );
1317 1317
     }
1318 1318
 }
1319
-if (!is_callable('sodium_unpad')) {
1319
+if ( ! is_callable( 'sodium_unpad' ) ) {
1320 1320
     /**
1321 1321
      * @see ParagonIE_Sodium_Compat::pad()
1322 1322
      * @param string $padded
@@ -1325,38 +1325,38 @@  discard block
 block discarded – undo
1325 1325
      * @throws SodiumException
1326 1326
      * @throws TypeError
1327 1327
      */
1328
-    function sodium_unpad($padded, $blockSize)
1328
+    function sodium_unpad( $padded, $blockSize )
1329 1329
     {
1330
-        return ParagonIE_Sodium_Compat::unpad($padded, $blockSize, true);
1330
+        return ParagonIE_Sodium_Compat::unpad( $padded, $blockSize, true );
1331 1331
     }
1332 1332
 }
1333
-if (!is_callable('sodium_randombytes_buf')) {
1333
+if ( ! is_callable( 'sodium_randombytes_buf' ) ) {
1334 1334
     /**
1335 1335
      * @see ParagonIE_Sodium_Compat::randombytes_buf()
1336 1336
      * @param int $amount
1337 1337
      * @return string
1338 1338
      * @throws Exception
1339 1339
      */
1340
-    function sodium_randombytes_buf($amount)
1340
+    function sodium_randombytes_buf( $amount )
1341 1341
     {
1342
-        return ParagonIE_Sodium_Compat::randombytes_buf($amount);
1342
+        return ParagonIE_Sodium_Compat::randombytes_buf( $amount );
1343 1343
     }
1344 1344
 }
1345 1345
 
1346
-if (!is_callable('sodium_randombytes_uniform')) {
1346
+if ( ! is_callable( 'sodium_randombytes_uniform' ) ) {
1347 1347
     /**
1348 1348
      * @see ParagonIE_Sodium_Compat::randombytes_uniform()
1349 1349
      * @param int $upperLimit
1350 1350
      * @return int
1351 1351
      * @throws Exception
1352 1352
      */
1353
-    function sodium_randombytes_uniform($upperLimit)
1353
+    function sodium_randombytes_uniform( $upperLimit )
1354 1354
     {
1355
-        return ParagonIE_Sodium_Compat::randombytes_uniform($upperLimit);
1355
+        return ParagonIE_Sodium_Compat::randombytes_uniform( $upperLimit );
1356 1356
     }
1357 1357
 }
1358 1358
 
1359
-if (!is_callable('sodium_randombytes_random16')) {
1359
+if ( ! is_callable( 'sodium_randombytes_random16' ) ) {
1360 1360
     /**
1361 1361
      * @see ParagonIE_Sodium_Compat::randombytes_random16()
1362 1362
      * @return int
Please login to merge, or discard this patch.
Braces   +91 added lines, -182 removed lines patch added patch discarded remove patch
@@ -115,8 +115,7 @@  discard block
 block discarded – undo
115 115
      * @return void
116 116
      * @throws SodiumException
117 117
      */
118
-    function sodium_add(&$val, $addv)
119
-    {
118
+    function sodium_add(&$val, $addv) {
120 119
         ParagonIE_Sodium_Compat::add($val, $addv);
121 120
     }
122 121
 }
@@ -130,8 +129,7 @@  discard block
 block discarded – undo
130 129
      * @throws SodiumException
131 130
      * @throws TypeError
132 131
      */
133
-    function sodium_base642bin($string, $variant, $ignore ='')
134
-    {
132
+    function sodium_base642bin($string, $variant, $ignore ='') {
135 133
         return ParagonIE_Sodium_Compat::base642bin($string, $variant, $ignore);
136 134
     }
137 135
 }
@@ -144,8 +142,7 @@  discard block
 block discarded – undo
144 142
      * @throws SodiumException
145 143
      * @throws TypeError
146 144
      */
147
-    function sodium_bin2base64($string, $variant)
148
-    {
145
+    function sodium_bin2base64($string, $variant) {
149 146
         return ParagonIE_Sodium_Compat::bin2base64($string, $variant);
150 147
     }
151 148
 }
@@ -157,8 +154,7 @@  discard block
 block discarded – undo
157 154
      * @throws SodiumException
158 155
      * @throws TypeError
159 156
      */
160
-    function sodium_bin2hex($string)
161
-    {
157
+    function sodium_bin2hex($string) {
162 158
         return ParagonIE_Sodium_Compat::bin2hex($string);
163 159
     }
164 160
 }
@@ -171,8 +167,7 @@  discard block
 block discarded – undo
171 167
      * @throws SodiumException
172 168
      * @throws TypeError
173 169
      */
174
-    function sodium_compare($a, $b)
175
-    {
170
+    function sodium_compare($a, $b) {
176 171
         return ParagonIE_Sodium_Compat::compare($a, $b);
177 172
     }
178 173
 }
@@ -185,8 +180,7 @@  discard block
 block discarded – undo
185 180
      * @param string $key
186 181
      * @return string|bool
187 182
      */
188
-    function sodium_crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key)
189
-    {
183
+    function sodium_crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key) {
190 184
         try {
191 185
             return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt($message, $assocData, $nonce, $key);
192 186
         } catch (Error $ex) {
@@ -207,8 +201,7 @@  discard block
 block discarded – undo
207 201
      * @throws SodiumException
208 202
      * @throws TypeError
209 203
      */
210
-    function sodium_crypto_aead_aes256gcm_encrypt($message, $assocData, $nonce, $key)
211
-    {
204
+    function sodium_crypto_aead_aes256gcm_encrypt($message, $assocData, $nonce, $key) {
212 205
         return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_encrypt($message, $assocData, $nonce, $key);
213 206
     }
214 207
 }
@@ -217,8 +210,7 @@  discard block
 block discarded – undo
217 210
      * @see ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_is_available()
218 211
      * @return bool
219 212
      */
220
-    function sodium_crypto_aead_aes256gcm_is_available()
221
-    {
213
+    function sodium_crypto_aead_aes256gcm_is_available() {
222 214
         return ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_is_available();
223 215
     }
224 216
 }
@@ -231,8 +223,7 @@  discard block
 block discarded – undo
231 223
      * @param string $key
232 224
      * @return string|bool
233 225
      */
234
-    function sodium_crypto_aead_chacha20poly1305_decrypt($message, $assocData, $nonce, $key)
235
-    {
226
+    function sodium_crypto_aead_chacha20poly1305_decrypt($message, $assocData, $nonce, $key) {
236 227
         try {
237 228
             return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_decrypt($message, $assocData, $nonce, $key);
238 229
         } catch (Error $ex) {
@@ -253,8 +244,7 @@  discard block
 block discarded – undo
253 244
      * @throws SodiumException
254 245
      * @throws TypeError
255 246
      */
256
-    function sodium_crypto_aead_chacha20poly1305_encrypt($message, $assocData, $nonce, $key)
257
-    {
247
+    function sodium_crypto_aead_chacha20poly1305_encrypt($message, $assocData, $nonce, $key) {
258 248
         return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_encrypt($message, $assocData, $nonce, $key);
259 249
     }
260 250
 }
@@ -264,8 +254,7 @@  discard block
 block discarded – undo
264 254
      * @return string
265 255
      * @throws Exception
266 256
      */
267
-    function sodium_crypto_aead_chacha20poly1305_keygen()
268
-    {
257
+    function sodium_crypto_aead_chacha20poly1305_keygen() {
269 258
         return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_keygen();
270 259
     }
271 260
 }
@@ -278,8 +267,7 @@  discard block
 block discarded – undo
278 267
      * @param string $key
279 268
      * @return string|bool
280 269
      */
281
-    function sodium_crypto_aead_chacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key)
282
-    {
270
+    function sodium_crypto_aead_chacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key) {
283 271
         try {
284 272
             return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key);
285 273
         } catch (Error $ex) {
@@ -300,8 +288,7 @@  discard block
 block discarded – undo
300 288
      * @throws SodiumException
301 289
      * @throws TypeError
302 290
      */
303
-    function sodium_crypto_aead_chacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key)
304
-    {
291
+    function sodium_crypto_aead_chacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key) {
305 292
         return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key);
306 293
     }
307 294
 }
@@ -311,8 +298,7 @@  discard block
 block discarded – undo
311 298
      * @return string
312 299
      * @throws Exception
313 300
      */
314
-    function sodium_crypto_aead_chacha20poly1305_ietf_keygen()
315
-    {
301
+    function sodium_crypto_aead_chacha20poly1305_ietf_keygen() {
316 302
         return ParagonIE_Sodium_Compat::crypto_aead_chacha20poly1305_ietf_keygen();
317 303
     }
318 304
 }
@@ -325,8 +311,7 @@  discard block
 block discarded – undo
325 311
      * @param string $key
326 312
      * @return string|bool
327 313
      */
328
-    function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key)
329
-    {
314
+    function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key) {
330 315
         try {
331 316
             return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_decrypt($message, $assocData, $nonce, $key, true);
332 317
         } catch (Error $ex) {
@@ -347,8 +332,7 @@  discard block
 block discarded – undo
347 332
      * @throws SodiumException
348 333
      * @throws TypeError
349 334
      */
350
-    function sodium_crypto_aead_xchacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key)
351
-    {
335
+    function sodium_crypto_aead_xchacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key) {
352 336
         return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_encrypt($message, $assocData, $nonce, $key, true);
353 337
     }
354 338
 }
@@ -358,8 +342,7 @@  discard block
 block discarded – undo
358 342
      * @return string
359 343
      * @throws Exception
360 344
      */
361
-    function sodium_crypto_aead_xchacha20poly1305_ietf_keygen()
362
-    {
345
+    function sodium_crypto_aead_xchacha20poly1305_ietf_keygen() {
363 346
         return ParagonIE_Sodium_Compat::crypto_aead_xchacha20poly1305_ietf_keygen();
364 347
     }
365 348
 }
@@ -372,8 +355,7 @@  discard block
 block discarded – undo
372 355
      * @throws SodiumException
373 356
      * @throws TypeError
374 357
      */
375
-    function sodium_crypto_auth($message, $key)
376
-    {
358
+    function sodium_crypto_auth($message, $key) {
377 359
         return ParagonIE_Sodium_Compat::crypto_auth($message, $key);
378 360
     }
379 361
 }
@@ -383,8 +365,7 @@  discard block
 block discarded – undo
383 365
      * @return string
384 366
      * @throws Exception
385 367
      */
386
-    function sodium_crypto_auth_keygen()
387
-    {
368
+    function sodium_crypto_auth_keygen() {
388 369
         return ParagonIE_Sodium_Compat::crypto_auth_keygen();
389 370
     }
390 371
 }
@@ -398,8 +379,7 @@  discard block
 block discarded – undo
398 379
      * @throws SodiumException
399 380
      * @throws TypeError
400 381
      */
401
-    function sodium_crypto_auth_verify($mac, $message, $key)
402
-    {
382
+    function sodium_crypto_auth_verify($mac, $message, $key) {
403 383
         return ParagonIE_Sodium_Compat::crypto_auth_verify($mac, $message, $key);
404 384
     }
405 385
 }
@@ -413,8 +393,7 @@  discard block
 block discarded – undo
413 393
      * @throws SodiumException
414 394
      * @throws TypeError
415 395
      */
416
-    function sodium_crypto_box($message, $nonce, $kp)
417
-    {
396
+    function sodium_crypto_box($message, $nonce, $kp) {
418 397
         return ParagonIE_Sodium_Compat::crypto_box($message, $nonce, $kp);
419 398
     }
420 399
 }
@@ -425,8 +404,7 @@  discard block
 block discarded – undo
425 404
      * @throws SodiumException
426 405
      * @throws TypeError
427 406
      */
428
-    function sodium_crypto_box_keypair()
429
-    {
407
+    function sodium_crypto_box_keypair() {
430 408
         return ParagonIE_Sodium_Compat::crypto_box_keypair();
431 409
     }
432 410
 }
@@ -439,8 +417,7 @@  discard block
 block discarded – undo
439 417
      * @throws SodiumException
440 418
      * @throws TypeError
441 419
      */
442
-    function sodium_crypto_box_keypair_from_secretkey_and_publickey($sk, $pk)
443
-    {
420
+    function sodium_crypto_box_keypair_from_secretkey_and_publickey($sk, $pk) {
444 421
         return ParagonIE_Sodium_Compat::crypto_box_keypair_from_secretkey_and_publickey($sk, $pk);
445 422
     }
446 423
 }
@@ -452,8 +429,7 @@  discard block
 block discarded – undo
452 429
      * @param string $kp
453 430
      * @return string|bool
454 431
      */
455
-    function sodium_crypto_box_open($message, $nonce, $kp)
456
-    {
432
+    function sodium_crypto_box_open($message, $nonce, $kp) {
457 433
         try {
458 434
             return ParagonIE_Sodium_Compat::crypto_box_open($message, $nonce, $kp);
459 435
         } catch (Error $ex) {
@@ -471,8 +447,7 @@  discard block
 block discarded – undo
471 447
      * @throws SodiumException
472 448
      * @throws TypeError
473 449
      */
474
-    function sodium_crypto_box_publickey($keypair)
475
-    {
450
+    function sodium_crypto_box_publickey($keypair) {
476 451
         return ParagonIE_Sodium_Compat::crypto_box_publickey($keypair);
477 452
     }
478 453
 }
@@ -484,8 +459,7 @@  discard block
 block discarded – undo
484 459
      * @throws SodiumException
485 460
      * @throws TypeError
486 461
      */
487
-    function sodium_crypto_box_publickey_from_secretkey($sk)
488
-    {
462
+    function sodium_crypto_box_publickey_from_secretkey($sk) {
489 463
         return ParagonIE_Sodium_Compat::crypto_box_publickey_from_secretkey($sk);
490 464
     }
491 465
 }
@@ -498,8 +472,7 @@  discard block
 block discarded – undo
498 472
      * @throws SodiumException
499 473
      * @throws TypeError
500 474
      */
501
-    function sodium_crypto_box_seal($message, $publicKey)
502
-    {
475
+    function sodium_crypto_box_seal($message, $publicKey) {
503 476
         return ParagonIE_Sodium_Compat::crypto_box_seal($message, $publicKey);
504 477
     }
505 478
 }
@@ -511,8 +484,7 @@  discard block
 block discarded – undo
511 484
      * @return string|bool
512 485
      * @throws SodiumException
513 486
      */
514
-    function sodium_crypto_box_seal_open($message, $kp)
515
-    {
487
+    function sodium_crypto_box_seal_open($message, $kp) {
516 488
         try {
517 489
             return ParagonIE_Sodium_Compat::crypto_box_seal_open($message, $kp);
518 490
         } catch (SodiumException $ex) {
@@ -531,8 +503,7 @@  discard block
 block discarded – undo
531 503
      * @throws SodiumException
532 504
      * @throws TypeError
533 505
      */
534
-    function sodium_crypto_box_secretkey($keypair)
535
-    {
506
+    function sodium_crypto_box_secretkey($keypair) {
536 507
         return ParagonIE_Sodium_Compat::crypto_box_secretkey($keypair);
537 508
     }
538 509
 }
@@ -544,8 +515,7 @@  discard block
 block discarded – undo
544 515
      * @throws SodiumException
545 516
      * @throws TypeError
546 517
      */
547
-    function sodium_crypto_box_seed_keypair($seed)
548
-    {
518
+    function sodium_crypto_box_seed_keypair($seed) {
549 519
         return ParagonIE_Sodium_Compat::crypto_box_seed_keypair($seed);
550 520
     }
551 521
 }
@@ -559,8 +529,7 @@  discard block
 block discarded – undo
559 529
      * @throws SodiumException
560 530
      * @throws TypeError
561 531
      */
562
-    function sodium_crypto_generichash($message, $key = null, $outLen = 32)
563
-    {
532
+    function sodium_crypto_generichash($message, $key = null, $outLen = 32) {
564 533
         return ParagonIE_Sodium_Compat::crypto_generichash($message, $key, $outLen);
565 534
     }
566 535
 }
@@ -573,8 +542,7 @@  discard block
 block discarded – undo
573 542
      * @throws SodiumException
574 543
      * @throws TypeError
575 544
      */
576
-    function sodium_crypto_generichash_final(&$ctx, $outputLength = 32)
577
-    {
545
+    function sodium_crypto_generichash_final(&$ctx, $outputLength = 32) {
578 546
         return ParagonIE_Sodium_Compat::crypto_generichash_final($ctx, $outputLength);
579 547
     }
580 548
 }
@@ -587,8 +555,7 @@  discard block
 block discarded – undo
587 555
      * @throws SodiumException
588 556
      * @throws TypeError
589 557
      */
590
-    function sodium_crypto_generichash_init($key = null, $outLen = 32)
591
-    {
558
+    function sodium_crypto_generichash_init($key = null, $outLen = 32) {
592 559
         return ParagonIE_Sodium_Compat::crypto_generichash_init($key, $outLen);
593 560
     }
594 561
 }
@@ -598,8 +565,7 @@  discard block
 block discarded – undo
598 565
      * @return string
599 566
      * @throws Exception
600 567
      */
601
-    function sodium_crypto_generichash_keygen()
602
-    {
568
+    function sodium_crypto_generichash_keygen() {
603 569
         return ParagonIE_Sodium_Compat::crypto_generichash_keygen();
604 570
     }
605 571
 }
@@ -612,8 +578,7 @@  discard block
 block discarded – undo
612 578
      * @throws SodiumException
613 579
      * @throws TypeError
614 580
      */
615
-    function sodium_crypto_generichash_update(&$ctx, $message = '')
616
-    {
581
+    function sodium_crypto_generichash_update(&$ctx, $message = '') {
617 582
         ParagonIE_Sodium_Compat::crypto_generichash_update($ctx, $message);
618 583
     }
619 584
 }
@@ -623,8 +588,7 @@  discard block
 block discarded – undo
623 588
      * @return string
624 589
      * @throws Exception
625 590
      */
626
-    function sodium_crypto_kdf_keygen()
627
-    {
591
+    function sodium_crypto_kdf_keygen() {
628 592
         return ParagonIE_Sodium_Compat::crypto_kdf_keygen();
629 593
     }
630 594
 }
@@ -638,8 +602,7 @@  discard block
 block discarded – undo
638 602
      * @return string
639 603
      * @throws Exception
640 604
      */
641
-    function sodium_crypto_kdf_derive_from_key($subkey_len, $subkey_id, $context, $key)
642
-    {
605
+    function sodium_crypto_kdf_derive_from_key($subkey_len, $subkey_id, $context, $key) {
643 606
         return ParagonIE_Sodium_Compat::crypto_kdf_derive_from_key(
644 607
             $subkey_len,
645 608
             $subkey_id,
@@ -659,8 +622,7 @@  discard block
 block discarded – undo
659 622
      * @throws SodiumException
660 623
      * @throws TypeError
661 624
      */
662
-    function sodium_crypto_kx($my_secret, $their_public, $client_public, $server_public)
663
-    {
625
+    function sodium_crypto_kx($my_secret, $their_public, $client_public, $server_public) {
664 626
         return ParagonIE_Sodium_Compat::crypto_kx(
665 627
             $my_secret,
666 628
             $their_public,
@@ -675,8 +637,7 @@  discard block
 block discarded – undo
675 637
      * @return string
676 638
      * @throws Exception
677 639
      */
678
-    function sodium_crypto_kx_seed_keypair($seed)
679
-    {
640
+    function sodium_crypto_kx_seed_keypair($seed) {
680 641
         return ParagonIE_Sodium_Compat::crypto_kx_seed_keypair($seed);
681 642
     }
682 643
 }
@@ -685,8 +646,7 @@  discard block
 block discarded – undo
685 646
      * @return string
686 647
      * @throws Exception
687 648
      */
688
-    function sodium_crypto_kx_keypair()
689
-    {
649
+    function sodium_crypto_kx_keypair() {
690 650
         return ParagonIE_Sodium_Compat::crypto_kx_keypair();
691 651
     }
692 652
 }
@@ -697,8 +657,7 @@  discard block
 block discarded – undo
697 657
      * @return array{0: string, 1: string}
698 658
      * @throws SodiumException
699 659
      */
700
-    function sodium_crypto_kx_client_session_keys($keypair, $serverPublicKey)
701
-    {
660
+    function sodium_crypto_kx_client_session_keys($keypair, $serverPublicKey) {
702 661
         return ParagonIE_Sodium_Compat::crypto_kx_client_session_keys($keypair, $serverPublicKey);
703 662
     }
704 663
 }
@@ -709,8 +668,7 @@  discard block
 block discarded – undo
709 668
      * @return array{0: string, 1: string}
710 669
      * @throws SodiumException
711 670
      */
712
-    function sodium_crypto_kx_server_session_keys($keypair, $clientPublicKey)
713
-    {
671
+    function sodium_crypto_kx_server_session_keys($keypair, $clientPublicKey) {
714 672
         return ParagonIE_Sodium_Compat::crypto_kx_server_session_keys($keypair, $clientPublicKey);
715 673
     }
716 674
 }
@@ -720,8 +678,7 @@  discard block
 block discarded – undo
720 678
      * @return string
721 679
      * @throws Exception
722 680
      */
723
-    function sodium_crypto_kx_secretkey($keypair)
724
-    {
681
+    function sodium_crypto_kx_secretkey($keypair) {
725 682
         return ParagonIE_Sodium_Compat::crypto_kx_secretkey($keypair);
726 683
     }
727 684
 }
@@ -731,8 +688,7 @@  discard block
 block discarded – undo
731 688
      * @return string
732 689
      * @throws Exception
733 690
      */
734
-    function sodium_crypto_kx_publickey($keypair)
735
-    {
691
+    function sodium_crypto_kx_publickey($keypair) {
736 692
         return ParagonIE_Sodium_Compat::crypto_kx_publickey($keypair);
737 693
     }
738 694
 }
@@ -749,8 +705,7 @@  discard block
 block discarded – undo
749 705
      * @throws SodiumException
750 706
      * @throws TypeError
751 707
      */
752
-    function sodium_crypto_pwhash($outlen, $passwd, $salt, $opslimit, $memlimit, $algo = null)
753
-    {
708
+    function sodium_crypto_pwhash($outlen, $passwd, $salt, $opslimit, $memlimit, $algo = null) {
754 709
         return ParagonIE_Sodium_Compat::crypto_pwhash($outlen, $passwd, $salt, $opslimit, $memlimit, $algo);
755 710
     }
756 711
 }
@@ -764,8 +719,7 @@  discard block
 block discarded – undo
764 719
      * @throws SodiumException
765 720
      * @throws TypeError
766 721
      */
767
-    function sodium_crypto_pwhash_str($passwd, $opslimit, $memlimit)
768
-    {
722
+    function sodium_crypto_pwhash_str($passwd, $opslimit, $memlimit) {
769 723
         return ParagonIE_Sodium_Compat::crypto_pwhash_str($passwd, $opslimit, $memlimit);
770 724
     }
771 725
 }
@@ -779,8 +733,7 @@  discard block
 block discarded – undo
779 733
      *
780 734
      * @throws SodiumException
781 735
      */
782
-    function sodium_crypto_pwhash_str_needs_rehash($hash, $opslimit, $memlimit)
783
-    {
736
+    function sodium_crypto_pwhash_str_needs_rehash($hash, $opslimit, $memlimit) {
784 737
         return ParagonIE_Sodium_Compat::crypto_pwhash_str_needs_rehash($hash, $opslimit, $memlimit);
785 738
     }
786 739
 }
@@ -793,8 +746,7 @@  discard block
 block discarded – undo
793 746
      * @throws SodiumException
794 747
      * @throws TypeError
795 748
      */
796
-    function sodium_crypto_pwhash_str_verify($passwd, $hash)
797
-    {
749
+    function sodium_crypto_pwhash_str_verify($passwd, $hash) {
798 750
         return ParagonIE_Sodium_Compat::crypto_pwhash_str_verify($passwd, $hash);
799 751
     }
800 752
 }
@@ -810,8 +762,7 @@  discard block
 block discarded – undo
810 762
      * @throws SodiumException
811 763
      * @throws TypeError
812 764
      */
813
-    function sodium_crypto_pwhash_scryptsalsa208sha256($outlen, $passwd, $salt, $opslimit, $memlimit)
814
-    {
765
+    function sodium_crypto_pwhash_scryptsalsa208sha256($outlen, $passwd, $salt, $opslimit, $memlimit) {
815 766
         return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256($outlen, $passwd, $salt, $opslimit, $memlimit);
816 767
     }
817 768
 }
@@ -825,8 +776,7 @@  discard block
 block discarded – undo
825 776
      * @throws SodiumException
826 777
      * @throws TypeError
827 778
      */
828
-    function sodium_crypto_pwhash_scryptsalsa208sha256_str($passwd, $opslimit, $memlimit)
829
-    {
779
+    function sodium_crypto_pwhash_scryptsalsa208sha256_str($passwd, $opslimit, $memlimit) {
830 780
         return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str($passwd, $opslimit, $memlimit);
831 781
     }
832 782
 }
@@ -839,8 +789,7 @@  discard block
 block discarded – undo
839 789
      * @throws SodiumException
840 790
      * @throws TypeError
841 791
      */
842
-    function sodium_crypto_pwhash_scryptsalsa208sha256_str_verify($passwd, $hash)
843
-    {
792
+    function sodium_crypto_pwhash_scryptsalsa208sha256_str_verify($passwd, $hash) {
844 793
         return ParagonIE_Sodium_Compat::crypto_pwhash_scryptsalsa208sha256_str_verify($passwd, $hash);
845 794
     }
846 795
 }
@@ -853,8 +802,7 @@  discard block
 block discarded – undo
853 802
      * @throws SodiumException
854 803
      * @throws TypeError
855 804
      */
856
-    function sodium_crypto_scalarmult($n, $p)
857
-    {
805
+    function sodium_crypto_scalarmult($n, $p) {
858 806
         return ParagonIE_Sodium_Compat::crypto_scalarmult($n, $p);
859 807
     }
860 808
 }
@@ -866,8 +814,7 @@  discard block
 block discarded – undo
866 814
      * @throws SodiumException
867 815
      * @throws TypeError
868 816
      */
869
-    function sodium_crypto_scalarmult_base($n)
870
-    {
817
+    function sodium_crypto_scalarmult_base($n) {
871 818
         return ParagonIE_Sodium_Compat::crypto_scalarmult_base($n);
872 819
     }
873 820
 }
@@ -881,8 +828,7 @@  discard block
 block discarded – undo
881 828
      * @throws SodiumException
882 829
      * @throws TypeError
883 830
      */
884
-    function sodium_crypto_secretbox($message, $nonce, $key)
885
-    {
831
+    function sodium_crypto_secretbox($message, $nonce, $key) {
886 832
         return ParagonIE_Sodium_Compat::crypto_secretbox($message, $nonce, $key);
887 833
     }
888 834
 }
@@ -892,8 +838,7 @@  discard block
 block discarded – undo
892 838
      * @return string
893 839
      * @throws Exception
894 840
      */
895
-    function sodium_crypto_secretbox_keygen()
896
-    {
841
+    function sodium_crypto_secretbox_keygen() {
897 842
         return ParagonIE_Sodium_Compat::crypto_secretbox_keygen();
898 843
     }
899 844
 }
@@ -905,8 +850,7 @@  discard block
 block discarded – undo
905 850
      * @param string $key
906 851
      * @return string|bool
907 852
      */
908
-    function sodium_crypto_secretbox_open($message, $nonce, $key)
909
-    {
853
+    function sodium_crypto_secretbox_open($message, $nonce, $key) {
910 854
         try {
911 855
             return ParagonIE_Sodium_Compat::crypto_secretbox_open($message, $nonce, $key);
912 856
         } catch (Error $ex) {
@@ -922,8 +866,7 @@  discard block
 block discarded – undo
922 866
      * @return array<int, string>
923 867
      * @throws SodiumException
924 868
      */
925
-    function sodium_crypto_secretstream_xchacha20poly1305_init_push($key)
926
-    {
869
+    function sodium_crypto_secretstream_xchacha20poly1305_init_push($key) {
927 870
         return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_init_push($key);
928 871
     }
929 872
 }
@@ -936,8 +879,7 @@  discard block
 block discarded – undo
936 879
      * @return string
937 880
      * @throws SodiumException
938 881
      */
939
-    function sodium_crypto_secretstream_xchacha20poly1305_push(&$state, $msg, $aad = '', $tag = 0)
940
-    {
882
+    function sodium_crypto_secretstream_xchacha20poly1305_push(&$state, $msg, $aad = '', $tag = 0) {
941 883
         return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_push($state, $msg, $aad, $tag);
942 884
     }
943 885
 }
@@ -948,8 +890,7 @@  discard block
 block discarded – undo
948 890
      * @return string
949 891
      * @throws Exception
950 892
      */
951
-    function sodium_crypto_secretstream_xchacha20poly1305_init_pull($header, $key)
952
-    {
893
+    function sodium_crypto_secretstream_xchacha20poly1305_init_pull($header, $key) {
953 894
         return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_init_pull($header, $key);
954 895
     }
955 896
 }
@@ -961,8 +902,7 @@  discard block
 block discarded – undo
961 902
      * @return bool|array{0: string, 1: int}
962 903
      * @throws SodiumException
963 904
      */
964
-    function sodium_crypto_secretstream_xchacha20poly1305_pull(&$state, $cipher, $aad = '')
965
-    {
905
+    function sodium_crypto_secretstream_xchacha20poly1305_pull(&$state, $cipher, $aad = '') {
966 906
         return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_pull($state, $cipher, $aad);
967 907
     }
968 908
 }
@@ -972,8 +912,7 @@  discard block
 block discarded – undo
972 912
      * @return void
973 913
      * @throws SodiumException
974 914
      */
975
-    function sodium_crypto_secretstream_xchacha20poly1305_rekey(&$state)
976
-    {
915
+    function sodium_crypto_secretstream_xchacha20poly1305_rekey(&$state) {
977 916
         ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_rekey($state);
978 917
     }
979 918
 }
@@ -982,8 +921,7 @@  discard block
 block discarded – undo
982 921
      * @return string
983 922
      * @throws Exception
984 923
      */
985
-    function sodium_crypto_secretstream_xchacha20poly1305_keygen()
986
-    {
924
+    function sodium_crypto_secretstream_xchacha20poly1305_keygen() {
987 925
         return ParagonIE_Sodium_Compat::crypto_secretstream_xchacha20poly1305_keygen();
988 926
     }
989 927
 }
@@ -996,8 +934,7 @@  discard block
 block discarded – undo
996 934
      * @throws SodiumException
997 935
      * @throws TypeError
998 936
      */
999
-    function sodium_crypto_shorthash($message, $key = '')
1000
-    {
937
+    function sodium_crypto_shorthash($message, $key = '') {
1001 938
         return ParagonIE_Sodium_Compat::crypto_shorthash($message, $key);
1002 939
     }
1003 940
 }
@@ -1007,8 +944,7 @@  discard block
 block discarded – undo
1007 944
      * @return string
1008 945
      * @throws Exception
1009 946
      */
1010
-    function sodium_crypto_shorthash_keygen()
1011
-    {
947
+    function sodium_crypto_shorthash_keygen() {
1012 948
         return ParagonIE_Sodium_Compat::crypto_shorthash_keygen();
1013 949
     }
1014 950
 }
@@ -1021,8 +957,7 @@  discard block
 block discarded – undo
1021 957
      * @throws SodiumException
1022 958
      * @throws TypeError
1023 959
      */
1024
-    function sodium_crypto_sign($message, $sk)
1025
-    {
960
+    function sodium_crypto_sign($message, $sk) {
1026 961
         return ParagonIE_Sodium_Compat::crypto_sign($message, $sk);
1027 962
     }
1028 963
 }
@@ -1035,8 +970,7 @@  discard block
 block discarded – undo
1035 970
      * @throws SodiumException
1036 971
      * @throws TypeError
1037 972
      */
1038
-    function sodium_crypto_sign_detached($message, $sk)
1039
-    {
973
+    function sodium_crypto_sign_detached($message, $sk) {
1040 974
         return ParagonIE_Sodium_Compat::crypto_sign_detached($message, $sk);
1041 975
     }
1042 976
 }
@@ -1049,8 +983,7 @@  discard block
 block discarded – undo
1049 983
      * @throws SodiumException
1050 984
      * @throws TypeError
1051 985
      */
1052
-    function sodium_crypto_sign_keypair_from_secretkey_and_publickey($sk, $pk)
1053
-    {
986
+    function sodium_crypto_sign_keypair_from_secretkey_and_publickey($sk, $pk) {
1054 987
         return ParagonIE_Sodium_Compat::crypto_sign_keypair_from_secretkey_and_publickey($sk, $pk);
1055 988
     }
1056 989
 }
@@ -1061,8 +994,7 @@  discard block
 block discarded – undo
1061 994
      * @throws SodiumException
1062 995
      * @throws TypeError
1063 996
      */
1064
-    function sodium_crypto_sign_keypair()
1065
-    {
997
+    function sodium_crypto_sign_keypair() {
1066 998
         return ParagonIE_Sodium_Compat::crypto_sign_keypair();
1067 999
     }
1068 1000
 }
@@ -1073,8 +1005,7 @@  discard block
 block discarded – undo
1073 1005
      * @param string $pk
1074 1006
      * @return string|bool
1075 1007
      */
1076
-    function sodium_crypto_sign_open($signedMessage, $pk)
1077
-    {
1008
+    function sodium_crypto_sign_open($signedMessage, $pk) {
1078 1009
         try {
1079 1010
             return ParagonIE_Sodium_Compat::crypto_sign_open($signedMessage, $pk);
1080 1011
         } catch (Error $ex) {
@@ -1092,8 +1023,7 @@  discard block
 block discarded – undo
1092 1023
      * @throws SodiumException
1093 1024
      * @throws TypeError
1094 1025
      */
1095
-    function sodium_crypto_sign_publickey($keypair)
1096
-    {
1026
+    function sodium_crypto_sign_publickey($keypair) {
1097 1027
         return ParagonIE_Sodium_Compat::crypto_sign_publickey($keypair);
1098 1028
     }
1099 1029
 }
@@ -1105,8 +1035,7 @@  discard block
 block discarded – undo
1105 1035
      * @throws SodiumException
1106 1036
      * @throws TypeError
1107 1037
      */
1108
-    function sodium_crypto_sign_publickey_from_secretkey($sk)
1109
-    {
1038
+    function sodium_crypto_sign_publickey_from_secretkey($sk) {
1110 1039
         return ParagonIE_Sodium_Compat::crypto_sign_publickey_from_secretkey($sk);
1111 1040
     }
1112 1041
 }
@@ -1118,8 +1047,7 @@  discard block
 block discarded – undo
1118 1047
      * @throws SodiumException
1119 1048
      * @throws TypeError
1120 1049
      */
1121
-    function sodium_crypto_sign_secretkey($keypair)
1122
-    {
1050
+    function sodium_crypto_sign_secretkey($keypair) {
1123 1051
         return ParagonIE_Sodium_Compat::crypto_sign_secretkey($keypair);
1124 1052
     }
1125 1053
 }
@@ -1131,8 +1059,7 @@  discard block
 block discarded – undo
1131 1059
      * @throws SodiumException
1132 1060
      * @throws TypeError
1133 1061
      */
1134
-    function sodium_crypto_sign_seed_keypair($seed)
1135
-    {
1062
+    function sodium_crypto_sign_seed_keypair($seed) {
1136 1063
         return ParagonIE_Sodium_Compat::crypto_sign_seed_keypair($seed);
1137 1064
     }
1138 1065
 }
@@ -1146,8 +1073,7 @@  discard block
 block discarded – undo
1146 1073
      * @throws SodiumException
1147 1074
      * @throws TypeError
1148 1075
      */
1149
-    function sodium_crypto_sign_verify_detached($signature, $message, $pk)
1150
-    {
1076
+    function sodium_crypto_sign_verify_detached($signature, $message, $pk) {
1151 1077
         return ParagonIE_Sodium_Compat::crypto_sign_verify_detached($signature, $message, $pk);
1152 1078
     }
1153 1079
 }
@@ -1159,8 +1085,7 @@  discard block
 block discarded – undo
1159 1085
      * @throws SodiumException
1160 1086
      * @throws TypeError
1161 1087
      */
1162
-    function sodium_crypto_sign_ed25519_pk_to_curve25519($pk)
1163
-    {
1088
+    function sodium_crypto_sign_ed25519_pk_to_curve25519($pk) {
1164 1089
         return ParagonIE_Sodium_Compat::crypto_sign_ed25519_pk_to_curve25519($pk);
1165 1090
     }
1166 1091
 }
@@ -1172,8 +1097,7 @@  discard block
 block discarded – undo
1172 1097
      * @throws SodiumException
1173 1098
      * @throws TypeError
1174 1099
      */
1175
-    function sodium_crypto_sign_ed25519_sk_to_curve25519($sk)
1176
-    {
1100
+    function sodium_crypto_sign_ed25519_sk_to_curve25519($sk) {
1177 1101
         return ParagonIE_Sodium_Compat::crypto_sign_ed25519_sk_to_curve25519($sk);
1178 1102
     }
1179 1103
 }
@@ -1187,8 +1111,7 @@  discard block
 block discarded – undo
1187 1111
      * @throws SodiumException
1188 1112
      * @throws TypeError
1189 1113
      */
1190
-    function sodium_crypto_stream($len, $nonce, $key)
1191
-    {
1114
+    function sodium_crypto_stream($len, $nonce, $key) {
1192 1115
         return ParagonIE_Sodium_Compat::crypto_stream($len, $nonce, $key);
1193 1116
     }
1194 1117
 }
@@ -1198,8 +1121,7 @@  discard block
 block discarded – undo
1198 1121
      * @return string
1199 1122
      * @throws Exception
1200 1123
      */
1201
-    function sodium_crypto_stream_keygen()
1202
-    {
1124
+    function sodium_crypto_stream_keygen() {
1203 1125
         return ParagonIE_Sodium_Compat::crypto_stream_keygen();
1204 1126
     }
1205 1127
 }
@@ -1213,8 +1135,7 @@  discard block
 block discarded – undo
1213 1135
      * @throws SodiumException
1214 1136
      * @throws TypeError
1215 1137
      */
1216
-    function sodium_crypto_stream_xor($message, $nonce, $key)
1217
-    {
1138
+    function sodium_crypto_stream_xor($message, $nonce, $key) {
1218 1139
         return ParagonIE_Sodium_Compat::crypto_stream_xor($message, $nonce, $key);
1219 1140
     }
1220 1141
 }
@@ -1227,8 +1148,7 @@  discard block
 block discarded – undo
1227 1148
      * @throws SodiumException
1228 1149
      * @throws TypeError
1229 1150
      */
1230
-    function sodium_hex2bin($string)
1231
-    {
1151
+    function sodium_hex2bin($string) {
1232 1152
         return ParagonIE_Sodium_Compat::hex2bin($string);
1233 1153
     }
1234 1154
 }
@@ -1240,8 +1160,7 @@  discard block
 block discarded – undo
1240 1160
      * @throws SodiumException
1241 1161
      * @throws TypeError
1242 1162
      */
1243
-    function sodium_increment(&$string)
1244
-    {
1163
+    function sodium_increment(&$string) {
1245 1164
         ParagonIE_Sodium_Compat::increment($string);
1246 1165
     }
1247 1166
 }
@@ -1250,8 +1169,7 @@  discard block
 block discarded – undo
1250 1169
      * @see ParagonIE_Sodium_Compat::library_version_major()
1251 1170
      * @return int
1252 1171
      */
1253
-    function sodium_library_version_major()
1254
-    {
1172
+    function sodium_library_version_major() {
1255 1173
         return ParagonIE_Sodium_Compat::library_version_major();
1256 1174
     }
1257 1175
 }
@@ -1260,8 +1178,7 @@  discard block
 block discarded – undo
1260 1178
      * @see ParagonIE_Sodium_Compat::library_version_minor()
1261 1179
      * @return int
1262 1180
      */
1263
-    function sodium_library_version_minor()
1264
-    {
1181
+    function sodium_library_version_minor() {
1265 1182
         return ParagonIE_Sodium_Compat::library_version_minor();
1266 1183
     }
1267 1184
 }
@@ -1270,8 +1187,7 @@  discard block
 block discarded – undo
1270 1187
      * @see ParagonIE_Sodium_Compat::version_string()
1271 1188
      * @return string
1272 1189
      */
1273
-    function sodium_version_string()
1274
-    {
1190
+    function sodium_version_string() {
1275 1191
         return ParagonIE_Sodium_Compat::version_string();
1276 1192
     }
1277 1193
 }
@@ -1284,8 +1200,7 @@  discard block
 block discarded – undo
1284 1200
      * @throws SodiumException
1285 1201
      * @throws TypeError
1286 1202
      */
1287
-    function sodium_memcmp($a, $b)
1288
-    {
1203
+    function sodium_memcmp($a, $b) {
1289 1204
         return ParagonIE_Sodium_Compat::memcmp($a, $b);
1290 1205
     }
1291 1206
 }
@@ -1297,8 +1212,7 @@  discard block
 block discarded – undo
1297 1212
      * @throws SodiumException
1298 1213
      * @throws TypeError
1299 1214
      */
1300
-    function sodium_memzero(&$str)
1301
-    {
1215
+    function sodium_memzero(&$str) {
1302 1216
         ParagonIE_Sodium_Compat::memzero($str);
1303 1217
     }
1304 1218
 }
@@ -1311,8 +1225,7 @@  discard block
 block discarded – undo
1311 1225
      * @throws SodiumException
1312 1226
      * @throws TypeError
1313 1227
      */
1314
-    function sodium_pad($unpadded, $blockSize)
1315
-    {
1228
+    function sodium_pad($unpadded, $blockSize) {
1316 1229
         return ParagonIE_Sodium_Compat::pad($unpadded, $blockSize, true);
1317 1230
     }
1318 1231
 }
@@ -1325,8 +1238,7 @@  discard block
 block discarded – undo
1325 1238
      * @throws SodiumException
1326 1239
      * @throws TypeError
1327 1240
      */
1328
-    function sodium_unpad($padded, $blockSize)
1329
-    {
1241
+    function sodium_unpad($padded, $blockSize) {
1330 1242
         return ParagonIE_Sodium_Compat::unpad($padded, $blockSize, true);
1331 1243
     }
1332 1244
 }
@@ -1337,8 +1249,7 @@  discard block
 block discarded – undo
1337 1249
      * @return string
1338 1250
      * @throws Exception
1339 1251
      */
1340
-    function sodium_randombytes_buf($amount)
1341
-    {
1252
+    function sodium_randombytes_buf($amount) {
1342 1253
         return ParagonIE_Sodium_Compat::randombytes_buf($amount);
1343 1254
     }
1344 1255
 }
@@ -1350,8 +1261,7 @@  discard block
 block discarded – undo
1350 1261
      * @return int
1351 1262
      * @throws Exception
1352 1263
      */
1353
-    function sodium_randombytes_uniform($upperLimit)
1354
-    {
1264
+    function sodium_randombytes_uniform($upperLimit) {
1355 1265
         return ParagonIE_Sodium_Compat::randombytes_uniform($upperLimit);
1356 1266
     }
1357 1267
 }
@@ -1362,8 +1272,7 @@  discard block
 block discarded – undo
1362 1272
      * @return int
1363 1273
      * @throws Exception
1364 1274
      */
1365
-    function sodium_randombytes_random16()
1366
-    {
1275
+    function sodium_randombytes_random16() {
1367 1276
         return ParagonIE_Sodium_Compat::randombytes_random16();
1368 1277
     }
1369 1278
 }
Please login to merge, or discard this patch.
vendor/paragonie/sodium_compat/namespaced/Crypto.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace ParagonIE\Sodium;
3 3
 
4
-class Crypto extends \ParagonIE_Sodium_Crypto
5
-{
4
+class Crypto extends \ParagonIE_Sodium_Crypto {
6 5
 
7 6
 }
Please login to merge, or discard this patch.
vendor/paragonie/sodium_compat/namespaced/File.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace ParagonIE\Sodium;
3 3
 
4
-class File extends \ParagonIE_Sodium_File
5
-{
4
+class File extends \ParagonIE_Sodium_File {
6 5
 
7 6
 }
Please login to merge, or discard this patch.
vendor/paragonie/sodium_compat/namespaced/Compat.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace ParagonIE\Sodium;
3 3
 
4
-class Compat extends \ParagonIE_Sodium_Compat
5
-{
4
+class Compat extends \ParagonIE_Sodium_Compat {
6 5
 
7 6
 }
Please login to merge, or discard this patch.
vendor/paragonie/sodium_compat/namespaced/Core/BLAKE2b.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace ParagonIE\Sodium\Core;
3 3
 
4
-class BLAKE2b extends \ParagonIE_Sodium_Core_BLAKE2b
5
-{
4
+class BLAKE2b extends \ParagonIE_Sodium_Core_BLAKE2b {
6 5
 
7 6
 }
Please login to merge, or discard this patch.
vendor/paragonie/sodium_compat/namespaced/Core/Ed25519.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace ParagonIE\Sodium\Core;
3 3
 
4
-class Ed25519 extends \ParagonIE_Sodium_Core_Ed25519
5
-{
4
+class Ed25519 extends \ParagonIE_Sodium_Core_Ed25519 {
6 5
 
7 6
 }
Please login to merge, or discard this patch.
vendor/paragonie/sodium_compat/namespaced/Core/Util.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace ParagonIE\Sodium\Core;
3 3
 
4
-class Util extends \ParagonIE_Sodium_Core_Util
5
-{
4
+class Util extends \ParagonIE_Sodium_Core_Util {
6 5
 
7 6
 }
Please login to merge, or discard this patch.