PHP 클래스 phpseclib\Crypt\Common\PKCS1

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

공개 프로퍼티들

프로퍼티 타입 설명
$defaultEncryptionAlgorithm string Default encryption algorithm

공개 메소드들

메소드 설명
generateSymmetricKey ( string $password, string $iv, integer $length ) : string Generate a symmetric key for PKCS#1 keys
getEncryptionMode ( string $mode ) : integer Returns the mode constant corresponding to the mode string
getEncryptionObject ( string $algo ) : string Returns a cipher object corresponding to a string
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
wrapPrivateKey ( string $key, string $type, string $password ) : string Wrap a private key appropriately
wrapPublicKey ( string $key, string $type ) : string Wrap a public key appropriately

메소드 상세

generateSymmetricKey() 정적인 공개 메소드

Generate a symmetric key for PKCS#1 keys
static public generateSymmetricKey ( string $password, string $iv, integer $length ) : string
$password string
$iv string
$length integer
리턴 string

getEncryptionMode() 정적인 공개 메소드

Returns the mode constant corresponding to the mode string
static public getEncryptionMode ( string $mode ) : integer
$mode string
리턴 integer

getEncryptionObject() 정적인 공개 메소드

Returns a cipher object corresponding to a string
static public getEncryptionObject ( string $algo ) : string
$algo string
리턴 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

wrapPrivateKey() 정적인 공개 메소드

Wrap a private key appropriately
static public wrapPrivateKey ( string $key, string $type, string $password ) : string
$key string
$type string
$password string
리턴 string

wrapPublicKey() 정적인 공개 메소드

Wrap a public key appropriately
static public wrapPublicKey ( string $key, string $type ) : string
$key string
$type string
리턴 string

프로퍼티 상세

$defaultEncryptionAlgorithm 정적으로 공개적으로 프로퍼티

Default encryption algorithm
static public string $defaultEncryptionAlgorithm
리턴 string