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 Mon, Sep 13, 4:45 PM
Parents
rC709a41ef540e: hmac: Use xfree.
Branches
Unknown
Tags
Unknown
References
LIBGCRYPT-1.8-BRANCH
Tasks
T5597: First 8 bytes of cache item left in clear in memory after decryption.