WordPress at a glance
function is not described

ParagonIE_Sodium_Core_X25519::edwards_to_montgomery() public WP 1.0

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

No Hooks.

Return

ParagonIE_Sodium_Core_Curve25519_Fe. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Core_X25519::edwards_to_montgomery(;

Code of ParagonIE_Sodium_Core_X25519::edwards_to_montgomery() WP 5.7

<?php
public static function edwards_to_montgomery(
    ParagonIE_Sodium_Core_Curve25519_Fe $edwardsY,
    ParagonIE_Sodium_Core_Curve25519_Fe $edwardsZ
) {
    $tempX = self::fe_add($edwardsZ, $edwardsY);
    $tempZ = self::fe_sub($edwardsZ, $edwardsY);
    $tempZ = self::fe_invert($tempZ);
    return self::fe_mul($tempX, $tempZ);
}