- Timestamp:
- 09/26/2022 01:58:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/lib/ristretto255.php
r51002 r54310 57 57 * @see ParagonIE_Sodium_Compat::ristretto255_from_hash() 58 58 * 59 * @param string $ r60 * @return string 61 * @throws SodiumException 62 */ 63 function sodium_crypto_core_ristretto255_from_hash($ r)64 { 65 return ParagonIE_Sodium_Compat::ristretto255_from_hash($ r, true);59 * @param string $s 60 * @return string 61 * @throws SodiumException 62 */ 63 function sodium_crypto_core_ristretto255_from_hash($s) 64 { 65 return ParagonIE_Sodium_Compat::ristretto255_from_hash($s, true); 66 66 } 67 67 } … … 70 70 * @see ParagonIE_Sodium_Compat::ristretto255_is_valid_point() 71 71 * 72 * @param string $ p72 * @param string $s 73 73 * @return bool 74 74 * @throws SodiumException 75 75 */ 76 function sodium_crypto_core_ristretto255_is_valid_point($ p)77 { 78 return ParagonIE_Sodium_Compat::ristretto255_is_valid_point($ p, true);76 function sodium_crypto_core_ristretto255_is_valid_point($s) 77 { 78 return ParagonIE_Sodium_Compat::ristretto255_is_valid_point($s, true); 79 79 } 80 80 } … … 95 95 * @see ParagonIE_Sodium_Compat::ristretto255_scalar_add() 96 96 * 97 * @param string $ p98 * @param string $ q99 * @return string 100 * @throws SodiumException 101 */ 102 function sodium_crypto_core_ristretto255_scalar_add($ p, $q)103 { 104 return ParagonIE_Sodium_Compat::ristretto255_scalar_add($ p, $q, true);97 * @param string $x 98 * @param string $y 99 * @return string 100 * @throws SodiumException 101 */ 102 function sodium_crypto_core_ristretto255_scalar_add($x, $y) 103 { 104 return ParagonIE_Sodium_Compat::ristretto255_scalar_add($x, $y, true); 105 105 } 106 106 } … … 109 109 * @see ParagonIE_Sodium_Compat::ristretto255_scalar_complement() 110 110 * 111 * @param string $ p112 * @return string 113 * @throws SodiumException 114 */ 115 function sodium_crypto_core_ristretto255_scalar_complement($ p)116 { 117 return ParagonIE_Sodium_Compat::ristretto255_scalar_complement($ p, true);111 * @param string $s 112 * @return string 113 * @throws SodiumException 114 */ 115 function sodium_crypto_core_ristretto255_scalar_complement($s) 116 { 117 return ParagonIE_Sodium_Compat::ristretto255_scalar_complement($s, true); 118 118 } 119 119 } … … 135 135 * @see ParagonIE_Sodium_Compat::ristretto255_scalar_mul() 136 136 * 137 * @param string $ p138 * @param string $ q139 * @return string 140 * @throws SodiumException 141 */ 142 function sodium_crypto_core_ristretto255_scalar_mul($ p, $q)143 { 144 return ParagonIE_Sodium_Compat::ristretto255_scalar_mul($ p, $q, true);137 * @param string $x 138 * @param string $y 139 * @return string 140 * @throws SodiumException 141 */ 142 function sodium_crypto_core_ristretto255_scalar_mul($x, $y) 143 { 144 return ParagonIE_Sodium_Compat::ristretto255_scalar_mul($x, $y, true); 145 145 } 146 146 } … … 149 149 * @see ParagonIE_Sodium_Compat::ristretto255_scalar_negate() 150 150 * 151 * @param string $ p152 * @return string 153 * @throws SodiumException 154 */ 155 function sodium_crypto_core_ristretto255_scalar_negate($ p)156 { 157 return ParagonIE_Sodium_Compat::ristretto255_scalar_negate($ p, true);151 * @param string $s 152 * @return string 153 * @throws SodiumException 154 */ 155 function sodium_crypto_core_ristretto255_scalar_negate($s) 156 { 157 return ParagonIE_Sodium_Compat::ristretto255_scalar_negate($s, true); 158 158 } 159 159 } … … 174 174 * @see ParagonIE_Sodium_Compat::ristretto255_scalar_reduce() 175 175 * 176 * @param string $ p177 * @return string 178 * @throws SodiumException 179 */ 180 function sodium_crypto_core_ristretto255_scalar_reduce($ p)181 { 182 return ParagonIE_Sodium_Compat::ristretto255_scalar_reduce($ p, true);176 * @param string $s 177 * @return string 178 * @throws SodiumException 179 */ 180 function sodium_crypto_core_ristretto255_scalar_reduce($s) 181 { 182 return ParagonIE_Sodium_Compat::ristretto255_scalar_reduce($s, true); 183 183 } 184 184 } … … 187 187 * @see ParagonIE_Sodium_Compat::ristretto255_scalar_sub() 188 188 * 189 * @param string $ p190 * @param string $ q191 * @return string 192 * @throws SodiumException 193 */ 194 function sodium_crypto_core_ristretto255_scalar_sub($ p, $q)195 { 196 return ParagonIE_Sodium_Compat::ristretto255_scalar_sub($ p, $q, true);189 * @param string $x 190 * @param string $y 191 * @return string 192 * @throws SodiumException 193 */ 194 function sodium_crypto_core_ristretto255_scalar_sub($x, $y) 195 { 196 return ParagonIE_Sodium_Compat::ristretto255_scalar_sub($x, $y, true); 197 197 } 198 198 }
Note: See TracChangeset
for help on using the changeset viewer.