[HACKERS] SCRAM salt length - Mailing list pgsql-hackers

From Peter Eisentraut
Subject [HACKERS] SCRAM salt length
Date
Msg-id 12cc9297-7e05-932f-d863-765e5626ead4@2ndquadrant.com
Whole thread Raw
Responses Re: [HACKERS] SCRAM salt length  (Aleksander Alekseev <a.alekseev@postgrespro.ru>)
Re: [HACKERS] SCRAM salt length  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
The SCRAM salt length is currently set as

/* length of salt when generating new verifiers */
#define SCRAM_DEFAULT_SALT_LEN     12

without further comment.

I suspect that this length was chosen based on the example in RFC 5802
(SCRAM-SHA-1) section 5.  But the analogous example in RFC 7677
(SCRAM-SHA-256) section 3 uses a length of 16.  Should we use that instead?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] Parallel Append implementation
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] [BUGS] [postgresql 10 beta3] unrecognized node type: 90