We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1177ab1 commit fe77741Copy full SHA for fe77741
src/include/common/scram-common.h
@@ -28,10 +28,17 @@
28
*/
29
#define SCRAM_RAW_NONCE_LEN 18
30
31
-/* length of salt when generating new verifiers */
32
-#define SCRAM_DEFAULT_SALT_LEN 12
+/*
+ * Length of salt when generating new verifiers, in bytes. (It will be stored
33
+ * and sent over the wire encoded in Base64.) 16 bytes is what the example in
34
+ * RFC 7677 uses.
35
+ */
36
+#define SCRAM_DEFAULT_SALT_LEN 16
37
-/* default number of iterations when generating verifier */
38
39
+ * Default number of iterations when generating verifier. Should be at least
40
+ * 4096 per RFC 7677.
41
42
#define SCRAM_DEFAULT_ITERATIONS 4096
43
44
/*
0 commit comments