Skip to content

Commit c6f6646

Browse files
committed
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
1 parent 20432f8 commit c6f6646

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/include/common/scram-common.h

-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
/* Length of SCRAM keys (client and server) */
2424
#define SCRAM_KEY_LEN PG_SHA256_DIGEST_LENGTH
2525

26-
/* length of HMAC */
27-
#define SHA256_HMAC_B PG_SHA256_BLOCK_LENGTH
28-
2926
/*
3027
* Size of random nonce generated in the authentication exchange. This
3128
* is in "raw" number of bytes, the actual nonces sent over the wire are

0 commit comments

Comments
 (0)