WordPress at a glance
function is not described

ParagonIE_Sodium_Core_Curve25519::ge_p3_tobytes() public WP 1.0

{} It's a method of the class: ParagonIE_Sodium_Core_Curve25519{}

No Hooks.

Return

String. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Core_Curve25519::ge_p3_tobytes( $h );
$h(ParagonIE_Sodium_Core_Curve25519_Ge_P3) (required)
-

Code of ParagonIE_Sodium_Core_Curve25519::ge_p3_tobytes() WP 5.7.1

<?php
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;
}