Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d51b087 commit cf98e38Copy full SHA for cf98e38
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