Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc28fbd4

Browse files
author
Neil Conway
committed
pgcrypto merge cleanup:
- Few README fixes - Keep imath Id string, put $PostgreSQL$ separately.Patch from Marko Kreen.
1 parent60cfe25 commitc28fbd4

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

‎contrib/pgcrypto/README.pgcrypto

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ pgcrypto configures itself according to the findings of main PostgreSQL
3636
`configure` script. The options that affect it are `--with-zlib` and
3737
`--with-openssl`.
3838

39-
Withoutzlib,thePGP functionswill not support compressed data inside
40-
PGP encrypted packets.
39+
When compiled withzlib, PGPencryptionfunctionsare able to
40+
compress data before encrypting.
4141

42-
Without OpenSSL, public-key encryption does not work, as pgcrypto does
43-
not yet contain math functions for large integers.
42+
When compiled with OpenSSL there will be more algorithms available.
43+
Also public-key encryption functions will be faster as OpenSSL
44+
has more optimized BIGNUM functions.
4445

45-
There are some other differences with and without OpenSSL:
46+
Summary of functionality with and without OpenSSL:
4647

4748
`----------------------------`---------`------------
4849
Functionality built-in OpenSSL
@@ -421,7 +422,7 @@ with CRC and additional formatting.
421422
Options are named to be similar to GnuPG. Values should be given after
422423
an equal sign; separate options from each other with commas. Example:
423424

424-
pgp_sym_encrypt(data, psw, 'compress-also=1, cipher-algo=aes256')
425+
pgp_sym_encrypt(data, psw, 'compress-algo=1, cipher-algo=aes256')
425426

426427
All of the options except `convert-crlf` apply only to encrypt
427428
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.
571572
-------------------
572573

573574
Those functions only run a cipher over data, they don't have any advanced
574-
features of PGP encryption.In addition, they have some major problems:
575+
features of PGP encryption.Therefore they have some major problems:
575576

576577
1. They use user key directly as cipher key.
577578
2. They don't provide any integrity checking, to see
@@ -713,4 +714,4 @@ http://www.cs.ut.ee/~helger/crypto/[]::
713714
Collection of cryptology pointers.
714715

715716

716-
// $PostgreSQL: pgsql/contrib/pgcrypto/README.pgcrypto,v 1.15 2006/07/13 04:15:24 neilc Exp $
717+
// $PostgreSQL: pgsql/contrib/pgcrypto/README.pgcrypto,v 1.16 2006/07/19 17:05:50 neilc Exp $

‎contrib/pgcrypto/imath.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Name: imath.c
44
Purpose: Arbitrary precision integer arithmetic routines.
55
Author: M. J. Fromberger <http://www.dartmouth.edu/~sting/>
6-
Info:$PostgreSQL: pgsql/contrib/pgcrypto/imath.c,v 1.3 2006/07/16 02:44:00 tgl Exp $
6+
Info:Id:imath.c 21 2006-04-02 18:58:36Z sting
77
88
Copyright (C) 2002 Michael J. Fromberger, All Rights Reserved.
99
@@ -27,6 +27,7 @@
2727
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2828
SOFTWARE.
2929
*/
30+
/* $PostgreSQL: pgsql/contrib/pgcrypto/imath.c,v 1.4 2006/07/19 17:05:50 neilc Exp $ */
3031

3132
#include"postgres.h"
3233
#include"px.h"

‎contrib/pgcrypto/imath.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Name: imath.h
33
Purpose: Arbitrary precision integer arithmetic routines.
44
Author: M. J. Fromberger <http://www.dartmouth.edu/~sting/>
5-
Info:$PostgreSQL: pgsql/contrib/pgcrypto/imath.h,v 1.3 2006/07/16 02:44:01 tgl Exp $
5+
Info:Id:imath.h 21 2006-04-02 18:58:36Z sting
66
77
Copyright (C) 2002 Michael J. Fromberger, All Rights Reserved.
88
@@ -26,6 +26,7 @@
2626
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2727
SOFTWARE.
2828
*/
29+
/* $PostgreSQL: pgsql/contrib/pgcrypto/imath.h,v 1.4 2006/07/19 17:05:50 neilc Exp $ */
2930

3031
#ifndefIMATH_H_
3132
#defineIMATH_H_

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp