[ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
Armor Header Lines - From RFC 2440 An Armor Header Line consists of the appropriate header line text surrounded by five (5) dashes ('-', 0x2D) on either side of the header line text. The header line text is chosen based upon the type of data that is being encoded in Armor, and how it is being encoded. Header line texts include the following strings:
Poids: | 1462 lignes (52 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Horde_Crypt_pgp:: (27 méthodes):
Horde_Crypt_pgp()
generateKey()
pgpPacketInformation()
pgpPrettyKey()
pgpPacketSignature()
pgpPacketSignatureByUidIndex()
_pgpPacketSignature()
getSignersFingerprint()
verifyPassphrase()
parsePGPData()
getPublicKeyserver()
putPublicKeyserver()
_connectKeyserver()
encrypt()
decrypt()
_createKeyring()
_putInKeyring()
_encryptMessage()
_encryptSignature()
_decryptMessage()
_decryptSignature()
_checkSignatureResult()
signMIMEPart()
encryptMIMEPart()
signAndEncryptMIMEPart()
publicKeyMIMEPart()
_callGpg()
Classe: Horde_Crypt_pgp - X-Ref
Horde_Crypt_pgp:: provides a framework for Horde applications to interactHorde_Crypt_pgp($params = array() X-Ref |
Constructor. param: array $params Parameter array containing the path to the GnuPG |
generateKey($realname, $email, $passphrase, $comment = '',$keylength = 1024) X-Ref |
Generates a personal Public/Private keypair combination. param: string $realname The name to use for the key. param: string $email The email to use for the key. param: string $passphrase The passphrase to use for the key. param: string $comment The comment to use for the key. param: integer $keylength The keylength to use for the key. return: array An array consisting of the public key and the private |
pgpPacketInformation($pgpdata) X-Ref |
Returns information on a PGP data block. param: string $pgpdata The PGP data block. return: array An array with information on the PGP data block. If an |
pgpPrettyKey($pgpdata) X-Ref |
Returns human readable information on a PGP key. param: string $pgpdata The PGP data block. return: string Tabular information on the PGP key. |
pgpPacketSignature($pgpdata, $email) X-Ref |
Returns only information on the first ID that matches the email address input. param: string $pgpdata The PGP data block. param: string $email An e-mail address. return: array An array with information on the PGP data block. If an |
pgpPacketSignatureByUidIndex($pgpdata, $uid_idx) X-Ref |
Returns information on a PGP signature embedded in PGP data. Similar to pgpPacketSignature(), but returns information by unique User ID Index (format id{n} where n is an integer of 1 or greater). param: string $pgpdata See pgpPacketSignature(). param: integer $uid_idx The UID index. return: array See pgpPacketSignature(). |
_pgpPacketSignature($data, $retarray) X-Ref |
Adds some data to the pgpPacketSignature*() function array. param: array $data See pgpPacketSignature(). param: array $retarray The return array. return: array The return array. |
getSignersFingerprint($text) X-Ref |
Returns the short fingerprint (Key ID) of the key used to sign a block of PGP data. param: string $text The PGP signed text block. return: string The short fingerprint of the key used to sign $text. |
verifyPassphrase($public_key, $private_key, $passphrase) X-Ref |
Verify a passphrase for a given public/private keypair. param: string $public_key The user's PGP public key. param: string $private_key The user's PGP private key. param: string $passphrase The user's passphrase. return: boolean Returns true on valid passphrase, false on invalid |
parsePGPData($text) X-Ref |
Parses a message into text and PGP components. param: string $text The text to parse. return: array An array with the parsed text, returned in blocks of |
getPublicKeyserver($fprint, $server = PGP_KEYSERVER_PUBLIC,$timeout = PGP_KEYSERVER_TIMEOUT) X-Ref |
Returns a PGP public key from a public keyserver. param: string $fprint The fingerprint of the PGP key. param: string $server The keyserver to use. param: float $timeout The keyserver timeout. return: string The PGP public key, or PEAR_Error on error. |
putPublicKeyserver($pubkey, $server = PGP_KEYSERVER_PUBLIC,$timeout = PGP_KEYSERVER_TIMEOUT) X-Ref |
Sends a PGP public key to a public keyserver. param: string $pubkey The PGP public key param: string $server The keyserver to use. param: float $timeout The keyserver timeout. return: PEAR_Error PEAR_Error on error/failure. |
_connectKeyserver($command, $server, $timeout) X-Ref |
Connects to a public key server via HKP (Horrowitz Keyserver Protocol). param: string $command The PGP command to run. param: string $server The keyserver to use. param: float $timeout The timeout value. return: string The text from standard output on success, or PEAR_Error |
encrypt($text, $params = array() X-Ref |
Encrypts text using PGP. param: string $text The text to be PGP encrypted. param: array $params The parameters needed for encryption. return: string The encrypted message, or PEAR_Error on error. |
decrypt($text, $params = array() X-Ref |
Decrypts text using PGP. param: string $text The text to be PGP decrypted. param: array $params The parameters needed for decryption. return: string The decrypted message, or PEAR_Error on error. |
_createKeyring($type = 'public') X-Ref |
Creates a temporary gpg keyring. param: string $type The type of key to analyze. Either 'public' return: string Command line keystring option to use with gpg program. |
_putInKeyring($keys = array() X-Ref |
Adds PGP keys to the keyring. param: mixed $keys A single key or an array of key(s) to add to the param: string $type The type of key(s) to add. Either 'public' return: string Command line keystring option to use with gpg program. |
_encryptMessage($text, $params) X-Ref |
Encrypts a message in PGP format using a public key. param: string $text The text to be encrypted. param: array $params The parameters needed for encryption. return: string The encrypted message, or PEAR_Error on error. |
_encryptSignature($text, $params) X-Ref |
Signs a message in PGP format using a private key. param: string $text The text to be signed. param: array $params The parameters needed for signing. return: string The signed message, or PEAR_Error on error. |
_decryptMessage($text, $params) X-Ref |
Decrypts an PGP encrypted message using a private/public keypair and a passhprase. param: string $text The text to be decrypted. param: array $params The parameters needed for decryption. return: stdClass An object with the following properties, or PEAR_Error |
_decryptSignature($text, $params) X-Ref |
Decrypts an PGP signed message using a public key. param: string $text The text to be verified. param: array $params The parameters needed for verification. return: string The verification message from gpg. If no signature, |
_checkSignatureResult($result) X-Ref |
Checks signature result from the GnuPG binary. param: string $result The signature result. return: boolean True if signature is good. |
signMIMEPart($mime_part, $params = array() X-Ref |
Signs a MIME_Part using PGP. param: MIME_Part $mime_part The MIME_Part object to sign. param: array $params The parameters required for signing. return: MIME_Part A MIME_Part object that is signed according to RFC |
encryptMIMEPart($mime_part, $params = array() X-Ref |
Encrypts a MIME_Part using PGP. param: MIME_Part $mime_part The MIME_Part object to encrypt. param: array $params The parameters required for encryption. return: MIME_Part A MIME_Part object that is encrypted according to RFC |
signAndEncryptMIMEPart($mime_part, $sign_params = array() X-Ref |
Signs and encrypts a MIME_Part using PGP. param: MIME_Part $mime_part The MIME_Part object to sign and encrypt. param: array $sign_params The parameters required for signing. param: array $encrypt_params The parameters required for encryption. return: MIME_Part A MIME_Part object that is signed and encrypted |
publicKeyMIMEPart($key) X-Ref |
Generates a MIME_Part object, in accordance with RFC 2015/3156, that contains a public key. param: string $key The public key. return: MIME_Part A MIME_Part object that contains the public key. |
_callGpg($options, $mode, $input = array() X-Ref |
Function that handles interfacing with the GnuPG binary. param: array $options TODO param: string $mode TODO param: array $input TODO param: boolean $output TODO param: boolean $stderr TODO return: stdClass TODO |
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |