Home GnuPG

Disallow encryption/decryption if key is not set
07de98580328Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Disallow encryption/decryption if key is not set

* cipher/cipher.c (cipher_encrypt, cipher_decrypt): If mode is not
NONE, make sure that key is set.
* cipher/cipher-ccm.c (_gcry_cipher_ccm_set_nonce): Do not clear
'marks.key' when reseting state.
  • Reported-by: Andreas Metzler <ametzler@bebt.de>
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Jun 30 2016, 8:51 PM
Parents
rCa6158a01a4d8: Avoid unaligned accesses with ARM ldm/stm instructions
Branches
Unknown
Tags
Unknown

Event Timeline

Jussi Kivilinna <jussi.kivilinna@iki.fi> committed rC07de98580328: Disallow encryption/decryption if key is not set (authored by Jussi Kivilinna <jussi.kivilinna@iki.fi>).Jun 30 2016, 10:33 PM