Lines Matching refs:kctx
530 struct tls_keyctx *kctx) in t4_tls_key_ctx() argument
538 kctx->u.txhdr.ctxlen = t4_tls_key_info_size(tls) / 16; in t4_tls_key_ctx()
539 kctx->u.txhdr.dualck_to_txvalid = in t4_tls_key_ctx()
545 kctx->u.txhdr.dualck_to_txvalid |= in t4_tls_key_ctx()
547 kctx->u.txhdr.dualck_to_txvalid = in t4_tls_key_ctx()
548 htobe16(kctx->u.txhdr.dualck_to_txvalid); in t4_tls_key_ctx()
550 kctx->u.rxhdr.flitcnt_hmacctrl = in t4_tls_key_ctx()
554 kctx->u.rxhdr.protover_ciphmode = in t4_tls_key_ctx()
558 kctx->u.rxhdr.authmode_to_rxvalid = in t4_tls_key_ctx()
563 kctx->u.rxhdr.ivpresent_to_rxmk_size = in t4_tls_key_ctx()
569 kctx->u.rxhdr.ivinsert_to_authinsrt = in t4_tls_key_ctx()
579 kctx->u.rxhdr.authmode_to_rxvalid |= in t4_tls_key_ctx()
581 kctx->u.rxhdr.ivpresent_to_rxmk_size |= in t4_tls_key_ctx()
583 kctx->u.rxhdr.ivinsert_to_authinsrt = in t4_tls_key_ctx()
598 t4_aes_getdeckey(kctx->keys.edkey, tls->params.cipher_key, in t4_tls_key_ctx()
601 memcpy(kctx->keys.edkey, tls->params.cipher_key, in t4_tls_key_ctx()
605 hash = kctx->keys.edkey + tls->params.cipher_key_len; in t4_tls_key_ctx()
610 memcpy(kctx->u.txhdr.txsalt, tls->params.iv, SALT_SIZE); in t4_tls_key_ctx()