Edit File by line
/home/barbar84/public_h.../wp-inclu.../sodium_c.../lib
File: ristretto255.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if (!defined('SODIUM_CRYPTO_CORE_RISTRETTO255_BYTES')) {
[2] Fix | Delete
define(
[3] Fix | Delete
'SODIUM_CRYPTO_CORE_RISTRETTO255_BYTES',
[4] Fix | Delete
ParagonIE_Sodium_Compat::CRYPTO_CORE_RISTRETTO255_BYTES
[5] Fix | Delete
);
[6] Fix | Delete
define('SODIUM_COMPAT_POLYFILLED_RISTRETTO255', true);
[7] Fix | Delete
}
[8] Fix | Delete
if (!defined('SODIUM_CRYPTO_CORE_RISTRETTO255_HASHBYTES')) {
[9] Fix | Delete
define(
[10] Fix | Delete
'SODIUM_CRYPTO_CORE_RISTRETTO255_HASHBYTES',
[11] Fix | Delete
ParagonIE_Sodium_Compat::CRYPTO_CORE_RISTRETTO255_HASHBYTES
[12] Fix | Delete
);
[13] Fix | Delete
}
[14] Fix | Delete
if (!defined('SODIUM_CRYPTO_CORE_RISTRETTO255_SCALARBYTES')) {
[15] Fix | Delete
define(
[16] Fix | Delete
'SODIUM_CRYPTO_CORE_RISTRETTO255_SCALARBYTES',
[17] Fix | Delete
ParagonIE_Sodium_Compat::CRYPTO_CORE_RISTRETTO255_SCALARBYTES
[18] Fix | Delete
);
[19] Fix | Delete
}
[20] Fix | Delete
if (!defined('SODIUM_CRYPTO_CORE_RISTRETTO255_NONREDUCEDSCALARBYTES')) {
[21] Fix | Delete
define(
[22] Fix | Delete
'SODIUM_CRYPTO_CORE_RISTRETTO255_NONREDUCEDSCALARBYTES',
[23] Fix | Delete
ParagonIE_Sodium_Compat::CRYPTO_CORE_RISTRETTO255_NONREDUCEDSCALARBYTES
[24] Fix | Delete
);
[25] Fix | Delete
}
[26] Fix | Delete
if (!defined('SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_SCALARBYTES')) {
[27] Fix | Delete
define(
[28] Fix | Delete
'SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_SCALARBYTES',
[29] Fix | Delete
ParagonIE_Sodium_Compat::CRYPTO_SCALARMULT_RISTRETTO255_SCALARBYTES
[30] Fix | Delete
);
[31] Fix | Delete
}
[32] Fix | Delete
if (!defined('SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_BYTES')) {
[33] Fix | Delete
define(
[34] Fix | Delete
'SODIUM_CRYPTO_SCALARMULT_RISTRETTO255_BYTES',
[35] Fix | Delete
ParagonIE_Sodium_Compat::CRYPTO_SCALARMULT_RISTRETTO255_BYTES
[36] Fix | Delete
);
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
if (!is_callable('sodium_crypto_core_ristretto255_add')) {
[40] Fix | Delete
/**
[41] Fix | Delete
* @see ParagonIE_Sodium_Compat::ristretto255_add()
[42] Fix | Delete
*
[43] Fix | Delete
* @param string $p
[44] Fix | Delete
* @param string $q
[45] Fix | Delete
* @return string
[46] Fix | Delete
* @throws SodiumException
[47] Fix | Delete
*/
[48] Fix | Delete
function sodium_crypto_core_ristretto255_add($p, $q)
[49] Fix | Delete
{
[50] Fix | Delete
return ParagonIE_Sodium_Compat::ristretto255_add($p, $q, true);
[51] Fix | Delete
}
[52] Fix | Delete
}
[53] Fix | Delete
if (!is_callable('sodium_crypto_core_ristretto255_from_hash')) {
[54] Fix | Delete
/**
[55] Fix | Delete
* @see ParagonIE_Sodium_Compat::ristretto255_from_hash()
[56] Fix | Delete
*
[57] Fix | Delete
* @param string $r
[58] Fix | Delete
* @return string
[59] Fix | Delete
* @throws SodiumException
[60] Fix | Delete
*/
[61] Fix | Delete
function sodium_crypto_core_ristretto255_from_hash($r)
[62] Fix | Delete
{
[63] Fix | Delete
return ParagonIE_Sodium_Compat::ristretto255_from_hash($r, true);
[64] Fix | Delete
}
[65] Fix | Delete
}
[66] Fix | Delete
if (!is_callable('sodium_crypto_core_ristretto255_is_valid_point')) {
[67] Fix | Delete
/**
[68] Fix | Delete
* @see ParagonIE_Sodium_Compat::ristretto255_is_valid_point()
[69] Fix | Delete
*
[70] Fix | Delete
* @param string $p
[71] Fix | Delete
* @return bool
[72] Fix | Delete
* @throws SodiumException
[73] Fix | Delete
*/
[74] Fix | Delete
function sodium_crypto_core_ristretto255_is_valid_point($p)
[75] Fix | Delete
{
[76] Fix | Delete
return ParagonIE_Sodium_Compat::ristretto255_is_valid_point($p, true);
[77] Fix | Delete
}
[78] Fix | Delete
}
[79] Fix | Delete
if (!is_callable('sodium_crypto_core_ristretto255_random')) {
[80] Fix | Delete
/**
[81] Fix | Delete
* @see ParagonIE_Sodium_Compat::ristretto255_random()
[82] Fix | Delete
*
[83] Fix | Delete
* @return string
[84] Fix | Delete
* @throws SodiumException
[85] Fix | Delete
*/
[86] Fix | Delete
function sodium_crypto_core_ristretto255_random()
[87] Fix | Delete
{
[88] Fix | Delete
return ParagonIE_Sodium_Compat::ristretto255_random(true);
[89] Fix | Delete
}
[90] Fix | Delete
}
[91] Fix | Delete
if (!is_callable('sodium_crypto_core_ristretto255_scalar_add')) {
[92] Fix | Delete
/**
[93] Fix | Delete
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_add()
[94] Fix | Delete
*
[95] Fix | Delete
* @param string $p
[96] Fix | Delete
* @param string $q
[97] Fix | Delete
* @return string
[98] Fix | Delete
* @throws SodiumException
[99] Fix | Delete
*/
[100] Fix | Delete
function sodium_crypto_core_ristretto255_scalar_add($p, $q)
[101] Fix | Delete
{
[102] Fix | Delete
return ParagonIE_Sodium_Compat::ristretto255_scalar_add($p, $q, true);
[103] Fix | Delete
}
[104] Fix | Delete
}
[105] Fix | Delete
if (!is_callable('sodium_crypto_core_ristretto255_scalar_complement')) {
[106] Fix | Delete
/**
[107] Fix | Delete
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_complement()
[108] Fix | Delete
*
[109] Fix | Delete
* @param string $p
[110] Fix | Delete
* @return string
[111] Fix | Delete
* @throws SodiumException
[112] Fix | Delete
*/
[113] Fix | Delete
function sodium_crypto_core_ristretto255_scalar_complement($p)
[114] Fix | Delete
{
[115] Fix | Delete
return ParagonIE_Sodium_Compat::ristretto255_scalar_complement($p, true);
[116] Fix | Delete
}
[117] Fix | Delete
}
[118] Fix | Delete
if (!is_callable('sodium_crypto_core_ristretto255_scalar_invert')) {
[119] Fix | Delete
/**
[120] Fix | Delete
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_invert()
[121] Fix | Delete
*
[122] Fix | Delete
* @param string $p
[123] Fix | Delete
* @return string
[124] Fix | Delete
* @throws SodiumException
[125] Fix | Delete
*/
[126] Fix | Delete
function sodium_crypto_core_ristretto255_scalar_invert($p)
[127] Fix | Delete
{
[128] Fix | Delete
return ParagonIE_Sodium_Compat::ristretto255_scalar_invert($p, true);
[129] Fix | Delete
}
[130] Fix | Delete
}
[131] Fix | Delete
if (!is_callable('sodium_crypto_core_ristretto255_scalar_mul')) {
[132] Fix | Delete
/**
[133] Fix | Delete
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_mul()
[134] Fix | Delete
*
[135] Fix | Delete
* @param string $p
[136] Fix | Delete
* @param string $q
[137] Fix | Delete
* @return string
[138] Fix | Delete
* @throws SodiumException
[139] Fix | Delete
*/
[140] Fix | Delete
function sodium_crypto_core_ristretto255_scalar_mul($p, $q)
[141] Fix | Delete
{
[142] Fix | Delete
return ParagonIE_Sodium_Compat::ristretto255_scalar_mul($p, $q, true);
[143] Fix | Delete
}
[144] Fix | Delete
}
[145] Fix | Delete
if (!is_callable('sodium_crypto_core_ristretto255_scalar_negate')) {
[146] Fix | Delete
/**
[147] Fix | Delete
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_negate()
[148] Fix | Delete
*
[149] Fix | Delete
* @param string $p
[150] Fix | Delete
* @return string
[151] Fix | Delete
* @throws SodiumException
[152] Fix | Delete
*/
[153] Fix | Delete
function sodium_crypto_core_ristretto255_scalar_negate($p)
[154] Fix | Delete
{
[155] Fix | Delete
return ParagonIE_Sodium_Compat::ristretto255_scalar_negate($p, true);
[156] Fix | Delete
}
[157] Fix | Delete
}
[158] Fix | Delete
if (!is_callable('sodium_crypto_core_ristretto255_scalar_random')) {
[159] Fix | Delete
/**
[160] Fix | Delete
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_random()
[161] Fix | Delete
*
[162] Fix | Delete
* @return string
[163] Fix | Delete
* @throws SodiumException
[164] Fix | Delete
*/
[165] Fix | Delete
function sodium_crypto_core_ristretto255_scalar_random()
[166] Fix | Delete
{
[167] Fix | Delete
return ParagonIE_Sodium_Compat::ristretto255_scalar_random(true);
[168] Fix | Delete
}
[169] Fix | Delete
}
[170] Fix | Delete
if (!is_callable('sodium_crypto_core_ristretto255_scalar_reduce')) {
[171] Fix | Delete
/**
[172] Fix | Delete
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_reduce()
[173] Fix | Delete
*
[174] Fix | Delete
* @param string $p
[175] Fix | Delete
* @return string
[176] Fix | Delete
* @throws SodiumException
[177] Fix | Delete
*/
[178] Fix | Delete
function sodium_crypto_core_ristretto255_scalar_reduce($p)
[179] Fix | Delete
{
[180] Fix | Delete
return ParagonIE_Sodium_Compat::ristretto255_scalar_reduce($p, true);
[181] Fix | Delete
}
[182] Fix | Delete
}
[183] Fix | Delete
if (!is_callable('sodium_crypto_core_ristretto255_scalar_sub')) {
[184] Fix | Delete
/**
[185] Fix | Delete
* @see ParagonIE_Sodium_Compat::ristretto255_scalar_sub()
[186] Fix | Delete
*
[187] Fix | Delete
* @param string $p
[188] Fix | Delete
* @param string $q
[189] Fix | Delete
* @return string
[190] Fix | Delete
* @throws SodiumException
[191] Fix | Delete
*/
[192] Fix | Delete
function sodium_crypto_core_ristretto255_scalar_sub($p, $q)
[193] Fix | Delete
{
[194] Fix | Delete
return ParagonIE_Sodium_Compat::ristretto255_scalar_sub($p, $q, true);
[195] Fix | Delete
}
[196] Fix | Delete
}
[197] Fix | Delete
if (!is_callable('sodium_crypto_core_ristretto255_sub')) {
[198] Fix | Delete
/**
[199] Fix | Delete
* @see ParagonIE_Sodium_Compat::ristretto255_sub()
[200] Fix | Delete
*
[201] Fix | Delete
* @param string $p
[202] Fix | Delete
* @param string $q
[203] Fix | Delete
* @return string
[204] Fix | Delete
* @throws SodiumException
[205] Fix | Delete
*/
[206] Fix | Delete
function sodium_crypto_core_ristretto255_sub($p, $q)
[207] Fix | Delete
{
[208] Fix | Delete
return ParagonIE_Sodium_Compat::ristretto255_sub($p, $q, true);
[209] Fix | Delete
}
[210] Fix | Delete
}
[211] Fix | Delete
if (!is_callable('sodium_crypto_scalarmult_ristretto255')) {
[212] Fix | Delete
/**
[213] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_scalarmult_ristretto255()
[214] Fix | Delete
* @param string $n
[215] Fix | Delete
* @param string $p
[216] Fix | Delete
* @return string
[217] Fix | Delete
* @throws SodiumException
[218] Fix | Delete
* @throws TypeError
[219] Fix | Delete
*/
[220] Fix | Delete
function sodium_crypto_scalarmult_ristretto255($n, $p)
[221] Fix | Delete
{
[222] Fix | Delete
return ParagonIE_Sodium_Compat::scalarmult_ristretto255($n, $p, true);
[223] Fix | Delete
}
[224] Fix | Delete
}
[225] Fix | Delete
if (!is_callable('sodium_crypto_scalarmult_ristretto255_base')) {
[226] Fix | Delete
/**
[227] Fix | Delete
* @see ParagonIE_Sodium_Compat::crypto_scalarmult_ristretto255_base()
[228] Fix | Delete
* @param string $n
[229] Fix | Delete
* @return string
[230] Fix | Delete
* @throws SodiumException
[231] Fix | Delete
* @throws TypeError
[232] Fix | Delete
*/
[233] Fix | Delete
function sodium_crypto_scalarmult_ristretto255_base($n)
[234] Fix | Delete
{
[235] Fix | Delete
return ParagonIE_Sodium_Compat::scalarmult_ristretto255_base($n, true);
[236] Fix | Delete
}
[237] Fix | Delete
}
[238] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function