ParagonIE_Sodium_Core32_Curve25519::ge_p3_tobytes() public WP 1.0
{} Это метод класса: ParagonIE_Sodium_Core32_Curve25519{}
Хуков нет.
Возвращает
Строку
. Null. Ничего.
Использование
$result = ParagonIE_Sodium_Core32_Curve25519::ge_p3_tobytes( $h );
- $h(ParagonIE_Sodium_Core32_Curve25519_Ge_P3) (обязательный)
- -
Код ParagonIE_Sodium_Core32_Curve25519::ge_p3_tobytes() ParagonIE Sodium Core32 Curve25519::ge p3 tobytes WP 5.7
public static function ge_p3_tobytes(ParagonIE_Sodium_Core32_Curve25519_Ge_P3 $h)
{
$recip = self::fe_invert($h->Z);
$x = self::fe_mul($h->X, $recip);
$y = self::fe_mul($h->Y, $recip);
$s = self::fe_tobytes($y);
$s[31] = self::intToChr(
self::chrToInt($s[31]) ^ (self::fe_isnegative($x) << 7)
);
return $s;
}