|
33 | 33 | *
|
34 | 34 | * $From: sha2.c,v 1.1 2001/11/08 00:01:51 adg Exp adg $
|
35 | 35 | *
|
36 |
| - * $PostgreSQL: pgsql/contrib/pgcrypto/sha2.c,v 1.11 2009/06/11 14:48:52 momjian Exp $ |
| 36 | + * $PostgreSQL: pgsql/contrib/pgcrypto/sha2.c,v 1.12 2010/04/02 15:21:20 mha Exp $ |
37 | 37 | */
|
38 | 38 |
|
39 | 39 | #include"postgres.h"
|
|
98 | 98 | *
|
99 | 99 | * NOTE:The naming of R and S appears backwards here (R is a SHIFT and
|
100 | 100 | * S is a ROTATION) because the SHA-256/384/512 description document
|
101 |
| - * (see http://csrc.nist.gov/cryptval/shs/sha256-384-512.pdf)uses this |
102 |
| - * same "backwards" definition. |
| 101 | + * (see http://www.iwar.org.uk/comsec/resources/cipher/sha256-384-512.pdf) |
| 102 | + *uses thissame "backwards" definition. |
103 | 103 | */
|
104 | 104 | /* Shift-right (used in SHA-256, SHA-384, and SHA-512): */
|
105 | 105 | #defineR(b,x)((x) >> (b))
|
|