Commit c28fbd45 authored by Neil Conway's avatar Neil Conway

pgcrypto merge cleanup:

  - Few README fixes
  - Keep imath Id string, put $PostgreSQL$ separately.

Patch from Marko Kreen.
parent 60cfe25e
...@@ -36,13 +36,14 @@ pgcrypto configures itself according to the findings of main PostgreSQL ...@@ -36,13 +36,14 @@ pgcrypto configures itself according to the findings of main PostgreSQL
`configure` script. The options that affect it are `--with-zlib` and `configure` script. The options that affect it are `--with-zlib` and
`--with-openssl`. `--with-openssl`.
Without zlib, the PGP functions will not support compressed data inside When compiled with zlib, PGP encryption functions are able to
PGP encrypted packets. compress data before encrypting.
Without OpenSSL, public-key encryption does not work, as pgcrypto does When compiled with OpenSSL there will be more algorithms available.
not yet contain math functions for large integers. Also public-key encryption functions will be faster as OpenSSL
has more optimized BIGNUM functions.
There are some other differences with and without OpenSSL: Summary of functionality with and without OpenSSL:
`----------------------------`---------`------------ `----------------------------`---------`------------
Functionality built-in OpenSSL Functionality built-in OpenSSL
...@@ -421,7 +422,7 @@ with CRC and additional formatting. ...@@ -421,7 +422,7 @@ with CRC and additional formatting.
Options are named to be similar to GnuPG. Values should be given after Options are named to be similar to GnuPG. Values should be given after
an equal sign; separate options from each other with commas. Example: an equal sign; separate options from each other with commas. Example:
pgp_sym_encrypt(data, psw, 'compress-also=1, cipher-algo=aes256') pgp_sym_encrypt(data, psw, 'compress-algo=1, cipher-algo=aes256')
All of the options except `convert-crlf` apply only to encrypt All of the options except `convert-crlf` apply only to encrypt
functions. Decrypt functions get the parameters from PGP data. functions. Decrypt functions get the parameters from PGP data.
...@@ -571,7 +572,7 @@ The GNU Privacy Handbook] and other docs on http://www.gnupg.org[] site. ...@@ -571,7 +572,7 @@ The GNU Privacy Handbook] and other docs on http://www.gnupg.org[] site.
------------------- -------------------
Those functions only run a cipher over data, they don't have any advanced Those functions only run a cipher over data, they don't have any advanced
features of PGP encryption. In addition, they have some major problems: features of PGP encryption. Therefore they have some major problems:
1. They use user key directly as cipher key. 1. They use user key directly as cipher key.
2. They don't provide any integrity checking, to see 2. They don't provide any integrity checking, to see
...@@ -713,4 +714,4 @@ http://www.cs.ut.ee/~helger/crypto/[]:: ...@@ -713,4 +714,4 @@ http://www.cs.ut.ee/~helger/crypto/[]::
Collection of cryptology pointers. Collection of cryptology pointers.
// $PostgreSQL: pgsql/contrib/pgcrypto/README.pgcrypto,v 1.15 2006/07/13 04:15:24 neilc Exp $ // $PostgreSQL: pgsql/contrib/pgcrypto/README.pgcrypto,v 1.16 2006/07/19 17:05:50 neilc Exp $
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Name: imath.c Name: imath.c
Purpose: Arbitrary precision integer arithmetic routines. Purpose: Arbitrary precision integer arithmetic routines.
Author: M. J. Fromberger <http://www.dartmouth.edu/~sting/> Author: M. J. Fromberger <http://www.dartmouth.edu/~sting/>
Info: $PostgreSQL: pgsql/contrib/pgcrypto/imath.c,v 1.3 2006/07/16 02:44:00 tgl Exp $ Info: Id: imath.c 21 2006-04-02 18:58:36Z sting
Copyright (C) 2002 Michael J. Fromberger, All Rights Reserved. Copyright (C) 2002 Michael J. Fromberger, All Rights Reserved.
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
/* $PostgreSQL: pgsql/contrib/pgcrypto/imath.c,v 1.4 2006/07/19 17:05:50 neilc Exp $ */
#include "postgres.h" #include "postgres.h"
#include "px.h" #include "px.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Name: imath.h Name: imath.h
Purpose: Arbitrary precision integer arithmetic routines. Purpose: Arbitrary precision integer arithmetic routines.
Author: M. J. Fromberger <http://www.dartmouth.edu/~sting/> Author: M. J. Fromberger <http://www.dartmouth.edu/~sting/>
Info: $PostgreSQL: pgsql/contrib/pgcrypto/imath.h,v 1.3 2006/07/16 02:44:01 tgl Exp $ Info: Id: imath.h 21 2006-04-02 18:58:36Z sting
Copyright (C) 2002 Michael J. Fromberger, All Rights Reserved. Copyright (C) 2002 Michael J. Fromberger, All Rights Reserved.
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
/* $PostgreSQL: pgsql/contrib/pgcrypto/imath.h,v 1.4 2006/07/19 17:05:50 neilc Exp $ */
#ifndef IMATH_H_ #ifndef IMATH_H_
#define IMATH_H_ #define IMATH_H_
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment