|
static | fe_0 () |
|
static | fe_1 () |
|
static | fe_copy (ParagonIE_Sodium_Core_Curve25519_Fe $f) |
|
static | fe_frombytes ($s) |
|
static | fe_isnegative (ParagonIE_Sodium_Core_Curve25519_Fe $f) |
|
static | fe_mul (ParagonIE_Sodium_Core_Curve25519_Fe $f, ParagonIE_Sodium_Core_Curve25519_Fe $g) |
|
static | fe_neg (ParagonIE_Sodium_Core_Curve25519_Fe $f) |
|
static | fe_sq (ParagonIE_Sodium_Core_Curve25519_Fe $f) |
|
static | fe_sq2 (ParagonIE_Sodium_Core_Curve25519_Fe $f) |
|
static | fe_invert (ParagonIE_Sodium_Core_Curve25519_Fe $Z) |
|
static | fe_pow22523 (ParagonIE_Sodium_Core_Curve25519_Fe $z) |
|
static | fe_sub (ParagonIE_Sodium_Core_Curve25519_Fe $f, ParagonIE_Sodium_Core_Curve25519_Fe $g) |
|
static | ge_add (ParagonIE_Sodium_Core_Curve25519_Ge_P3 $p, ParagonIE_Sodium_Core_Curve25519_Ge_Cached $q) |
|
static | ge_madd (ParagonIE_Sodium_Core_Curve25519_Ge_P1p1 $R, ParagonIE_Sodium_Core_Curve25519_Ge_P3 $p, ParagonIE_Sodium_Core_Curve25519_Ge_Precomp $q) |
|
static | ge_msub (ParagonIE_Sodium_Core_Curve25519_Ge_P1p1 $R, ParagonIE_Sodium_Core_Curve25519_Ge_P3 $p, ParagonIE_Sodium_Core_Curve25519_Ge_Precomp $q) |
|
static | ge_p1p1_to_p2 (ParagonIE_Sodium_Core_Curve25519_Ge_P1p1 $p) |
|
static | ge_p1p1_to_p3 (ParagonIE_Sodium_Core_Curve25519_Ge_P1p1 $p) |
|
static | ge_p2_0 () |
|
static | ge_p2_dbl (ParagonIE_Sodium_Core_Curve25519_Ge_P2 $p) |
|
static | ge_p3_0 () |
|
static | ge_p3_to_p2 (ParagonIE_Sodium_Core_Curve25519_Ge_P3 $p) |
|
static | ge_p3_tobytes (ParagonIE_Sodium_Core_Curve25519_Ge_P3 $h) |
|
static | ge_p3_dbl (ParagonIE_Sodium_Core_Curve25519_Ge_P3 $p) |
|
static | ge_precomp_0 () |
|
static | equal ($b, $c) |
|
static | negative ($char) |
|
static | cmov (ParagonIE_Sodium_Core_Curve25519_Ge_Precomp $t, ParagonIE_Sodium_Core_Curve25519_Ge_Precomp $u, $b) |
|
static | ge_cmov_cached (ParagonIE_Sodium_Core_Curve25519_Ge_Cached $t, ParagonIE_Sodium_Core_Curve25519_Ge_Cached $u, $b) |
|
static | ge_cmov8_cached (array $cached, $b) |
|
static | ge_sub (ParagonIE_Sodium_Core_Curve25519_Ge_P3 $p, ParagonIE_Sodium_Core_Curve25519_Ge_Cached $q) |
|
static | ge_tobytes (ParagonIE_Sodium_Core_Curve25519_Ge_P2 $h) |
|
static | sc25519_mul ($a, $b) |
|
static | sc25519_sq ($s) |
|
static | sc25519_sqmul ($s, $n, $a) |
|
static | sc25519_invert ($s) |
|
static | clamp ($s) |
|
static | fe_normalize (ParagonIE_Sodium_Core_Curve25519_Fe $f) |
|
static | compare ($left, $right, $len=null) |
|
static | declareScalarType (&$mixedVar=null, $type='void', $argumentIndex=0) |
|
static | intToChr ($int) |
|
static | memcmp ($left, $right) |
|
static | strlen ($str) |
|
static | substr ($str, $start=0, $length=null) |
|
static | verify_16 ($a, $b) |
|
static | verify_32 ($a, $b) |
|
static | xorStrings ($a, $b) |
|
Class ParagonIE_Sodium_Core_Curve25519
Implements Curve25519 core functions
Based on the ref10 curve25519 code provided by libsodium
https://github.com/jedisct1/libsodium/blob/master/src/libsodium/crypto_core/curve25519/ref10/curve25519_ref10.c
Subtract two field elements.
h = f - g
Preconditions: |f| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc. |g| bounded by 1.1*2^25,1.1*2^24,1.1*2^25,1.1*2^24,etc.
Postconditions: |h| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc.
Références $g.