The "pgp" Package

These routines are meant to provide a simple interface to PGP.

Library: karma
Link With: -lkarma

Functions

pgp_decryptDecrypt a block of data using PGP and PGPdaemon.
pgp_encryptEncrypt a block of data using PGP.


Functions


char * pgp_decrypt (CONST char *ciphertext, unsigned int ciphertext_length, unsigned int *plaintext_length)

Decrypt a block of data using PGP and PGPdaemon.

Parameters:

Returns: A pointer to the plaintext data on success, else NULL.
Multithreading Level: Unsafe


char * pgp_encrypt (CONST char *plaintext, unsigned int plaintext_length, CONST char **recipients, unsigned int num_recipients, unsigned int *ciphertext_length, flag ascii_armour)

Encrypt a block of data using PGP.

Parameters:

Returns: A pointer to the ciphertext data on success, else NULL.
Multithreading Level: Unsafe


Contact: Richard Gooch
Web Development: Ariel Internet Services