This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Description
Currently, Vita makes no special effort to isolate sensitive key material from other memory. Key material exists in the configuration (YANG configuration, the SAD written to /var/run/snabb) as well as in the heap when it is (de)serialized in and out of the SAD. Possible steps to gain control of key material in memory include:
- zeroing key material when no longer needed (
lib.ipsec.esp could use a :destroy() method, and the apps that handle key material could zero keys as well)
- investigate/extend
lib.yang with regards to encoding binary blobs containing key material as to avoid "loosing" them in the heap in their string representations.