Home GnuPG
Diffusion GnuPG 02029f9eab87

sm: Support decryption of password based encryption (pwri)

Description

sm: Support decryption of password based encryption (pwri)

* sm/decrypt.c (pwri_parse_pbkdf2): New.
(pwri_decrypt): New.
(prepare_decryption): Support pwri.
(gpgsm_decrypt): Test for PWRI.  Move IS_DE_VS flag to DFPARM.

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>

Details

Provenance
wernerAuthored on May 14 2021, 6:53 PM
Parents
rG58b330e935b9: scd: Remove wrong assertion and add protection to PCSC.COUNT.
Branches
Unknown
Tags
Unknown