ParagonIE_Sodium_Core_Curve25519::ge_p3_tobytes()
{} Это метод класса: ParagonIE_Sodium_Core_Curve25519{}
Хуков нет.
Возвращает
Строку
.
Использование
$result = ParagonIE_Sodium_Core_Curve25519::ge_p3_tobytes( $h );
- $h(ParagonIE_Sodium_Core_Curve25519_Ge_P3) (обязательный)
- -
Код ParagonIE_Sodium_Core_Curve25519::ge_p3_tobytes() ParagonIE Sodium Core Curve25519::ge p3 tobytes WP 6.0
public static function ge_p3_tobytes(ParagonIE_Sodium_Core_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; }