postgres.git / summary / log / commit / refs
commit c6f6646bb0bef315c3836f3f6909c24a985a8621
Author: Michael Paquier <michael@paquier.xyz>
Date: Wed Dec 14 00:51:19 2022 +0000
First released in: 16.0
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 e1f5e786e01..4acf2a78adb 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
[parent: 20432f873140]