Lines Matching refs:cctx
2337 struct cipher_context *cctx; in tls_set_sw_offload() local
2381 cctx = &ctx->tx; in tls_set_sw_offload()
2390 cctx = &ctx->rx; in tls_set_sw_offload()
2525 cctx->iv = kmalloc(iv_size + salt_size, GFP_KERNEL); in tls_set_sw_offload()
2526 if (!cctx->iv) { in tls_set_sw_offload()
2532 memcpy(cctx->iv, salt, salt_size); in tls_set_sw_offload()
2533 memcpy(cctx->iv + salt_size, iv, iv_size); in tls_set_sw_offload()
2534 cctx->rec_seq = kmemdup(rec_seq, rec_seq_size, GFP_KERNEL); in tls_set_sw_offload()
2535 if (!cctx->rec_seq) { in tls_set_sw_offload()
2584 kfree(cctx->rec_seq); in tls_set_sw_offload()
2585 cctx->rec_seq = NULL; in tls_set_sw_offload()
2587 kfree(cctx->iv); in tls_set_sw_offload()
2588 cctx->iv = NULL; in tls_set_sw_offload()