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-2024, 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_SHA224_DIGEST_STRING_LENGTH (PG_SHA224_DIGEST_LENGTH * 2 + 1)
22
#define PG_SHA256_BLOCK_LENGTH 64
23
#define PG_SHA256_DIGEST_LENGTH 32
24
#define PG_SHA256_DIGEST_STRING_LENGTH (PG_SHA256_DIGEST_LENGTH * 2 + 1)
25
#define PG_SHA384_BLOCK_LENGTH 128
26
#define PG_SHA384_DIGEST_LENGTH 48
27
#define PG_SHA384_DIGEST_STRING_LENGTH (PG_SHA384_DIGEST_LENGTH * 2 + 1)
28
#define PG_SHA512_BLOCK_LENGTH 128
29
#define PG_SHA512_DIGEST_LENGTH 64
30
#define PG_SHA512_DIGEST_STRING_LENGTH (PG_SHA512_DIGEST_LENGTH * 2 + 1)
31
32
#endif
/* _PG_SHA2_H_ */
src
include
common
sha2.h
Generated on Thu Oct 10 2024 00:13:25 for PostgreSQL Source Code by
1.9.1