@@ -115,8 +115,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -1,7 +1,6 @@ |
||
| 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 | } |
@@ -1,7 +1,6 @@ |
||
| 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 | } |
@@ -1,7 +1,6 @@ |
||
| 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 | } |
@@ -1,7 +1,6 @@ |
||
| 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 | } |
@@ -1,7 +1,6 @@ |
||
| 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 | } |
@@ -1,7 +1,6 @@ |
||
| 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 | } |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace ParagonIE\Sodium\Core; |
| 3 | 3 | |
| 4 | -class SipHash extends \ParagonIE_Sodium_Core_SipHash |
|
| 5 | -{ |
|
| 4 | +class SipHash extends \ParagonIE_Sodium_Core_SipHash { |
|
| 6 | 5 | |
| 7 | 6 | } |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace ParagonIE\Sodium\Core; |
| 3 | 3 | |
| 4 | -class XChaCha20 extends \ParagonIE_Sodium_Core_XChaCha20 |
|
| 5 | -{ |
|
| 4 | +class XChaCha20 extends \ParagonIE_Sodium_Core_XChaCha20 { |
|
| 6 | 5 | |
| 7 | 6 | } |