HomeFreeBSD

Add zfree to zero allocation before free

Description

Add zfree to zero allocation before free

Key and cookie management typically wants to
avoid information leaks by explicitly zeroing
before free. This routine simplifies that by
permitting consumers to do so without carrying
the size around.

Reviewed by: jeff@, jhb@
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC (Netgate)
Differential Revision: https://reviews.freebsd.org/D22790

Details

Provenance
mmacyAuthored on
Differential Revision
D22790: add zfree to zero allocation before free
Parents
rS357986: Add chacha20poly1305 support to crypto build
Branches
Unknown
Tags
Unknown