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//ggAqmTtt+3t7X@paquier.xyz
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

Lines changed: 0 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy