PHP 클래스 OpenPGP_Crypt_RSA, horde

파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$key
$message

공개 메소드들

메소드 설명
__construct ( $packet ) Construct a wrapper object from a key or a message packet
convert_key ( $packet, $private = false )
convert_private_key ( $packet )
convert_public_key ( $packet )
crypt_rsa_key ( $mod, $exp, $hash = 'SHA256' )
decrypt ( $packet )
key ( $keyid = NULL )
private_key ( $keyid = NULL ) Get Crypt_RSA for the private key
public_key ( $keyid = NULL ) Get Crypt_RSA for the public key
sign ( $packet, $hash = 'SHA256', $keyid = NULL ) Third parameter is the 16-digit key ID to use.
sign_key_userid ( $packet, $hash = 'SHA256', $keyid = NULL ) TODO: merge this with the normal sign function
try_decrypt_session ( $key, $edata )
verify ( $packet ) Second optional parameter to specify which signature to verify (if there is more than one)

메소드 상세

__construct() 공개 메소드

Construct a wrapper object from a key or a message packet
public __construct ( $packet )

convert_key() 정적인 공개 메소드

static public convert_key ( $packet, $private = false )

convert_private_key() 정적인 공개 메소드

static public convert_private_key ( $packet )

convert_public_key() 정적인 공개 메소드

static public convert_public_key ( $packet )

crypt_rsa_key() 정적인 공개 메소드

static public crypt_rsa_key ( $mod, $exp, $hash = 'SHA256' )

decrypt() 공개 메소드

public decrypt ( $packet )

key() 공개 메소드

public key ( $keyid = NULL )

private_key() 공개 메소드

Get Crypt_RSA for the private key
public private_key ( $keyid = NULL )

public_key() 공개 메소드

Get Crypt_RSA for the public key
public public_key ( $keyid = NULL )

sign() 공개 메소드

.. defaults to the key id in the key packet
public sign ( $packet, $hash = 'SHA256', $keyid = NULL )

sign_key_userid() 공개 메소드

TODO: merge this with the normal sign function
public sign_key_userid ( $packet, $hash = 'SHA256', $keyid = NULL )

try_decrypt_session() 정적인 공개 메소드

static public try_decrypt_session ( $key, $edata )

verify() 공개 메소드

Second optional parameter to specify which signature to verify (if there is more than one)
public verify ( $packet )

프로퍼티 상세

$key 보호되어 있는 프로퍼티

protected $key

$message 보호되어 있는 프로퍼티

protected $message