author | ymh <ymh.work@gmail.com> |
Mon, 08 Sep 2025 19:44:41 +0200 | |
changeset 23 | 417f20492bf7 |
parent 22 | 8c2e4d02f4ef |
permissions | -rw-r--r-- |
18 | 1 |
<?php |
2 |
||
3 |
if (!defined('SODIUM_CRYPTO_CORE_RISTRETTO255_BYTES')) { |
|
4 |
define( |
|
5 |
'SODIUM_CRYPTO_CORE_RISTRETTO255_BYTES', |
|
6 |
ParagonIE_Sodium_Compat::CRYPTO_CORE_RISTRETTO255_BYTES |
|
7 |
); |
|
8 |
define('SODIUM_COMPAT_POLYFILLED_RISTRETTO255', true); |
|
9 |
} |
|
10 |
if (!defined('SODIUM_CRYPTO_CORE_RISTRETTO255_HASHBYTES')) { |
|
11 |
define( |
|
12 |
'SODIUM_CRYPTO_CORE_RISTRETTO255_HASHBYTES', |
|
13 |
ParagonIE_Sodium_Compat::CRYPTO_CORE_RISTRETTO255_HASHBYTES |
|
14 |
); |
|
15 |
} |
|
16 |
if (!defined('SODIUM_CRYPTO_CORE_RISTRETTO255_SCALARBYTES')) { |
|
17 |
define( |
|
18 |
'SODIUM_CRYPTO_CORE_RISTRETTO255_SCALARBYTES', |
|
19 |
ParagonIE_Sodium_Compat::CRYPTO_CORE_RISTRETTO255_SCALARBYTES |
|
20 |
); |
|
21 |
} |
|
22 |
if (!defined('SODIUM_CRYPTO_CORE_RISTRETTO255_NONREDUCEDSCALARBYTES')) { |
|
23 |
define( |
|
24 |
'SODIUM_CRYPTO_CORE_RISTRETTO255_NONREDUCEDSCALARBYTES', |
|
25 |
ParagonIE_Sodium_Compat::CRYPTO_CORE_RISTRETTO255_NONREDUCEDSCALARBYTES |
|
26 |
); |
|
27 |
} |
|
28 |
if (!defined('SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_SCALARBYTES')) { |
|
29 |
define( |
|
30 |
'SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_SCALARBYTES', |
|
31 |
ParagonIE_Sodium_Compat::CRYPTO_SCALARMULT_RISTRETTO255_SCALARBYTES |
|
32 |
); |
|
33 |
} |
|
34 |
if (!defined('SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_BYTES')) { |
|
35 |
define( |
|
36 |
'SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_BYTES', |
|
37 |
ParagonIE_Sodium_Compat::CRYPTO_SCALARMULT_RISTRETTO255_BYTES |
|
38 |
); |
|
39 |
} |
|
40 |
||
41 |
if (!is_callable('sodium_crypto_core_ristretto255_add')) { |
|
42 |
/** |
|
43 |
* @see ParagonIE_Sodium_Compat::ristretto255_add() |
|
44 |
* |
|
45 |
* @param string $p |
|
46 |
* @param string $q |
|
47 |
* @return string |
|
48 |
* @throws SodiumException |
|
49 |
*/ |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
50 |
function sodium_crypto_core_ristretto255_add( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
51 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
52 |
$p, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
53 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
54 |
$q |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
55 |
) { |
18 | 56 |
return ParagonIE_Sodium_Compat::ristretto255_add($p, $q, true); |
57 |
} |
|
58 |
} |
|
59 |
if (!is_callable('sodium_crypto_core_ristretto255_from_hash')) { |
|
60 |
/** |
|
61 |
* @see ParagonIE_Sodium_Compat::ristretto255_from_hash() |
|
62 |
* |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
63 |
* @param string $s |
18 | 64 |
* @return string |
65 |
* @throws SodiumException |
|
66 |
*/ |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
67 |
function sodium_crypto_core_ristretto255_from_hash( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
68 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
69 |
$s |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
70 |
) { |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
71 |
return ParagonIE_Sodium_Compat::ristretto255_from_hash($s, true); |
18 | 72 |
} |
73 |
} |
|
74 |
if (!is_callable('sodium_crypto_core_ristretto255_is_valid_point')) { |
|
75 |
/** |
|
76 |
* @see ParagonIE_Sodium_Compat::ristretto255_is_valid_point() |
|
77 |
* |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
78 |
* @param string $s |
18 | 79 |
* @return bool |
80 |
* @throws SodiumException |
|
81 |
*/ |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
82 |
function sodium_crypto_core_ristretto255_is_valid_point( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
83 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
84 |
$s |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
85 |
) { |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
86 |
return ParagonIE_Sodium_Compat::ristretto255_is_valid_point($s, true); |
18 | 87 |
} |
88 |
} |
|
89 |
if (!is_callable('sodium_crypto_core_ristretto255_random')) { |
|
90 |
/** |
|
91 |
* @see ParagonIE_Sodium_Compat::ristretto255_random() |
|
92 |
* |
|
93 |
* @return string |
|
94 |
* @throws SodiumException |
|
95 |
*/ |
|
96 |
function sodium_crypto_core_ristretto255_random() |
|
97 |
{ |
|
98 |
return ParagonIE_Sodium_Compat::ristretto255_random(true); |
|
99 |
} |
|
100 |
} |
|
101 |
if (!is_callable('sodium_crypto_core_ristretto255_scalar_add')) { |
|
102 |
/** |
|
103 |
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_add() |
|
104 |
* |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
105 |
* @param string $x |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
106 |
* @param string $y |
18 | 107 |
* @return string |
108 |
* @throws SodiumException |
|
109 |
*/ |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
110 |
function sodium_crypto_core_ristretto255_scalar_add( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
111 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
112 |
$x, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
113 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
114 |
$y |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
115 |
) { |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
116 |
return ParagonIE_Sodium_Compat::ristretto255_scalar_add($x, $y, true); |
18 | 117 |
} |
118 |
} |
|
119 |
if (!is_callable('sodium_crypto_core_ristretto255_scalar_complement')) { |
|
120 |
/** |
|
121 |
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_complement() |
|
122 |
* |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
123 |
* @param string $s |
18 | 124 |
* @return string |
125 |
* @throws SodiumException |
|
126 |
*/ |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
127 |
function sodium_crypto_core_ristretto255_scalar_complement( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
128 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
129 |
$s |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
130 |
) { |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
131 |
return ParagonIE_Sodium_Compat::ristretto255_scalar_complement($s, true); |
18 | 132 |
} |
133 |
} |
|
134 |
if (!is_callable('sodium_crypto_core_ristretto255_scalar_invert')) { |
|
135 |
/** |
|
136 |
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_invert() |
|
137 |
* |
|
138 |
* @param string $p |
|
139 |
* @return string |
|
140 |
* @throws SodiumException |
|
141 |
*/ |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
142 |
function sodium_crypto_core_ristretto255_scalar_invert( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
143 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
144 |
$p |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
145 |
) { |
18 | 146 |
return ParagonIE_Sodium_Compat::ristretto255_scalar_invert($p, true); |
147 |
} |
|
148 |
} |
|
149 |
if (!is_callable('sodium_crypto_core_ristretto255_scalar_mul')) { |
|
150 |
/** |
|
151 |
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_mul() |
|
152 |
* |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
153 |
* @param string $x |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
154 |
* @param string $y |
18 | 155 |
* @return string |
156 |
* @throws SodiumException |
|
157 |
*/ |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
158 |
function sodium_crypto_core_ristretto255_scalar_mul( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
159 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
160 |
$x, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
161 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
162 |
$y |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
163 |
) { |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
164 |
return ParagonIE_Sodium_Compat::ristretto255_scalar_mul($x, $y, true); |
18 | 165 |
} |
166 |
} |
|
167 |
if (!is_callable('sodium_crypto_core_ristretto255_scalar_negate')) { |
|
168 |
/** |
|
169 |
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_negate() |
|
170 |
* |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
171 |
* @param string $s |
18 | 172 |
* @return string |
173 |
* @throws SodiumException |
|
174 |
*/ |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
175 |
function sodium_crypto_core_ristretto255_scalar_negate( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
176 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
177 |
$s |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
178 |
) { |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
179 |
return ParagonIE_Sodium_Compat::ristretto255_scalar_negate($s, true); |
18 | 180 |
} |
181 |
} |
|
182 |
if (!is_callable('sodium_crypto_core_ristretto255_scalar_random')) { |
|
183 |
/** |
|
184 |
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_random() |
|
185 |
* |
|
186 |
* @return string |
|
187 |
* @throws SodiumException |
|
188 |
*/ |
|
189 |
function sodium_crypto_core_ristretto255_scalar_random() |
|
190 |
{ |
|
191 |
return ParagonIE_Sodium_Compat::ristretto255_scalar_random(true); |
|
192 |
} |
|
193 |
} |
|
194 |
if (!is_callable('sodium_crypto_core_ristretto255_scalar_reduce')) { |
|
195 |
/** |
|
196 |
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_reduce() |
|
197 |
* |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
198 |
* @param string $s |
18 | 199 |
* @return string |
200 |
* @throws SodiumException |
|
201 |
*/ |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
202 |
function sodium_crypto_core_ristretto255_scalar_reduce( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
203 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
204 |
$s |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
205 |
) { |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
206 |
return ParagonIE_Sodium_Compat::ristretto255_scalar_reduce($s, true); |
18 | 207 |
} |
208 |
} |
|
209 |
if (!is_callable('sodium_crypto_core_ristretto255_scalar_sub')) { |
|
210 |
/** |
|
211 |
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_sub() |
|
212 |
* |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
213 |
* @param string $x |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
214 |
* @param string $y |
18 | 215 |
* @return string |
216 |
* @throws SodiumException |
|
217 |
*/ |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
218 |
function sodium_crypto_core_ristretto255_scalar_sub( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
219 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
220 |
$x, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
221 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
222 |
$y |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
223 |
) { |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
224 |
return ParagonIE_Sodium_Compat::ristretto255_scalar_sub($x, $y, true); |
18 | 225 |
} |
226 |
} |
|
227 |
if (!is_callable('sodium_crypto_core_ristretto255_sub')) { |
|
228 |
/** |
|
229 |
* @see ParagonIE_Sodium_Compat::ristretto255_sub() |
|
230 |
* |
|
231 |
* @param string $p |
|
232 |
* @param string $q |
|
233 |
* @return string |
|
234 |
* @throws SodiumException |
|
235 |
*/ |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
236 |
function sodium_crypto_core_ristretto255_sub( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
237 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
238 |
$p, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
239 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
240 |
$q |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
241 |
) { |
18 | 242 |
return ParagonIE_Sodium_Compat::ristretto255_sub($p, $q, true); |
243 |
} |
|
244 |
} |
|
245 |
if (!is_callable('sodium_crypto_scalarmult_ristretto255')) { |
|
246 |
/** |
|
247 |
* @see ParagonIE_Sodium_Compat::crypto_scalarmult_ristretto255() |
|
248 |
* @param string $n |
|
249 |
* @param string $p |
|
250 |
* @return string |
|
251 |
* @throws SodiumException |
|
252 |
* @throws TypeError |
|
253 |
*/ |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
254 |
function sodium_crypto_scalarmult_ristretto255( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
255 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
256 |
$n, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
257 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
258 |
$p |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
259 |
) { |
18 | 260 |
return ParagonIE_Sodium_Compat::scalarmult_ristretto255($n, $p, true); |
261 |
} |
|
262 |
} |
|
263 |
if (!is_callable('sodium_crypto_scalarmult_ristretto255_base')) { |
|
264 |
/** |
|
265 |
* @see ParagonIE_Sodium_Compat::crypto_scalarmult_ristretto255_base() |
|
266 |
* @param string $n |
|
267 |
* @return string |
|
268 |
* @throws SodiumException |
|
269 |
* @throws TypeError |
|
270 |
*/ |
|
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
271 |
function sodium_crypto_scalarmult_ristretto255_base( |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
272 |
#[\SensitiveParameter] |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
273 |
$n |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
274 |
) { |
18 | 275 |
return ParagonIE_Sodium_Compat::scalarmult_ristretto255_base($n, true); |
276 |
} |
|
277 |
} |