Lines Matching refs:kctx_len
430 struct chcr_wr *crwr, u_int kctx_len, u_int wr_len, u_int imm_len, in ccr_populate_wreq() argument
435 cctx_size = sizeof(struct _key_ctx) + kctx_len; in ccr_populate_wreq()
482 u_int hash_size_in_response, kctx_flits, kctx_len, transhdr_len, wr_len; in ccr_hash() local
507 kctx_len = iopad_size; in ccr_hash()
509 kctx_len += iopad_size; in ccr_hash()
511 transhdr_len = HASH_TRANSHDR_SIZE(kctx_len); in ccr_hash()
543 ccr_populate_wreq(sc, s, crwr, kctx_len, wr_len, imm_len, sgl_len, in ccr_hash()
571 memcpy(crwr->key_ctx.key, s->hmac.pads, kctx_len); in ccr_hash()
574 kctx_flits = (sizeof(struct _key_ctx) + kctx_len) / 16; in ccr_hash()
581 dst = (char *)(crwr + 1) + kctx_len + DUMMY_BYTES; in ccr_hash()
626 u_int kctx_len, key_half, op_type, transhdr_len, wr_len; in ccr_cipher() local
662 kctx_len = roundup2(s->cipher.key_len, 16); in ccr_cipher()
663 transhdr_len = CIPHER_TRANSHDR_SIZE(kctx_len, dsgl_len); in ccr_cipher()
703 ccr_populate_wreq(sc, s, crwr, kctx_len, wr_len, imm_len, sgl_len, 0, in ccr_cipher()
763 dst = (char *)(crwr + 1) + kctx_len; in ccr_cipher()
819 u_int kctx_len, key_half, op_type, transhdr_len, wr_len; in ccr_eta() local
908 kctx_len = roundup2(s->cipher.key_len, 16) + iopad_size * 2; in ccr_eta()
909 transhdr_len = CIPHER_TRANSHDR_SIZE(kctx_len, dsgl_len); in ccr_eta()
1004 ccr_populate_wreq(sc, s, crwr, kctx_len, wr_len, imm_len, sgl_len, in ccr_eta()
1074 dst = (char *)(crwr + 1) + kctx_len; in ccr_eta()
1123 u_int iv_len, kctx_len, op_type, transhdr_len, wr_len; in ccr_gcm() local
1208 kctx_len = roundup2(s->cipher.key_len, 16) + GMAC_BLOCK_LEN; in ccr_gcm()
1209 transhdr_len = CIPHER_TRANSHDR_SIZE(kctx_len, dsgl_len); in ccr_gcm()
1291 ccr_populate_wreq(sc, s, crwr, kctx_len, wr_len, imm_len, sgl_len, 0, in ccr_gcm()
1345 dst = (char *)(crwr + 1) + kctx_len; in ccr_gcm()
1453 u_int iv_len, kctx_len, op_type, transhdr_len, wr_len; in ccr_ccm() local
1558 kctx_len = roundup2(s->cipher.key_len, 16) * 2; in ccr_ccm()
1559 transhdr_len = CIPHER_TRANSHDR_SIZE(kctx_len, dsgl_len); in ccr_ccm()
1643 ccr_populate_wreq(sc, s, crwr, kctx_len, wr_len, imm_len, sgl_len, 0, in ccr_ccm()
1692 dst = (char *)(crwr + 1) + kctx_len; in ccr_ccm()
2082 unsigned int ck_size, iopad_size, kctx_flits, kctx_len, kbits, mk_size; in ccr_aes_setkey() local
2112 kctx_len = roundup2(s->cipher.key_len, 16); in ccr_aes_setkey()
2118 kctx_len += iopad_size * 2; in ccr_aes_setkey()
2123 kctx_len += GMAC_BLOCK_LEN; in ccr_aes_setkey()
2140 kctx_len *= 2; in ccr_aes_setkey()
2147 kctx_flits = (sizeof(struct _key_ctx) + kctx_len) / 16; in ccr_aes_setkey()