PHP Класс phpseclib\Crypt\Common\PKCS8

Автор: Jim Wigginton ([email protected])
Наследование: extends PKCS
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$defaultEncryptionAlgorithm string Default encryption algorithm
$defaultEncryptionScheme string Only used when defaultEncryptionAlgorithm is id-PBES2
$defaultIterationCount integer Default Iteration Count
$defaultPRF string Only used when defaultEncryptionAlgorithm is id-PBES2

Открытые методы

Метод Описание
getPBES1EncryptionObject ( string $algo ) Returns a SymmetricKey object based on a PBES1 $algo
getPBES1Hash ( string $algo ) Returns a hash based on a PBES1 $algo
getPBES1KDF ( string $algo ) Returns a KDF baesd on a PBES1 $algo
getPBES2EncryptionObject ( string $algo ) Returns a SymmetricKey object baesd on a PBES2 $algo
load ( string $key, string $password = '' ) : array Break a public or private key down into its constituent components
setEncryptionAlgorithm ( string $algo ) Sets the default encryption algorithm
setEncryptionScheme ( string $algo ) Sets the default encryption algorithm for PBES2
setIterationCount ( integer $count ) Sets the iteration count
setPRF ( string $algo ) Sets the PRF for PBES2
wrapPrivateKey ( string $key, string $algorithm, string $attr, string $password ) : string Wrap a private key appropriately
wrapPublicKey ( string $key, $algorithm ) : string Wrap a public key appropriately

Описание методов

getPBES1EncryptionObject() статический публичный Метод

Returns a SymmetricKey object based on a PBES1 $algo
static public getPBES1EncryptionObject ( string $algo )
$algo string

getPBES1Hash() статический публичный Метод

Returns a hash based on a PBES1 $algo
static public getPBES1Hash ( string $algo )
$algo string

getPBES1KDF() статический публичный Метод

Returns a KDF baesd on a PBES1 $algo
static public getPBES1KDF ( string $algo )
$algo string

getPBES2EncryptionObject() статический публичный Метод

Returns a SymmetricKey object baesd on a PBES2 $algo
static public getPBES2EncryptionObject ( string $algo )
$algo string

load() статический публичный Метод

Break a public or private key down into its constituent components
static public load ( string $key, string $password = '' ) : array
$key string
$password string optional
Результат array

setEncryptionAlgorithm() статический публичный Метод

Sets the default encryption algorithm
static public setEncryptionAlgorithm ( string $algo )
$algo string

setEncryptionScheme() статический публичный Метод

Sets the default encryption algorithm for PBES2
static public setEncryptionScheme ( string $algo )
$algo string

setIterationCount() статический публичный Метод

Sets the iteration count
static public setIterationCount ( integer $count )
$count integer

setPRF() статический публичный Метод

Sets the PRF for PBES2
static public setPRF ( string $algo )
$algo string

wrapPrivateKey() статический публичный Метод

Wrap a private key appropriately
static public wrapPrivateKey ( string $key, string $algorithm, string $attr, string $password ) : string
$key string
$algorithm string
$attr string
$password string
Результат string

wrapPublicKey() статический публичный Метод

Wrap a public key appropriately
static public wrapPublicKey ( string $key, $algorithm ) : string
$key string
Результат string

Описание свойств

$defaultEncryptionAlgorithm статическое публичное свойство

Default encryption algorithm
static public string $defaultEncryptionAlgorithm
Результат string

$defaultEncryptionScheme статическое публичное свойство

Only used when defaultEncryptionAlgorithm is id-PBES2
static public string $defaultEncryptionScheme
Результат string

$defaultIterationCount статическое публичное свойство

Default Iteration Count
static public int $defaultIterationCount
Результат integer

$defaultPRF статическое публичное свойство

Only used when defaultEncryptionAlgorithm is id-PBES2
static public string $defaultPRF
Результат string