PostgreSQL Source Code  git master
sha2.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * sha2.h
4  * Constants related to SHA224, 256, 384 AND 512.
5  *
6  * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * IDENTIFICATION
10  * src/include/common/sha2.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 
15 #ifndef _PG_SHA2_H_
16 #define _PG_SHA2_H_
17 
18 /*** SHA224/256/384/512 Various Length Definitions ***********************/
19 #define PG_SHA224_BLOCK_LENGTH 64
20 #define PG_SHA224_DIGEST_LENGTH 28
21 #define PG_SHA256_BLOCK_LENGTH 64
22 #define PG_SHA256_DIGEST_LENGTH 32
23 #define PG_SHA384_BLOCK_LENGTH 128
24 #define PG_SHA384_DIGEST_LENGTH 48
25 #define PG_SHA512_BLOCK_LENGTH 128
26 #define PG_SHA512_DIGEST_LENGTH 64
27 
28 #endif /* _PG_SHA2_H_ */