Lines Matching refs:kctx
238 static void chtls_rxkey_ivauth(struct _key_ctx *kctx) in chtls_rxkey_ivauth() argument
240 kctx->iv_to_auth = cpu_to_be64(KEYCTX_TX_WR_IV_V(6ULL) | in chtls_rxkey_ivauth()
251 struct _key_ctx *kctx, in chtls_key_info() argument
317 kctx->ctx_hdr = FILL_KEY_CRX_HDR(ck_size, in chtls_key_info()
320 chtls_rxkey_ivauth(kctx); in chtls_key_info()
322 kctx->ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in chtls_key_info()
327 memcpy(kctx->salt, salt, salt_size); in chtls_key_info()
328 memcpy(kctx->key, key_p, keylen); in chtls_key_info()
329 memcpy(kctx->key + keylen, ghash_h, AEAD_H_SIZE); in chtls_key_info()
362 struct _key_ctx *kctx; in chtls_setkey() local
373 klen = roundup((keylen + AEAD_H_SIZE) + sizeof(*kctx), 32); in chtls_setkey()
422 kctx = (struct _key_ctx *)(kwr + 1); in chtls_setkey()
423 ret = chtls_key_info(csk, kctx, keylen, optname, cipher_type); in chtls_setkey()