Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/uipc_ktls.c
Show First 20 Lines • Show All 676 Lines • ▼ Show 20 Lines | case TCP_TLS_MODE_TOE: | ||||
case CRYPTO_AES_NIST_GCM_16: | case CRYPTO_AES_NIST_GCM_16: | ||||
counter_u64_add(ktls_toe_gcm, -1); | counter_u64_add(ktls_toe_gcm, -1); | ||||
break; | break; | ||||
} | } | ||||
break; | break; | ||||
#endif | #endif | ||||
} | } | ||||
if (tls->params.auth_key != NULL) { | if (tls->params.auth_key != NULL) { | ||||
explicit_bzero(tls->params.auth_key, tls->params.auth_key_len); | zfree(tls->params.auth_key, M_KTLS); | ||||
free(tls->params.auth_key, M_KTLS); | |||||
tls->params.auth_key = NULL; | tls->params.auth_key = NULL; | ||||
tls->params.auth_key_len = 0; | tls->params.auth_key_len = 0; | ||||
} | } | ||||
if (tls->params.cipher_key != NULL) { | if (tls->params.cipher_key != NULL) { | ||||
explicit_bzero(tls->params.cipher_key, | zfree(tls->params.cipher_key, M_KTLS); | ||||
tls->params.cipher_key_len); | |||||
free(tls->params.cipher_key, M_KTLS); | |||||
tls->params.cipher_key = NULL; | tls->params.cipher_key = NULL; | ||||
tls->params.cipher_key_len = 0; | tls->params.cipher_key_len = 0; | ||||
} | } | ||||
explicit_bzero(tls->params.iv, sizeof(tls->params.iv)); | explicit_bzero(tls->params.iv, sizeof(tls->params.iv)); | ||||
} | } | ||||
#if defined(INET) || defined(INET6) | #if defined(INET) || defined(INET6) | ||||
▲ Show 20 Lines • Show All 950 Lines • Show Last 20 Lines |