From c6f6646bb0bef315c3836f3f6909c24a985a8621 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Wed, 14 Dec 2022 09:51:19 +0900 Subject: [PATCH] Remove SHA256_HMAC_B from scram-common.h This referred to the size of the buffers for k_ipad and k_opad in HMAC computations. This is unused since e6bdfd9, where SCRAM has switched to the cryptohash routines for its HMAC calculations rather than its own maths. Reviewed-by: Jacob Champion Discussion: https://postgr.es/m/Y5gGMjXhyp0oK0mH@paquier.xyz --- src/include/common/scram-common.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/include/common/scram-common.h b/src/include/common/scram-common.h index e1f5e786e0..4acf2a78ad 100644 --- a/src/include/common/scram-common.h +++ b/src/include/common/scram-common.h @@ -23,9 +23,6 @@ /* Length of SCRAM keys (client and server) */ #define SCRAM_KEY_LEN PG_SHA256_DIGEST_LENGTH -/* length of HMAC */ -#define SHA256_HMAC_B PG_SHA256_BLOCK_LENGTH - /* * Size of random nonce generated in the authentication exchange. This * is in "raw" number of bytes, the actual nonces sent over the wire are