Skip to main content

clear_derived_key_cache

Function clear_derived_key_cache 

Source
pub fn clear_derived_key_cache()
Expand description

Forget every key derived so far in this process.

The cache is consulted before the key file is even looked at, so anything that changes what the key file means — rotating it, moving it, losing it — has to drop the cache or the process keeps using the key it derived earlier.