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
|
@ -607,7 +607,7 @@ proc_encrypted (CTX c, PACKET *pkt)
|
|||
/* Overriding session key voids compliance. */
|
||||
&& opt.override_session_key == NULL
|
||||
/* Check symmetric cipher. */
|
||||
&& gnupg_cipher_is_compliant (CO_DE_VS, c->dek->algo))
|
||||
&& gnupg_cipher_is_compliant (CO_DE_VS, c->dek->algo, GCRY_CIPHER_MODE_CFB))
|
||||
{
|
||||
struct kidlist_item *i;
|
||||
int compliant = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue