|
1 | | -<!-- $PostgreSQL: pgsql/doc/src/sgml/pgcrypto.sgml,v 1.4 2008/01/05 13:17:00 petere Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/pgcrypto.sgml,v 1.5 2008/01/17 11:06:28 mha Exp $ --> |
2 | 2 |
|
3 | 3 | <sect1 id="pgcrypto"> |
4 | 4 | <title>pgcrypto</title> |
|
26 | 26 | <para> |
27 | 27 | Computes a binary hash of the given <parameter>data</>. |
28 | 28 | <parameter>type</> is the algorithm to use. |
29 | | - Standard algorithms are <literal>md5</literal> and |
30 | | - <literal>sha1</literal>. If <filename>pgcrypto</> was built with |
| 29 | + Standard algorithms are <literal>md5</literal>, <literal>sha1</literal>, |
| 30 | + <literal>sha224</literal>, <literal>sha256</literal>, |
| 31 | + <literal>sha384</literal> and <literal>sha512</literal>. |
| 32 | + If <filename>pgcrypto</> was built with |
31 | 33 | OpenSSL, more algorithms are available, as detailed in |
32 | 34 | <xref linkend="pgcrypto-with-without-openssl">. |
33 | 35 | </para> |
|
390 | 392 | <title>PGP encryption functions</title> |
391 | 393 |
|
392 | 394 | <para> |
393 | | - The functions here implement the encryption part of the OpenPGP (RFC 2440) |
| 395 | + The functions here implement the encryption part of the OpenPGP (RFC 4880) |
394 | 396 | standard. Supported are both symmetric-key and public-key encryption. |
395 | 397 | </para> |
396 | 398 |
|
|
657 | 659 |
|
658 | 660 | <para> |
659 | 661 | Which compression algorithm to use. Only available if |
660 | | - <filename>pgcrypto</> was built with zlib. |
| 662 | + <productname>PostgreSQL<productname/> was built with zlib. |
661 | 663 | </para> |
662 | 664 | <programlisting> |
663 | 665 | Values: |
|
689 | 691 | <para> |
690 | 692 | Whether to convert <literal>\n</literal> into <literal>\r\n</literal> when |
691 | 693 | encrypting and <literal>\r\n</literal> to <literal>\n</literal> when |
692 | | - decrypting. RFC 2440 specifies that text data should be stored using |
| 694 | + decrypting. RFC 4880 specifies that text data should be stored using |
693 | 695 | <literal>\r\n</literal> line-feeds. Use this to get fully RFC-compliant |
694 | 696 | behavior. |
695 | 697 | </para> |
|
706 | 708 | <para> |
707 | 709 | Do not protect data with SHA-1. The only good reason to use this |
708 | 710 | option is to achieve compatibility with ancient PGP products, predating |
709 | | - the addition of SHA-1 protected packets to RFC 2440. |
| 711 | + the addition of SHA-1 protected packets to RFC 4880. |
710 | 712 | Recent gnupg.org and pgp.com software supports it fine. |
711 | 713 | </para> |
712 | 714 | <programlisting> |
|
1172 | 1174 |
|
1173 | 1175 | <itemizedlist> |
1174 | 1176 | <listitem> |
1175 | | - <para><ulink url="http://www.ietf.org/rfc/rfc2440.txt"></ulink></para> |
| 1177 | + <para><ulink url="http://www.ietf.org/rfc/rfc4880.txt"></ulink></para> |
1176 | 1178 | <para>OpenPGP message format.</para> |
1177 | 1179 | </listitem> |
1178 | | - <listitem> |
1179 | | - <para> |
1180 | | - <ulink url="http://www.imc.org/draft-ietf-openpgp-rfc2440bis"></ulink> |
1181 | | - </para> |
1182 | | - <para>New version of RFC 2440.</para> |
1183 | | - </listitem> |
1184 | 1180 | <listitem> |
1185 | 1181 | <para><ulink url="http://www.ietf.org/rfc/rfc1321.txt"></ulink></para> |
1186 | 1182 | <para>The MD5 Message-Digest Algorithm.</para> |
|
0 commit comments