- Timestamp:
- 07/18/2024 12:58:40 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/lib/ristretto255.php
r54310 r58752 48 48 * @throws SodiumException 49 49 */ 50 function sodium_crypto_core_ristretto255_add($p, $q) 51 { 50 function sodium_crypto_core_ristretto255_add( 51 #[\SensitiveParameter] 52 $p, 53 #[\SensitiveParameter] 54 $q 55 ) { 52 56 return ParagonIE_Sodium_Compat::ristretto255_add($p, $q, true); 53 57 } … … 61 65 * @throws SodiumException 62 66 */ 63 function sodium_crypto_core_ristretto255_from_hash($s) 64 { 67 function sodium_crypto_core_ristretto255_from_hash( 68 #[\SensitiveParameter] 69 $s 70 ) { 65 71 return ParagonIE_Sodium_Compat::ristretto255_from_hash($s, true); 66 72 } … … 74 80 * @throws SodiumException 75 81 */ 76 function sodium_crypto_core_ristretto255_is_valid_point($s) 77 { 82 function sodium_crypto_core_ristretto255_is_valid_point( 83 #[\SensitiveParameter] 84 $s 85 ) { 78 86 return ParagonIE_Sodium_Compat::ristretto255_is_valid_point($s, true); 79 87 } … … 100 108 * @throws SodiumException 101 109 */ 102 function sodium_crypto_core_ristretto255_scalar_add($x, $y) 103 { 110 function sodium_crypto_core_ristretto255_scalar_add( 111 #[\SensitiveParameter] 112 $x, 113 #[\SensitiveParameter] 114 $y 115 ) { 104 116 return ParagonIE_Sodium_Compat::ristretto255_scalar_add($x, $y, true); 105 117 } … … 113 125 * @throws SodiumException 114 126 */ 115 function sodium_crypto_core_ristretto255_scalar_complement($s) 116 { 127 function sodium_crypto_core_ristretto255_scalar_complement( 128 #[\SensitiveParameter] 129 $s 130 ) { 117 131 return ParagonIE_Sodium_Compat::ristretto255_scalar_complement($s, true); 118 132 } … … 126 140 * @throws SodiumException 127 141 */ 128 function sodium_crypto_core_ristretto255_scalar_invert($p) 129 { 142 function sodium_crypto_core_ristretto255_scalar_invert( 143 #[\SensitiveParameter] 144 $p 145 ) { 130 146 return ParagonIE_Sodium_Compat::ristretto255_scalar_invert($p, true); 131 147 } … … 140 156 * @throws SodiumException 141 157 */ 142 function sodium_crypto_core_ristretto255_scalar_mul($x, $y) 143 { 158 function sodium_crypto_core_ristretto255_scalar_mul( 159 #[\SensitiveParameter] 160 $x, 161 #[\SensitiveParameter] 162 $y 163 ) { 144 164 return ParagonIE_Sodium_Compat::ristretto255_scalar_mul($x, $y, true); 145 165 } … … 153 173 * @throws SodiumException 154 174 */ 155 function sodium_crypto_core_ristretto255_scalar_negate($s) 156 { 175 function sodium_crypto_core_ristretto255_scalar_negate( 176 #[\SensitiveParameter] 177 $s 178 ) { 157 179 return ParagonIE_Sodium_Compat::ristretto255_scalar_negate($s, true); 158 180 } … … 178 200 * @throws SodiumException 179 201 */ 180 function sodium_crypto_core_ristretto255_scalar_reduce($s) 181 { 202 function sodium_crypto_core_ristretto255_scalar_reduce( 203 #[\SensitiveParameter] 204 $s 205 ) { 182 206 return ParagonIE_Sodium_Compat::ristretto255_scalar_reduce($s, true); 183 207 } … … 192 216 * @throws SodiumException 193 217 */ 194 function sodium_crypto_core_ristretto255_scalar_sub($x, $y) 195 { 218 function sodium_crypto_core_ristretto255_scalar_sub( 219 #[\SensitiveParameter] 220 $x, 221 #[\SensitiveParameter] 222 $y 223 ) { 196 224 return ParagonIE_Sodium_Compat::ristretto255_scalar_sub($x, $y, true); 197 225 } … … 206 234 * @throws SodiumException 207 235 */ 208 function sodium_crypto_core_ristretto255_sub($p, $q) 209 { 236 function sodium_crypto_core_ristretto255_sub( 237 #[\SensitiveParameter] 238 $p, 239 #[\SensitiveParameter] 240 $q 241 ) { 210 242 return ParagonIE_Sodium_Compat::ristretto255_sub($p, $q, true); 211 243 } … … 220 252 * @throws TypeError 221 253 */ 222 function sodium_crypto_scalarmult_ristretto255($n, $p) 223 { 254 function sodium_crypto_scalarmult_ristretto255( 255 #[\SensitiveParameter] 256 $n, 257 #[\SensitiveParameter] 258 $p 259 ) { 224 260 return ParagonIE_Sodium_Compat::scalarmult_ristretto255($n, $p, true); 225 261 } … … 233 269 * @throws TypeError 234 270 */ 235 function sodium_crypto_scalarmult_ristretto255_base($n) 236 { 271 function sodium_crypto_scalarmult_ristretto255_base( 272 #[\SensitiveParameter] 273 $n 274 ) { 237 275 return ParagonIE_Sodium_Compat::scalarmult_ristretto255_base($n, true); 238 276 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)