Lines Matching refs:cipher_key
310 uint8_t *cipher_key = NULL, *iv = NULL, *auth_key = NULL; in ktls_copyin_tls_enable() local
317 tls->cipher_key = tls_v0.cipher_key; in ktls_copyin_tls_enable()
353 cipher_key = malloc(tls->cipher_key_len, M_KTLS, M_WAITOK); in ktls_copyin_tls_enable()
355 error = copyin(tls->cipher_key, cipher_key, tls->cipher_key_len); in ktls_copyin_tls_enable()
359 bcopy(tls->cipher_key, cipher_key, tls->cipher_key_len); in ktls_copyin_tls_enable()
382 tls->cipher_key = cipher_key; in ktls_copyin_tls_enable()
388 zfree(cipher_key, M_KTLS); in ktls_copyin_tls_enable()
399 zfree(__DECONST(void *, tls->cipher_key), M_KTLS); in ktls_cleanup_tls_enable()
798 tls->params.cipher_key = malloc(en->cipher_key_len, M_KTLS, M_WAITOK); in ktls_create_session()
799 bcopy(en->cipher_key, tls->params.cipher_key, en->cipher_key_len); in ktls_create_session()
860 tls_new->params.cipher_key = malloc(tls->params.cipher_key_len, M_KTLS, in ktls_clone_session()
862 memcpy(tls_new->params.cipher_key, tls->params.cipher_key, in ktls_clone_session()
2054 if (tls->params.cipher_key != NULL) { in ktls_destroy()
2055 zfree(tls->params.cipher_key, M_KTLS); in ktls_destroy()
2056 tls->params.cipher_key = NULL; in ktls_destroy()
3491 memcpy(data, ktls->params.cipher_key, tc); in ktls_session_copy_keys()