Skip to content

Commit ccf4e27

Browse files
committed
Remove PG_SHA*_DIGEST_STRING_LENGTH from sha2.h
The last reference to those variables has been removed in aef8948, so this cleans up a bit the code. Discussion: https://postgr.es/m/X//[email protected]
1 parent 5ae1572 commit ccf4e27

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/include/common/sha2.h

-4
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,11 @@
1818
/*** SHA224/256/384/512 Various Length Definitions ***********************/
1919
#define PG_SHA224_BLOCK_LENGTH 64
2020
#define PG_SHA224_DIGEST_LENGTH 28
21-
#define PG_SHA224_DIGEST_STRING_LENGTH (PG_SHA224_DIGEST_LENGTH * 2 + 1)
2221
#define PG_SHA256_BLOCK_LENGTH 64
2322
#define PG_SHA256_DIGEST_LENGTH 32
24-
#define PG_SHA256_DIGEST_STRING_LENGTH (PG_SHA256_DIGEST_LENGTH * 2 + 1)
2523
#define PG_SHA384_BLOCK_LENGTH 128
2624
#define PG_SHA384_DIGEST_LENGTH 48
27-
#define PG_SHA384_DIGEST_STRING_LENGTH (PG_SHA384_DIGEST_LENGTH * 2 + 1)
2825
#define PG_SHA512_BLOCK_LENGTH 128
2926
#define PG_SHA512_DIGEST_LENGTH 64
30-
#define PG_SHA512_DIGEST_STRING_LENGTH (PG_SHA512_DIGEST_LENGTH * 2 + 1)
3127

3228
#endif /* _PG_SHA2_H_ */

0 commit comments

Comments
 (0)