PHP 클래스 phpseclib\Crypt\Common\PKCS8

저자: Jim Wigginton ([email protected])
상속: extends PKCS
파일 보기 프로젝트 열기: phpseclib/phpseclib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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