File/plugins/gpg/functions/sign.php

Description

gpg_sign_functions.php ----------- GPG plugin signup functions

Copyright (c) 2002-2005 Braverock Ventures Copyright (c) 2007 The NaSMail Project Licensed under the GNU GPL. For full terms see the file COPYING.

  • author: Tyler Allison
  • author: Brian Peterson
  • author: Aaron van Meerten
  • version: $Id: sign.php 951 2007-10-27 11:35:04Z tokul $
Includes
Functions
gpg_sign_attachment (line 32)

Signs filename

If $passphrase is not passed in then we have to assume either a problem or that the user wants to sign the message with a key that has had the passphrase removed, also known as a signing key. See README.txt

  • return: : An array that contains the signature filename as well as warnings and error messages
$return gpg_sign_attachment (string $filename, string $passphrase)
  • string $filename
  • string $passphrase
gpg_sign_message (line 109)

Signs message

If $passphrase is not passed in then we have to assume either a problem or that the user wants to sign the message with a key that has had the passphrase removed, also known as a signing key. See README.txt

  • return: : An array that contains the cyphertext as well as warnings and error messages
$return gpg_sign_message (string $body, string $passphrase, [string $signingkey = ''])
  • string $body: Message body
  • string $passphrase: Passphrase
  • string $signingkey: Alternative signing key. If set to empty string, default key is used.
gpg_verify_signature (line 67)

Verifies file's signature

  • return: : An array that contains ['verified'] as 'true' or 'false' of gpg as well as warnings and error messages
$return gpg_verify_signature (string $filename, string $signature)
  • string $filename
  • string $signature

Documentation generated on Sun, 22 Nov 2009 17:36:50 +0200 by phpDocumentor 1.4.3