diff options
author | John Baldwin <jhb@FreeBSD.org> | 2019-11-13 00:53:45 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2019-11-13 00:53:45 +0000 |
commit | a1b2b6e1844e845c3ac401db7f0a07b6245d6e2a (patch) | |
tree | b306d80869ae4e3529e7ab6ef9de6e3e90751478 /sys/dev/cxgbe/adapter.h | |
parent | 9f96f106f8ba348dd2712366352d8d9a16988523 (diff) | |
download | src-a1b2b6e1844e845c3ac401db7f0a07b6245d6e2a.tar.gz src-a1b2b6e1844e845c3ac401db7f0a07b6245d6e2a.zip |
Create a file to hold shared routines for dealing with T6 key contexts.
ccr(4) and TLS support in cxgbe(4) construct key contexts used by the
crypto engine in the T6. This consolidates some duplicated code for
helper functions used to build key contexts.
Reviewed by: np
MFC after: 1 month
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D22156
Notes
Notes:
svn path=/head/; revision=354667
Diffstat (limited to 'sys/dev/cxgbe/adapter.h')
-rw-r--r-- | sys/dev/cxgbe/adapter.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/adapter.h b/sys/dev/cxgbe/adapter.h index a3d327dbf42c..d4bac3f4065f 100644 --- a/sys/dev/cxgbe/adapter.h +++ b/sys/dev/cxgbe/adapter.h @@ -1142,7 +1142,6 @@ void t4_os_link_changed(struct port_info *); void t4_iterate(void (*)(struct adapter *, void *), void *); void t4_init_devnames(struct adapter *); void t4_add_adapter(struct adapter *); -void t4_aes_getdeckey(void *, const void *, unsigned int); int t4_detach_common(device_t); int t4_map_bars_0_and_4(struct adapter *); int t4_map_bar_2(struct adapter *); @@ -1170,6 +1169,15 @@ void cxgbe_media_status(struct ifnet *, struct ifmediareq *); bool t4_os_dump_cimla(struct adapter *, int, bool); void t4_os_dump_devlog(struct adapter *); +/* t4_keyctx.c */ +struct auth_hash; +union authctx; + +void t4_aes_getdeckey(void *, const void *, unsigned int); +void t4_copy_partial_hash(int, union authctx *, void *); +void t4_init_gmac_hash(const char *, int, char *); +void t4_init_hmac_digest(struct auth_hash *, u_int, char *, int, char *); + #ifdef DEV_NETMAP /* t4_netmap.c */ struct sge_nm_rxq; |