Skip to content

Commit 7fceb57

Browse files
doc: Standardize use of dashes in references to CRC and SHA.
Presently, we inconsistently use dashes in references to these algorithms (e.g., CRC32C versus CRC-32C). Some popular web sources appear to prefer dashes, and with this commit, we will, too. Reviewed-by: Robert Haas Discussion: https://postgr.es/m/ZrUFpLP-w2zTAHqq%40nathan
1 parent 8c35486 commit 7fceb57

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

doc/src/sgml/backup-manifest.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@
8787
<listitem>
8888
<para>
8989
This key is always present on the last line of the backup manifest file.
90-
The associated value is a SHA256 checksum of all the preceding lines.
90+
The associated value is a SHA-256 checksum of all the preceding lines.
9191
We use a fixed checksum method here to make it possible for clients
92-
to do incremental parsing of the manifest. While a SHA256 checksum
93-
is significantly more expensive than a CRC32C checksum, the manifest
92+
to do incremental parsing of the manifest. While a SHA-256 checksum
93+
is significantly more expensive than a CRC-32C checksum, the manifest
9494
should normally be small enough that the extra computation won't matter
9595
very much.
9696
</para>

doc/src/sgml/pgcrypto.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ hmac(data bytea, key bytea, type text) returns bytea
106106

107107
<para>
108108
The algorithms in <function>crypt()</function> differ from the usual
109-
MD5 or SHA1 hashing algorithms in the following respects:
109+
MD5 or SHA-1 hashing algorithms in the following respects:
110110
</para>
111111

112112
<orderedlist>
@@ -525,7 +525,7 @@ gen_salt(type text [, iter_count integer ]) returns text
525525
</listitem>
526526
<listitem>
527527
<para>
528-
A SHA1 hash of the random prefix and data is appended.
528+
A SHA-1 hash of the random prefix and data is appended.
529529
</para>
530530
</listitem>
531531
<listitem>

doc/src/sgml/ref/pg_basebackup.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ PostgreSQL documentation
687687
<para>
688688
Using a SHA hash function provides a cryptographically secure digest
689689
of each file for users who wish to verify that the backup has not been
690-
tampered with, while the CRC32C algorithm provides a checksum that is
690+
tampered with, while the CRC-32C algorithm provides a checksum that is
691691
much faster to calculate; it is good at catching errors due to accidental
692692
changes but is not resistant to malicious modifications. Note that, to
693693
be useful against an adversary who has access to the backup, the backup

0 commit comments

Comments
 (0)