Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de l'espace de nommage phpseclib3\Crypt\EC\Formats\Keys

Structures de données

class  libsodium
 
class  MontgomeryPrivate
 
class  MontgomeryPublic
 
class  OpenSSH
 
class  PKCS1
 
class  PKCS8
 
class  PuTTY
 
class  XML
 

Fonctions

static initialize_static_variables ()
 
static setImplicitCurve (BaseCurve $curve)
 
static loadCurveByParam (array $params)
 
static extractPoint ($str, BaseCurve $curve)
 
static encodeParameters (BaseCurve $curve, $returnArray=false, array $options=[])
 
static useSpecifiedCurve ()
 
static useNamedCurve ()
 

Variables

trait Common
 
static $childOIDsLoaded = false
 
static $useNamedCurves = true
 

Documentation des fonctions

◆ encodeParameters()

static phpseclib3\Crypt\EC\Formats\Keys\encodeParameters ( BaseCurve  $curve,
  $returnArray = false,
array  $options = [] 
)
staticprivate

Encode Parameters

Paramètres
\phpseclib3\Crypt\EC\BaseCurves\Base$curve
bool$returnArrayoptional
array$optionsoptional
Renvoie
string|false

Références $b, $class, EC\$curve, $data, $name, $options, $params, phpseclib3\Crypt\EC\Formats\Keys\$useNamedCurves, EC\$x, __DIR__, ASN1\encodeDER(), et ECParameters\MAP.

Référencé par XML\encodeXMLParameters(), PKCS1\load(), PKCS1\saveParameters(), PKCS1\savePrivateKey(), PKCS8\savePrivateKey(), et PKCS8\savePublicKey().

◆ extractPoint()

static phpseclib3\Crypt\EC\Formats\Keys\extractPoint (   $str,
BaseCurve  $curve 
)
static

Extract points from a string

Supports both compressed and uncompressed points

Paramètres
string$str
\phpseclib3\Crypt\EC\BaseCurves\Base$curve
Renvoie
object[]

Références EC\$curve, $val, EC\$x, EncoderInterface\encode(), et Strings\shift().

Référencé par libsodium\load(), OpenSSH\load(), PKCS1\load(), XML\load(), PKCS8\load(), phpseclib3\Crypt\EC\Formats\Keys\loadCurveByParam(), XML\loadCurveByParam(), PKCS8\loadEdDSA(), PrivateKey\multiply(), et PublicKey\verify().

◆ initialize_static_variables()

◆ loadCurveByParam()

static phpseclib3\Crypt\EC\Formats\Keys\loadCurveByParam ( array  $params)
staticprotected

Returns an instance of based on the curve parameters

Paramètres
array$params
Renvoie
|false

Références EC\$curve, $data, $params, $temp, ASN1\asn1map(), ASN1\decodeBER(), EncoderInterface\encode(), phpseclib3\Crypt\EC\Formats\Keys\extractPoint(), et AsymmetricKey\toString().

Référencé par OpenSSH\load(), PKCS1\load(), XML\load(), et PKCS8\load().

◆ setImplicitCurve()

static phpseclib3\Crypt\EC\Formats\Keys\setImplicitCurve ( BaseCurve  $curve)
static

Explicitly set the curve

If the key contains an implicit curve phpseclib needs the curve to be explicitly provided

Paramètres
\phpseclib3\Crypt\EC\BaseCurves\Base$curve

Références EC\$curve.

◆ useNamedCurve()

static phpseclib3\Crypt\EC\Formats\Keys\useNamedCurve ( )
static

Use Named Curve

A named curve does not include any parameters. It is up to the EC parameters to know what the coefficients, the base points, etc, are from the name of the curve. A named curve is a more concise way of representing a curve

Références phpseclib3\Crypt\EC\Formats\Keys\$useNamedCurves.

◆ useSpecifiedCurve()

static phpseclib3\Crypt\EC\Formats\Keys\useSpecifiedCurve ( )
static

Use Specified Curve

A specified curve has all the coefficients, the base points, etc, explicitely included. A specified curve is a more verbose way of representing a curve

Références phpseclib3\Crypt\EC\Formats\Keys\$useNamedCurves.

Référencé par EC\getCurve().

Documentation des variables

◆ $childOIDsLoaded

$childOIDsLoaded = false
staticprotected

◆ $useNamedCurves

◆ Common

trait Common
Valeur initiale :
{
private static $curveOIDs = []