mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
common: Add cipher mode to compliance predicate.
* common/compliance.c (gnupg_cipher_is_compliant): Add mode parameter. * common/compliance.h (gnupg_cipher_is_compliant): Likewise. * g10/mainproc.c (proc_encrypted): Adapt callsite. * sm/decrypt.c (gpgsm_decrypt): Likewise. GnuPG-bug-id: 3059 Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
21fc2508c9
commit
e051e39615
4 changed files with 17 additions and 7 deletions
|
@ -359,8 +359,7 @@ gpgsm_decrypt (ctrl_t ctrl, int in_fd, estream_t out_fp)
|
|||
}
|
||||
|
||||
/* For CMS, CO_DE_VS demands CBC mode. */
|
||||
is_de_vs = (mode == GCRY_CIPHER_MODE_CBC
|
||||
&& gnupg_cipher_is_compliant (CO_DE_VS, algo));
|
||||
is_de_vs = gnupg_cipher_is_compliant (CO_DE_VS, algo, mode);
|
||||
|
||||
audit_log_i (ctrl->audit, AUDIT_DATA_CIPHER_ALGO, algo);
|
||||
dfparm.algo = algo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue