Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netipsec/xform_esp.c
Show First 20 Lines • Show All 237 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
/* | /* | ||||
* Paranoia. | * Paranoia. | ||||
*/ | */ | ||||
static int | static int | ||||
esp_zeroize(struct secasvar *sav) | esp_zeroize(struct secasvar *sav) | ||||
{ | { | ||||
/* NB: ah_zerorize free's the crypto session state */ | /* NB: ah_zeroize free's the crypto session state */ | ||||
int error = ah_zeroize(sav); | int error = ah_zeroize(sav); | ||||
if (sav->key_enc) | |||||
bzero(sav->key_enc->key_data, _KEYLEN(sav->key_enc)); | |||||
sav->tdb_encalgxform = NULL; | sav->tdb_encalgxform = NULL; | ||||
sav->tdb_xform = NULL; | sav->tdb_xform = NULL; | ||||
return error; | return error; | ||||
} | } | ||||
/* | /* | ||||
* ESP input processing, called (eventually) through the protocol switch. | * ESP input processing, called (eventually) through the protocol switch. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 719 Lines • Show Last 20 Lines |