Home GnuPG

cipher: Clear AESWRAP scratch area immediately after use

Description

cipher: Clear AESWRAP scratch area immediately after use

* cipher/cipher-aeswrap.c (_gcry_cipher_aeswrap_decrypt): Call
wipememory.

Note that gcry_cipher_close will do this also but some applications
keep the context for a long time and thus plaintext could be found in
memory during the time the context is open.

Details

Provenance
wernerAuthored on Sep 13 2021, 4:45 PM
Parents
rC709a41ef540e: hmac: Use xfree.
Branches
Unknown
Tags
Unknown
Tasks
T5597: First 8 bytes of cache item left in clear in memory after decryption.