Lines Matching refs:tls
104 const struct ktls_session *tls, struct sge_txq *txq);
376 const struct ktls_session *tls; in t6_tls_tag_alloc() local
385 tls = params->tls.tls; in t6_tls_tag_alloc()
388 if (tls->params.tls_vmajor != TLS_MAJOR_VER_ONE || in t6_tls_tag_alloc()
389 tls->params.tls_vminor < TLS_MINOR_VER_ONE || in t6_tls_tag_alloc()
390 tls->params.tls_vminor > TLS_MINOR_VER_TWO) in t6_tls_tag_alloc()
394 switch (tls->params.cipher_algorithm) { in t6_tls_tag_alloc()
397 switch (tls->params.cipher_key_len) { in t6_tls_tag_alloc()
405 switch (tls->params.auth_algorithm) { in t6_tls_tag_alloc()
417 if (tls->params.iv_len != SALT_SIZE) in t6_tls_tag_alloc()
419 switch (tls->params.cipher_key_len) { in t6_tls_tag_alloc()
460 inp = params->tls.inp; in t6_tls_tag_alloc()
521 error = ktls_setup_keys(tlsp, tls, txq); in t6_tls_tag_alloc()
525 tlsp->enc_mode = t4_tls_cipher_mode(tls); in t6_tls_tag_alloc()
526 tlsp->tx_key_info_size = t4_tls_key_info_size(tls); in t6_tls_tag_alloc()
530 V_SCMD_PROTO_VERSION(t4_tls_proto_ver(tls)) | in t6_tls_tag_alloc()
534 V_SCMD_AUTH_MODE(t4_tls_auth_mode(tls)) | in t6_tls_tag_alloc()
535 V_SCMD_HMAC_CTRL(t4_tls_hmac_ctrl(tls)) | in t6_tls_tag_alloc()
587 ktls_setup_keys(struct tlspcb *tlsp, const struct ktls_session *tls, in ktls_setup_keys() argument
603 t4_tls_key_ctx(tls, KTLS_TX, &tlsp->keyctx); in ktls_setup_keys()
619 t4_write_tlskey_wr(tls, KTLS_TX, tlsp->tid, 0, tlsp->tx_key_addr, kwr); in ktls_setup_keys()