Milan Broz
5a032abc33
Fix partial reads from TTY (interactive terminal).
...
Some stable kernels started to return buffer from terminal
in partial buffers of maximal size 64 bytes.
This breaks all passphrases longer than 64 characters entered
through interactive input (for all crypto formats).
(The problem is probably fixed in more recent kernels, but
the read() call can always return a partial read here.)
This patch also fixes wrong password limit, the last character
of passphrase of maximal size was never handled.
Now the maximal passphrase length is really 512 characters.
Fixes : #627 .
2021-03-09 20:36:44 +01:00
..
2020-08-27 14:17:38 +02:00
2019-10-03 14:01:27 +02:00
2019-06-20 15:11:56 +02:00
2020-08-26 15:41:44 +02:00
2021-02-07 16:09:13 +01:00
2021-02-26 00:16:06 +01:00
2021-02-26 00:16:06 +01:00
2021-02-07 17:37:18 +01:00
2021-02-07 16:09:12 +01:00
2018-07-11 22:23:10 +02:00
2019-03-08 08:16:45 +01:00
2021-03-09 20:36:44 +01:00
2021-02-26 00:16:06 +01:00
2017-09-24 19:50:17 +02:00
2018-08-06 13:48:54 +02:00
2018-08-06 13:48:54 +02:00
2017-10-29 18:29:35 +01:00
2021-02-07 16:09:13 +01:00
2021-02-07 17:37:06 +01:00
2021-03-02 16:44:18 +01:00
2021-02-07 16:09:13 +01:00
2019-06-20 15:11:56 +02:00
2018-08-06 13:48:54 +02:00
2018-08-06 13:48:54 +02:00
2018-08-06 13:48:54 +02:00
2018-08-06 13:48:54 +02:00
2018-08-06 13:48:54 +02:00
2018-11-05 12:00:01 +01:00
2018-08-06 13:48:54 +02:00
2018-08-06 13:48:54 +02:00
2021-02-07 19:58:49 +01:00
2019-07-31 10:27:58 +02:00
2019-06-20 15:11:56 +02:00
2019-06-20 15:11:56 +02:00
2019-06-20 15:11:56 +02:00
2018-08-06 13:48:54 +02:00
2017-10-29 18:53:16 +01:00
2017-10-29 18:53:16 +01:00
2017-10-29 18:53:16 +01:00
2018-11-29 13:32:02 +01:00
2018-11-26 16:28:01 +01:00
2019-11-25 23:16:53 +01:00
2021-03-02 17:25:00 +01:00
2020-08-27 14:17:38 +02:00
2021-03-03 12:11:24 +01:00
2019-05-06 15:42:11 +02:00
2019-07-12 15:37:18 +02:00
2019-06-20 15:11:56 +02:00
2021-02-07 16:09:13 +01:00
2021-02-07 16:09:13 +01:00
2020-03-16 17:09:41 +01:00
2020-03-16 17:09:41 +01:00
2021-02-07 16:09:13 +01:00
2021-02-07 16:09:13 +01:00
2021-02-08 21:43:40 +01:00
2021-02-08 21:43:40 +01:00
2018-08-06 13:48:54 +02:00
2021-02-26 00:16:05 +01:00