1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch 6f31acac76
sm: Support decryption of password based encryption (pwri)
* sm/decrypt.c (string_from_gcry_buffer): New.
(pwri_parse_pbkdf2): New.
(pwri_decrypt): New.
(prepare_decryption): Support pwri.
(gpgsm_decrypt): Test for PWRI.  Move IS_DE_VS flag to DFPARM.

* common/sexputil.c (cipher_mode_to_string): New.
--

Note that this is not finished because we need to implement a password
callback.  For now "abc" is used as passwort.

Latest libksba is also required to return the required info.

Signed-off-by: Werner Koch <wk@gnupg.org>
Backported-from-master: 02029f9eab87e9fd667829dfb083846275576398

Note that this change also prints the used algorithm and shows some
existsing diagnostics only in verbose mode.

Signed-off-by: Werner Koch <wk@gnupg.org>
2021-05-17 18:26:34 +02:00
..
2015-10-28 10:20:17 +01:00
2015-11-17 12:50:22 +01:00
2017-04-28 10:06:33 +09:00
2017-02-21 13:11:46 -05:00
2019-04-16 13:27:44 +09:00
2016-03-02 14:27:30 +01:00
2017-04-28 10:06:33 +09:00
2017-02-21 13:11:46 -05:00
2020-11-09 11:53:33 +01:00
2021-01-11 14:26:27 +01:00
2021-01-11 14:26:27 +01:00
2021-04-29 12:25:46 +02:00
2021-04-29 10:38:29 +02:00
2017-02-21 13:11:46 -05:00
2021-01-11 18:40:45 +01:00
2017-02-21 13:11:46 -05:00

Common functionality used by all modules of GnuPG.