Joomla CMS  3.8.5 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.8.5 et du framework Joomla Platform intégré
Référence de la classe ParagonIE_Sodium_Core_Curve25519
+ Graphe d'héritage de ParagonIE_Sodium_Core_Curve25519:

Fonctions membres publiques statiques

static fe_0 ()
 
static fe_1 ()
 
static fe_add (ParagonIE_Sodium_Core_Curve25519_Fe $f, ParagonIE_Sodium_Core_Curve25519_Fe $g)
 
static fe_cmov (ParagonIE_Sodium_Core_Curve25519_Fe $f, ParagonIE_Sodium_Core_Curve25519_Fe $g, $b=0)
 
static fe_copy (ParagonIE_Sodium_Core_Curve25519_Fe $f)
 
static fe_frombytes ($s)
 
static fe_isnegative (ParagonIE_Sodium_Core_Curve25519_Fe $f)
 
static fe_isnonzero (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 slide ($a)
 
static ge_frombytes_negate_vartime ($s)
 
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_cached (ParagonIE_Sodium_Core_Curve25519_Ge_P3 $p)
 
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_select ($pos=0, $b=0)
 
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 ge_scalarmult_base ($a)
 
- Fonctions membres publiques statiques hérités de ParagonIE_Sodium_Core_Util
static bin2hex ($binaryString)
 
static chrToInt ($chr)
 
static compare ($left, $right, $len=null)
 
static declareScalarType (&$mixedVar=null, $type='void', $argumentIndex=0)
 
static hashEquals ($left, $right)
 
static hex2bin ($hexString, $strictPadding=false)
 
static intArrayToString (array $ints)
 
static intToChr ($int)
 
static load_3 ($string)
 
static load_4 ($string)
 
static load64_le ($string)
 
static memcmp ($left, $right)
 
static numericTo64BitInteger ($num)
 
static store_3 ($int)
 
static store32_le ($int)
 
static store_4 ($int)
 
static store64_le ($int)
 
static strlen ($str)
 
static substr ($str, $start=0, $length=null)
 
static verify_16 ($a, $b)
 
static verify_32 ($a, $b)
 
static xorStrings ($a, $b)
 

Membres hérités additionnels

- Fonctions membres protégées statiques hérités de ParagonIE_Sodium_Core_Util
static isMbStringOverride ()
 
- Attributs protégés statiques hérités de ParagonIE_Sodium_Core_Curve25519_H
static $base
 
static $base2
 
static $d
 
static $d2
 
static $sqrtm1
 

Description détaillée

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

Documentation des fonctions membres

◆ cmov()

Conditional move

Références $b.

◆ equal()

static equal (   $b,
  $c 
)
static

Références $b.

◆ fe_0()

static fe_0 ( )
static

Get a field element of size 10 with a value of 0

Références ParagonIE_Sodium_Core_Curve25519_Fe\fromArray().

◆ fe_1()

static fe_1 ( )
static

Get a field element of size 10 with a value of 1

Références ParagonIE_Sodium_Core_Curve25519_Fe\fromArray().

◆ fe_add()

Add two field elements.

Références $g, $i, et ParagonIE_Sodium_Core_Curve25519_Fe\fromArray().

◆ fe_cmov()

static fe_cmov ( ParagonIE_Sodium_Core_Curve25519_Fe  $f,
ParagonIE_Sodium_Core_Curve25519_Fe  $g,
  $b = 0 
)
static

Constant-time conditional move.

Références $b, $g, $i, et ParagonIE_Sodium_Core_Curve25519_Fe\fromArray().

◆ fe_copy()

static fe_copy ( ParagonIE_Sodium_Core_Curve25519_Fe  $f)
static

Create a copy of a field element.

◆ fe_frombytes()

static fe_frombytes (   $s)
static

Give: 32-byte string. Receive: A field element object to use for internal calculations.

Références ParagonIE_Sodium_Core_Curve25519_Fe\fromArray().

◆ fe_invert()

static fe_invert ( ParagonIE_Sodium_Core_Curve25519_Fe  $Z)
static

Références $i.

◆ fe_isnegative()

static fe_isnegative ( ParagonIE_Sodium_Core_Curve25519_Fe  $f)
static

Is a field element negative? (1 = yes, 0 = no. Used in calculations.)

◆ fe_isnonzero()

static fe_isnonzero ( ParagonIE_Sodium_Core_Curve25519_Fe  $f)
static

Returns 0 if this field element results in all NUL bytes.

Références null.

◆ fe_mul()

Multiply two field elements

h = f * g

Références $g, et ParagonIE_Sodium_Core_Curve25519_Fe\fromArray().

◆ fe_neg()

static fe_neg ( ParagonIE_Sodium_Core_Curve25519_Fe  $f)
static

Get the negative values for each piece of the field element.

h = -f

Références $i.

◆ fe_pow22523()

static fe_pow22523 ( ParagonIE_Sodium_Core_Curve25519_Fe  $z)
static

Références $i.

◆ fe_sq()

static fe_sq ( ParagonIE_Sodium_Core_Curve25519_Fe  $f)
static

Square a field element

h = f * f

Références ParagonIE_Sodium_Core_Curve25519_Fe\fromArray().

◆ fe_sq2()

static fe_sq2 ( ParagonIE_Sodium_Core_Curve25519_Fe  $f)
static

Square and double a field element

h = 2 * f * f

Références ParagonIE_Sodium_Core_Curve25519_Fe\fromArray().

◆ fe_sub()

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, et ParagonIE_Sodium_Core_Curve25519_Fe\fromArray().

◆ ge_add()

Add two group elements.

r = p + q

Références $r.

◆ ge_frombytes_negate_vartime()

static ge_frombytes_negate_vartime (   $s)
static

◆ ge_madd()

◆ ge_msub()

◆ ge_p1p1_to_p2()

static ge_p1p1_to_p2 ( ParagonIE_Sodium_Core_Curve25519_Ge_P1p1  $p)
static

Références $r.

◆ ge_p1p1_to_p3()

static ge_p1p1_to_p3 ( ParagonIE_Sodium_Core_Curve25519_Ge_P1p1  $p)
static

Références $r.

◆ ge_p2_0()

static ge_p2_0 ( )
static

◆ ge_p2_dbl()

static ge_p2_dbl ( ParagonIE_Sodium_Core_Curve25519_Ge_P2  $p)
static

Références $r.

◆ ge_p3_0()

static ge_p3_0 ( )
static

◆ ge_p3_dbl()

static ge_p3_dbl ( ParagonIE_Sodium_Core_Curve25519_Ge_P3  $p)
static

◆ ge_p3_to_cached()

◆ ge_p3_to_p2()

static ge_p3_to_p2 ( ParagonIE_Sodium_Core_Curve25519_Ge_P3  $p)
static

◆ ge_p3_tobytes()

static ge_p3_tobytes ( ParagonIE_Sodium_Core_Curve25519_Ge_P3  $h)
static

◆ ge_precomp_0()

static ge_precomp_0 ( )
static

◆ ge_scalarmult_base()

static ge_scalarmult_base (   $a)
static

Références $i, et $r.

◆ ge_select()

static ge_select (   $pos = 0,
  $b = 0 
)
static

◆ ge_sub()

Subtract two group elements.

r = p - q

Références $r.

◆ ge_tobytes()

static ge_tobytes ( ParagonIE_Sodium_Core_Curve25519_Ge_P2  $h)
static

Convert a group element to a byte string.

Paramètres
ParagonIE_Sodium_Core_Curve25519_Ge_P2$h
Renvoie
string

◆ negative()

static negative (   $char)
static

◆ slide()

static slide (   $a)
static

Références $b, $i, $r, et elseif.


La documentation de cette classe a été générée à partir du fichier suivant :