@@ -7,8 +7,7 @@ discard block |
||
7 | 7 | * |
8 | 8 | * These are immutable. It always returns a new instance. |
9 | 9 | */ |
10 | -class ParagonIE_Sodium_Core32_Int64 |
|
11 | -{ |
|
10 | +class ParagonIE_Sodium_Core32_Int64 { |
|
12 | 11 | /** |
13 | 12 | * @var array<int, int> - four 16-bit integers |
14 | 13 | */ |
@@ -29,8 +28,7 @@ discard block |
||
29 | 28 | * @param array $array |
30 | 29 | * @param bool $unsignedInt |
31 | 30 | */ |
32 | - public function __construct($array = array(0, 0, 0, 0), $unsignedInt = false) |
|
33 | - { |
|
31 | + public function __construct($array = array(0, 0, 0, 0), $unsignedInt = false) { |
|
34 | 32 | $this->limbs = array( |
35 | 33 | (int) $array[0], |
36 | 34 | (int) $array[1], |
@@ -47,8 +45,7 @@ discard block |
||
47 | 45 | * @param ParagonIE_Sodium_Core32_Int64 $addend |
48 | 46 | * @return ParagonIE_Sodium_Core32_Int64 |
49 | 47 | */ |
50 | - public function addInt64(ParagonIE_Sodium_Core32_Int64 $addend) |
|
51 | - { |
|
48 | + public function addInt64(ParagonIE_Sodium_Core32_Int64 $addend) { |
|
52 | 49 | $i0 = $this->limbs[0]; |
53 | 50 | $i1 = $this->limbs[1]; |
54 | 51 | $i2 = $this->limbs[2]; |
@@ -91,8 +88,7 @@ discard block |
||
91 | 88 | * @throws SodiumException |
92 | 89 | * @throws TypeError |
93 | 90 | */ |
94 | - public function addInt($int) |
|
95 | - { |
|
91 | + public function addInt($int) { |
|
96 | 92 | ParagonIE_Sodium_Core32_Util::declareScalarType($int, 'int', 1); |
97 | 93 | /** @var int $int */ |
98 | 94 | $int = (int) $int; |
@@ -130,8 +126,7 @@ discard block |
||
130 | 126 | * @param int $b |
131 | 127 | * @return int |
132 | 128 | */ |
133 | - public function compareInt($b = 0) |
|
134 | - { |
|
129 | + public function compareInt($b = 0) { |
|
135 | 130 | $gt = 0; |
136 | 131 | $eq = 1; |
137 | 132 | |
@@ -155,8 +150,7 @@ discard block |
||
155 | 150 | * @param int $b |
156 | 151 | * @return bool |
157 | 152 | */ |
158 | - public function isGreaterThan($b = 0) |
|
159 | - { |
|
153 | + public function isGreaterThan($b = 0) { |
|
160 | 154 | return $this->compareInt($b) > 0; |
161 | 155 | } |
162 | 156 | |
@@ -164,8 +158,7 @@ discard block |
||
164 | 158 | * @param int $b |
165 | 159 | * @return bool |
166 | 160 | */ |
167 | - public function isLessThanInt($b = 0) |
|
168 | - { |
|
161 | + public function isLessThanInt($b = 0) { |
|
169 | 162 | return $this->compareInt($b) < 0; |
170 | 163 | } |
171 | 164 | |
@@ -174,8 +167,7 @@ discard block |
||
174 | 167 | * @param int $lo |
175 | 168 | * @return ParagonIE_Sodium_Core32_Int64 |
176 | 169 | */ |
177 | - public function mask64($hi = 0, $lo = 0) |
|
178 | - { |
|
170 | + public function mask64($hi = 0, $lo = 0) { |
|
179 | 171 | /** @var int $a */ |
180 | 172 | $a = ($hi >> 16) & 0xffff; |
181 | 173 | /** @var int $b */ |
@@ -203,8 +195,7 @@ discard block |
||
203 | 195 | * @throws TypeError |
204 | 196 | * @psalm-suppress MixedAssignment |
205 | 197 | */ |
206 | - public function mulInt($int = 0, $size = 0) |
|
207 | - { |
|
198 | + public function mulInt($int = 0, $size = 0) { |
|
208 | 199 | if (ParagonIE_Sodium_Compat::$fastMult) { |
209 | 200 | return $this->mulIntFast($int); |
210 | 201 | } |
@@ -326,8 +317,7 @@ discard block |
||
326 | 317 | * @param int $baseLog2 |
327 | 318 | * @return array<int, int> |
328 | 319 | */ |
329 | - public function multiplyLong(array $a, array $b, $baseLog2 = 16) |
|
330 | - { |
|
320 | + public function multiplyLong(array $a, array $b, $baseLog2 = 16) { |
|
331 | 321 | $a_l = count($a); |
332 | 322 | $b_l = count($b); |
333 | 323 | /** @var array<int, int> $r */ |
@@ -350,8 +340,7 @@ discard block |
||
350 | 340 | * @param int $int |
351 | 341 | * @return ParagonIE_Sodium_Core32_Int64 |
352 | 342 | */ |
353 | - public function mulIntFast($int) |
|
354 | - { |
|
343 | + public function mulIntFast($int) { |
|
355 | 344 | // Handle negative numbers |
356 | 345 | $aNeg = ($this->limbs[0] >> 15) & 1; |
357 | 346 | $bNeg = ($int >> 31) & 1; |
@@ -410,8 +399,7 @@ discard block |
||
410 | 399 | * @param ParagonIE_Sodium_Core32_Int64 $right |
411 | 400 | * @return ParagonIE_Sodium_Core32_Int64 |
412 | 401 | */ |
413 | - public function mulInt64Fast(ParagonIE_Sodium_Core32_Int64 $right) |
|
414 | - { |
|
402 | + public function mulInt64Fast(ParagonIE_Sodium_Core32_Int64 $right) { |
|
415 | 403 | $aNeg = ($this->limbs[0] >> 15) & 1; |
416 | 404 | $bNeg = ($right->limbs[0] >> 15) & 1; |
417 | 405 | |
@@ -464,8 +452,7 @@ discard block |
||
464 | 452 | * @throws TypeError |
465 | 453 | * @psalm-suppress MixedAssignment |
466 | 454 | */ |
467 | - public function mulInt64(ParagonIE_Sodium_Core32_Int64 $int, $size = 0) |
|
468 | - { |
|
455 | + public function mulInt64(ParagonIE_Sodium_Core32_Int64 $int, $size = 0) { |
|
469 | 456 | if (ParagonIE_Sodium_Compat::$fastMult) { |
470 | 457 | return $this->mulInt64Fast($int); |
471 | 458 | } |
@@ -558,8 +545,7 @@ discard block |
||
558 | 545 | * @param ParagonIE_Sodium_Core32_Int64 $b |
559 | 546 | * @return ParagonIE_Sodium_Core32_Int64 |
560 | 547 | */ |
561 | - public function orInt64(ParagonIE_Sodium_Core32_Int64 $b) |
|
562 | - { |
|
548 | + public function orInt64(ParagonIE_Sodium_Core32_Int64 $b) { |
|
563 | 549 | $return = new ParagonIE_Sodium_Core32_Int64(); |
564 | 550 | $return->unsignedInt = $this->unsignedInt; |
565 | 551 | $return->limbs = array( |
@@ -578,8 +564,7 @@ discard block |
||
578 | 564 | * @throws TypeError |
579 | 565 | * @psalm-suppress MixedArrayAccess |
580 | 566 | */ |
581 | - public function rotateLeft($c = 0) |
|
582 | - { |
|
567 | + public function rotateLeft($c = 0) { |
|
583 | 568 | ParagonIE_Sodium_Core32_Util::declareScalarType($c, 'int', 1); |
584 | 569 | /** @var int $c */ |
585 | 570 | $c = (int) $c; |
@@ -628,8 +613,7 @@ discard block |
||
628 | 613 | * @throws TypeError |
629 | 614 | * @psalm-suppress MixedArrayAccess |
630 | 615 | */ |
631 | - public function rotateRight($c = 0) |
|
632 | - { |
|
616 | + public function rotateRight($c = 0) { |
|
633 | 617 | ParagonIE_Sodium_Core32_Util::declareScalarType($c, 'int', 1); |
634 | 618 | /** @var int $c */ |
635 | 619 | $c = (int) $c; |
@@ -676,8 +660,7 @@ discard block |
||
676 | 660 | * @throws SodiumException |
677 | 661 | * @throws TypeError |
678 | 662 | */ |
679 | - public function shiftLeft($c = 0) |
|
680 | - { |
|
663 | + public function shiftLeft($c = 0) { |
|
681 | 664 | ParagonIE_Sodium_Core32_Util::declareScalarType($c, 'int', 1); |
682 | 665 | /** @var int $c */ |
683 | 666 | $c = (int) $c; |
@@ -730,8 +713,7 @@ discard block |
||
730 | 713 | * @throws SodiumException |
731 | 714 | * @throws TypeError |
732 | 715 | */ |
733 | - public function shiftRight($c = 0) |
|
734 | - { |
|
716 | + public function shiftRight($c = 0) { |
|
735 | 717 | ParagonIE_Sodium_Core32_Util::declareScalarType($c, 'int', 1); |
736 | 718 | $c = (int) $c; |
737 | 719 | /** @var int $c */ |
@@ -796,8 +778,7 @@ discard block |
||
796 | 778 | * @throws SodiumException |
797 | 779 | * @throws TypeError |
798 | 780 | */ |
799 | - public function subInt($int) |
|
800 | - { |
|
781 | + public function subInt($int) { |
|
801 | 782 | ParagonIE_Sodium_Core32_Util::declareScalarType($int, 'int', 1); |
802 | 783 | $int = (int) $int; |
803 | 784 | |
@@ -822,8 +803,7 @@ discard block |
||
822 | 803 | * @param ParagonIE_Sodium_Core32_Int64 $b |
823 | 804 | * @return ParagonIE_Sodium_Core32_Int64 |
824 | 805 | */ |
825 | - public function subInt64(ParagonIE_Sodium_Core32_Int64 $b) |
|
826 | - { |
|
806 | + public function subInt64(ParagonIE_Sodium_Core32_Int64 $b) { |
|
827 | 807 | $return = new ParagonIE_Sodium_Core32_Int64(); |
828 | 808 | $return->unsignedInt = $this->unsignedInt; |
829 | 809 | /** @var int $carry */ |
@@ -844,8 +824,7 @@ discard block |
||
844 | 824 | * @param ParagonIE_Sodium_Core32_Int64 $b |
845 | 825 | * @return ParagonIE_Sodium_Core32_Int64 |
846 | 826 | */ |
847 | - public function xorInt64(ParagonIE_Sodium_Core32_Int64 $b) |
|
848 | - { |
|
827 | + public function xorInt64(ParagonIE_Sodium_Core32_Int64 $b) { |
|
849 | 828 | $return = new ParagonIE_Sodium_Core32_Int64(); |
850 | 829 | $return->unsignedInt = $this->unsignedInt; |
851 | 830 | $return->limbs = array( |
@@ -864,8 +843,7 @@ discard block |
||
864 | 843 | * @throws SodiumException |
865 | 844 | * @throws TypeError |
866 | 845 | */ |
867 | - public static function fromInts($low, $high) |
|
868 | - { |
|
846 | + public static function fromInts($low, $high) { |
|
869 | 847 | ParagonIE_Sodium_Core32_Util::declareScalarType($low, 'int', 1); |
870 | 848 | ParagonIE_Sodium_Core32_Util::declareScalarType($high, 'int', 2); |
871 | 849 | |
@@ -887,8 +865,7 @@ discard block |
||
887 | 865 | * @throws SodiumException |
888 | 866 | * @throws TypeError |
889 | 867 | */ |
890 | - public static function fromInt($low) |
|
891 | - { |
|
868 | + public static function fromInt($low) { |
|
892 | 869 | ParagonIE_Sodium_Core32_Util::declareScalarType($low, 'int', 1); |
893 | 870 | $low = (int) $low; |
894 | 871 | |
@@ -905,8 +882,7 @@ discard block |
||
905 | 882 | /** |
906 | 883 | * @return int |
907 | 884 | */ |
908 | - public function toInt() |
|
909 | - { |
|
885 | + public function toInt() { |
|
910 | 886 | return (int) ( |
911 | 887 | (($this->limbs[2] & 0xffff) << 16) |
912 | 888 | | |
@@ -920,8 +896,7 @@ discard block |
||
920 | 896 | * @throws SodiumException |
921 | 897 | * @throws TypeError |
922 | 898 | */ |
923 | - public static function fromString($string) |
|
924 | - { |
|
899 | + public static function fromString($string) { |
|
925 | 900 | ParagonIE_Sodium_Core32_Util::declareScalarType($string, 'string', 1); |
926 | 901 | $string = (string) $string; |
927 | 902 | if (ParagonIE_Sodium_Core32_Util::strlen($string) !== 8) { |
@@ -948,8 +923,7 @@ discard block |
||
948 | 923 | * @throws SodiumException |
949 | 924 | * @throws TypeError |
950 | 925 | */ |
951 | - public static function fromReverseString($string) |
|
952 | - { |
|
926 | + public static function fromReverseString($string) { |
|
953 | 927 | ParagonIE_Sodium_Core32_Util::declareScalarType($string, 'string', 1); |
954 | 928 | $string = (string) $string; |
955 | 929 | if (ParagonIE_Sodium_Core32_Util::strlen($string) !== 8) { |
@@ -973,8 +947,7 @@ discard block |
||
973 | 947 | /** |
974 | 948 | * @return array<int, int> |
975 | 949 | */ |
976 | - public function toArray() |
|
977 | - { |
|
950 | + public function toArray() { |
|
978 | 951 | return array( |
979 | 952 | (int) ((($this->limbs[0] & 0xffff) << 16) | ($this->limbs[1] & 0xffff)), |
980 | 953 | (int) ((($this->limbs[2] & 0xffff) << 16) | ($this->limbs[3] & 0xffff)) |
@@ -984,8 +957,7 @@ discard block |
||
984 | 957 | /** |
985 | 958 | * @return ParagonIE_Sodium_Core32_Int32 |
986 | 959 | */ |
987 | - public function toInt32() |
|
988 | - { |
|
960 | + public function toInt32() { |
|
989 | 961 | $return = new ParagonIE_Sodium_Core32_Int32(); |
990 | 962 | $return->limbs[0] = (int) ($this->limbs[2]); |
991 | 963 | $return->limbs[1] = (int) ($this->limbs[3]); |
@@ -997,8 +969,7 @@ discard block |
||
997 | 969 | /** |
998 | 970 | * @return ParagonIE_Sodium_Core32_Int64 |
999 | 971 | */ |
1000 | - public function toInt64() |
|
1001 | - { |
|
972 | + public function toInt64() { |
|
1002 | 973 | $return = new ParagonIE_Sodium_Core32_Int64(); |
1003 | 974 | $return->limbs[0] = (int) ($this->limbs[0]); |
1004 | 975 | $return->limbs[1] = (int) ($this->limbs[1]); |
@@ -1013,8 +984,7 @@ discard block |
||
1013 | 984 | * @param bool $bool |
1014 | 985 | * @return self |
1015 | 986 | */ |
1016 | - public function setUnsignedInt($bool = false) |
|
1017 | - { |
|
987 | + public function setUnsignedInt($bool = false) { |
|
1018 | 988 | $this->unsignedInt = !empty($bool); |
1019 | 989 | return $this; |
1020 | 990 | } |
@@ -1023,8 +993,7 @@ discard block |
||
1023 | 993 | * @return string |
1024 | 994 | * @throws TypeError |
1025 | 995 | */ |
1026 | - public function toString() |
|
1027 | - { |
|
996 | + public function toString() { |
|
1028 | 997 | return ParagonIE_Sodium_Core32_Util::intToChr(($this->limbs[0] >> 8) & 0xff) . |
1029 | 998 | ParagonIE_Sodium_Core32_Util::intToChr($this->limbs[0] & 0xff) . |
1030 | 999 | ParagonIE_Sodium_Core32_Util::intToChr(($this->limbs[1] >> 8) & 0xff) . |
@@ -1039,8 +1008,7 @@ discard block |
||
1039 | 1008 | * @return string |
1040 | 1009 | * @throws TypeError |
1041 | 1010 | */ |
1042 | - public function toReverseString() |
|
1043 | - { |
|
1011 | + public function toReverseString() { |
|
1044 | 1012 | return ParagonIE_Sodium_Core32_Util::intToChr($this->limbs[3] & 0xff) . |
1045 | 1013 | ParagonIE_Sodium_Core32_Util::intToChr(($this->limbs[3] >> 8) & 0xff) . |
1046 | 1014 | ParagonIE_Sodium_Core32_Util::intToChr($this->limbs[2] & 0xff) . |
@@ -1054,8 +1022,7 @@ discard block |
||
1054 | 1022 | /** |
1055 | 1023 | * @return string |
1056 | 1024 | */ |
1057 | - public function __toString() |
|
1058 | - { |
|
1025 | + public function __toString() { |
|
1059 | 1026 | try { |
1060 | 1027 | return $this->toString(); |
1061 | 1028 | } catch (TypeError $ex) { |
@@ -7,8 +7,7 @@ discard block |
||
7 | 7 | /** |
8 | 8 | * Class ParagonIE_Sodium_Core32_Salsa20 |
9 | 9 | */ |
10 | -abstract class ParagonIE_Sodium_Core32_Salsa20 extends ParagonIE_Sodium_Core32_Util |
|
11 | -{ |
|
10 | +abstract class ParagonIE_Sodium_Core32_Salsa20 extends ParagonIE_Sodium_Core32_Util { |
|
12 | 11 | const ROUNDS = 20; |
13 | 12 | |
14 | 13 | /** |
@@ -23,8 +22,7 @@ discard block |
||
23 | 22 | * @throws SodiumException |
24 | 23 | * @throws TypeError |
25 | 24 | */ |
26 | - public static function core_salsa20($in, $k, $c = null) |
|
27 | - { |
|
25 | + public static function core_salsa20($in, $k, $c = null) { |
|
28 | 26 | /** |
29 | 27 | * @var ParagonIE_Sodium_Core32_Int32 $x0 |
30 | 28 | * @var ParagonIE_Sodium_Core32_Int32 $x1 |
@@ -190,8 +188,7 @@ discard block |
||
190 | 188 | * @throws SodiumException |
191 | 189 | * @throws TypeError |
192 | 190 | */ |
193 | - public static function salsa20($len, $nonce, $key) |
|
194 | - { |
|
191 | + public static function salsa20($len, $nonce, $key) { |
|
195 | 192 | if (self::strlen($key) !== 32) { |
196 | 193 | throw new RangeException('Key must be 32 bytes long'); |
197 | 194 | } |
@@ -235,8 +232,7 @@ discard block |
||
235 | 232 | * @throws SodiumException |
236 | 233 | * @throws TypeError |
237 | 234 | */ |
238 | - public static function salsa20_xor_ic($m, $n, $ic, $k) |
|
239 | - { |
|
235 | + public static function salsa20_xor_ic($m, $n, $ic, $k) { |
|
240 | 236 | $mlen = self::strlen($m); |
241 | 237 | if ($mlen < 1) { |
242 | 238 | return ''; |
@@ -292,8 +288,7 @@ discard block |
||
292 | 288 | * @throws SodiumException |
293 | 289 | * @throws TypeError |
294 | 290 | */ |
295 | - public static function salsa20_xor($message, $nonce, $key) |
|
296 | - { |
|
291 | + public static function salsa20_xor($message, $nonce, $key) { |
|
297 | 292 | return self::xorStrings( |
298 | 293 | $message, |
299 | 294 | self::salsa20( |
@@ -9,8 +9,7 @@ discard block |
||
9 | 9 | * |
10 | 10 | * This represents a Field Element |
11 | 11 | */ |
12 | -class ParagonIE_Sodium_Core32_Curve25519_Fe implements ArrayAccess |
|
13 | -{ |
|
12 | +class ParagonIE_Sodium_Core32_Curve25519_Fe implements ArrayAccess { |
|
14 | 13 | /** |
15 | 14 | * @var array<int, ParagonIE_Sodium_Core32_Int32> |
16 | 15 | */ |
@@ -30,8 +29,7 @@ discard block |
||
30 | 29 | * @throws SodiumException |
31 | 30 | * @throws TypeError |
32 | 31 | */ |
33 | - public static function fromArray($array, $save_indexes = null) |
|
34 | - { |
|
32 | + public static function fromArray($array, $save_indexes = null) { |
|
35 | 33 | $count = count($array); |
36 | 34 | if ($save_indexes) { |
37 | 35 | $keys = array_keys($array); |
@@ -64,8 +62,7 @@ discard block |
||
64 | 62 | * @throws SodiumException |
65 | 63 | * @throws TypeError |
66 | 64 | */ |
67 | - public static function fromIntArray($array, $save_indexes = null) |
|
68 | - { |
|
65 | + public static function fromIntArray($array, $save_indexes = null) { |
|
69 | 66 | $count = count($array); |
70 | 67 | if ($save_indexes) { |
71 | 68 | $keys = array_keys($array); |
@@ -105,8 +102,7 @@ discard block |
||
105 | 102 | * @throws TypeError |
106 | 103 | */ |
107 | 104 | #[ReturnTypeWillChange] |
108 | - public function offsetSet($offset, $value) |
|
109 | - { |
|
105 | + public function offsetSet($offset, $value) { |
|
110 | 106 | if (!($value instanceof ParagonIE_Sodium_Core32_Int32)) { |
111 | 107 | throw new InvalidArgumentException('Expected an instance of ParagonIE_Sodium_Core32_Int32'); |
112 | 108 | } |
@@ -126,8 +122,7 @@ discard block |
||
126 | 122 | * @psalm-suppress MixedArrayOffset |
127 | 123 | */ |
128 | 124 | #[ReturnTypeWillChange] |
129 | - public function offsetExists($offset) |
|
130 | - { |
|
125 | + public function offsetExists($offset) { |
|
131 | 126 | return isset($this->container[$offset]); |
132 | 127 | } |
133 | 128 | |
@@ -139,8 +134,7 @@ discard block |
||
139 | 134 | * @psalm-suppress MixedArrayOffset |
140 | 135 | */ |
141 | 136 | #[ReturnTypeWillChange] |
142 | - public function offsetUnset($offset) |
|
143 | - { |
|
137 | + public function offsetUnset($offset) { |
|
144 | 138 | unset($this->container[$offset]); |
145 | 139 | } |
146 | 140 | |
@@ -152,8 +146,7 @@ discard block |
||
152 | 146 | * @psalm-suppress MixedArrayOffset |
153 | 147 | */ |
154 | 148 | #[ReturnTypeWillChange] |
155 | - public function offsetGet($offset) |
|
156 | - { |
|
149 | + public function offsetGet($offset) { |
|
157 | 150 | if (!isset($this->container[$offset])) { |
158 | 151 | $this->container[(int) $offset] = new ParagonIE_Sodium_Core32_Int32(); |
159 | 152 | } |
@@ -167,8 +160,7 @@ discard block |
||
167 | 160 | * |
168 | 161 | * @return array |
169 | 162 | */ |
170 | - public function __debugInfo() |
|
171 | - { |
|
163 | + public function __debugInfo() { |
|
172 | 164 | if (empty($this->container)) { |
173 | 165 | return array(); |
174 | 166 | } |
@@ -9,8 +9,7 @@ |
||
9 | 9 | * |
10 | 10 | * This just contains the constants in the ref10/base.h file |
11 | 11 | */ |
12 | -class ParagonIE_Sodium_Core32_Curve25519_H extends ParagonIE_Sodium_Core32_Util |
|
13 | -{ |
|
12 | +class ParagonIE_Sodium_Core32_Curve25519_H extends ParagonIE_Sodium_Core32_Util { |
|
14 | 13 | /** |
15 | 14 | * See: libsodium's crypto_core/curve25519/ref10/base.h |
16 | 15 | * |
@@ -7,8 +7,7 @@ |
||
7 | 7 | /** |
8 | 8 | * Class ParagonIE_Sodium_Core32_Curve25519_Ge_P3 |
9 | 9 | */ |
10 | -class ParagonIE_Sodium_Core32_Curve25519_Ge_P3 |
|
11 | -{ |
|
10 | +class ParagonIE_Sodium_Core32_Curve25519_Ge_P3 { |
|
12 | 11 | /** |
13 | 12 | * @var ParagonIE_Sodium_Core32_Curve25519_Fe |
14 | 13 | */ |
@@ -7,8 +7,7 @@ |
||
7 | 7 | /** |
8 | 8 | * Class ParagonIE_Sodium_Core32_Curve25519_Ge_P2 |
9 | 9 | */ |
10 | -class ParagonIE_Sodium_Core32_Curve25519_Ge_P2 |
|
11 | -{ |
|
10 | +class ParagonIE_Sodium_Core32_Curve25519_Ge_P2 { |
|
12 | 11 | /** |
13 | 12 | * @var ParagonIE_Sodium_Core32_Curve25519_Fe |
14 | 13 | */ |
@@ -6,8 +6,7 @@ |
||
6 | 6 | /** |
7 | 7 | * Class ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1 |
8 | 8 | */ |
9 | -class ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1 |
|
10 | -{ |
|
9 | +class ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1 { |
|
11 | 10 | /** |
12 | 11 | * @var ParagonIE_Sodium_Core32_Curve25519_Fe |
13 | 12 | */ |
@@ -7,8 +7,7 @@ |
||
7 | 7 | /** |
8 | 8 | * Class ParagonIE_Sodium_Core32_Curve25519_Ge_Cached |
9 | 9 | */ |
10 | -class ParagonIE_Sodium_Core32_Curve25519_Ge_Cached |
|
11 | -{ |
|
10 | +class ParagonIE_Sodium_Core32_Curve25519_Ge_Cached { |
|
12 | 11 | /** |
13 | 12 | * @var ParagonIE_Sodium_Core32_Curve25519_Fe |
14 | 13 | */ |
@@ -7,8 +7,7 @@ |
||
7 | 7 | /** |
8 | 8 | * Class ParagonIE_Sodium_Core32_Curve25519_Ge_Precomp |
9 | 9 | */ |
10 | -class ParagonIE_Sodium_Core32_Curve25519_Ge_Precomp |
|
11 | -{ |
|
10 | +class ParagonIE_Sodium_Core32_Curve25519_Ge_Precomp { |
|
12 | 11 | /** |
13 | 12 | * @var ParagonIE_Sodium_Core32_Curve25519_Fe |
14 | 13 | */ |