PHP 클래스 Horde_Pgp_Backend_Openpgp, horde

NOTE: This class is NOT intended to be accessed outside of this package. There is NO guarantees that the API of this class will not change across versions.
저자: Michael Slusarz ([email protected])
상속: extends Horde_Pgp_Backend
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Constructor.
autoload ( ) Autoload necessary libraries.
decrypt ( $msg, $key )
decryptSymmetric ( $msg, $passphrase )
encrypt ( $text, $keys, $opts )
encryptSymmetric ( $text, $passphrase, $opts )
generateKey ( $opts )
sign ( $text, $key, $mode, $opts = [] )
verify ( $msg, $key )

보호된 메소드들

메소드 설명
_compressMessageOb ( OpenPGP_Message $msg, integer $algo ) : OpenPGP_Message Compress PGP data, if compression is available.
_encrypt ( mixed $key, mixed $data, array $opts ) Encrypt data.
_encryptPrivateKey ( OpenPGP_SecretKeyPacket $p, phpseclib\Crypt\RSA $cipher, OpenPGP_S2K $s2k, string $iv ) Encrypt a secret key packet.
_generateSecretKeyPacket ( integer $keylength, string $packet_type ) : OpenPGP_SecretKeyPacket Generate a RSA secret key (sub)packet.
_getMessageOb ( mixed $data ) : OpenPGP_Message Create a OpenPGP message object, inserting text data into a literal data packet.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

_compressMessageOb() 보호된 메소드

Compress PGP data, if compression is available.
protected _compressMessageOb ( OpenPGP_Message $msg, integer $algo ) : OpenPGP_Message
$msg OpenPGP_Message PGP message.
$algo integer Compression algorithm.
리턴 OpenPGP_Message (Possibly compressed) message.

_encrypt() 보호된 메소드

Encrypt data.
protected _encrypt ( mixed $key, mixed $data, array $opts )
$key mixed The list of public keys used to encrypt or a list of passphrases.
$data mixed The data to be PGP encrypted.
$opts array Additional options: - cipher: (integer) Cipher algorithm. - compress: (integer) Compression algorithm.

_encryptPrivateKey() 보호된 메소드

Encrypt a secret key packet.
protected _encryptPrivateKey ( OpenPGP_SecretKeyPacket $p, phpseclib\Crypt\RSA $cipher, OpenPGP_S2K $s2k, string $iv )
$p OpenPGP_SecretKeyPacket Secret key packet.
$cipher phpseclib\Crypt\RSA RSA cipher object.
$s2k OpenPGP_S2K OpenPGP String-to-key object.
$iv string Initial vector.

_generateSecretKeyPacket() 보호된 메소드

Generate a RSA secret key (sub)packet.
protected _generateSecretKeyPacket ( integer $keylength, string $packet_type ) : OpenPGP_SecretKeyPacket
$keylength integer RSA keylength.
$packet_type string Secret key packet to create.
리턴 OpenPGP_SecretKeyPacket Secret key packet object.

_getMessageOb() 보호된 메소드

Create a OpenPGP message object, inserting text data into a literal data packet.
protected _getMessageOb ( mixed $data ) : OpenPGP_Message
$data mixed Data.
리턴 OpenPGP_Message Message object.

autoload() 공개 정적인 메소드

Autoload necessary libraries.
public static autoload ( )

decrypt() 공개 메소드

public decrypt ( $msg, $key )

decryptSymmetric() 공개 메소드

public decryptSymmetric ( $msg, $passphrase )

encrypt() 공개 메소드

public encrypt ( $text, $keys, $opts )

encryptSymmetric() 공개 메소드

public encryptSymmetric ( $text, $passphrase, $opts )

generateKey() 공개 메소드

public generateKey ( $opts )

sign() 공개 메소드

public sign ( $text, $key, $mode, $opts = [] )

verify() 공개 메소드

public verify ( $msg, $key )