/kernel/linux/linux-5.10/drivers/crypto/chelsio/ |
H A D | chcr_algo.h | 170 #define FILL_KEY_CTX_HDR(ck_size, mk_size, d_ck, opad, ctx_len) \ 172 KEY_CONTEXT_CK_SIZE_V((ck_size)) | \ 179 #define FILL_KEY_CRX_HDR(ck_size, mk_size, d_ck, opad, ctx_len) \ 181 TLS_KEYCTX_RXCK_SIZE_V(ck_size) | \
|
H A D | chcr_algo.c | 907 int ck_size = 0; in chcr_keyctx_ck_size() local 910 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_128; in chcr_keyctx_ck_size() 912 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_192; in chcr_keyctx_ck_size() 914 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_256; in chcr_keyctx_ck_size() 916 ck_size = 0; in chcr_keyctx_ck_size() 918 return ck_size; in chcr_keyctx_ck_size() 938 unsigned int ck_size, context_size; in chcr_aes_cbc_setkey() local 946 ck_size = chcr_keyctx_ck_size(keylen); in chcr_aes_cbc_setkey() 947 alignment = ck_size == CHCR_KEYCTX_CIPHER_KEY_SIZE_192 ? 8 : 0; in chcr_aes_cbc_setkey() 954 ablkctx->key_ctx_hdr = FILL_KEY_CTX_HDR(ck_size, CHCR_KEYCTX_NO_KE in chcr_aes_cbc_setkey() 969 unsigned int ck_size, context_size; chcr_aes_ctr_setkey() local 999 unsigned int ck_size, context_size; chcr_aes_rfc3686_setkey() local 3430 unsigned char ck_size, mk_size; chcr_ccm_common_setkey() local 3497 unsigned int ck_size; chcr_gcm_setkey() local 3560 unsigned char ck_size = 0; chcr_authenc_setkey() local 3688 unsigned char ck_size = 0; chcr_aead_digest_null_setkey() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/chelsio/ |
H A D | chcr_algo.h | 170 #define FILL_KEY_CTX_HDR(ck_size, mk_size, d_ck, opad, ctx_len) \ 172 KEY_CONTEXT_CK_SIZE_V((ck_size)) | \ 179 #define FILL_KEY_CRX_HDR(ck_size, mk_size, d_ck, opad, ctx_len) \ 181 TLS_KEYCTX_RXCK_SIZE_V(ck_size) | \
|
H A D | chcr_algo.c | 900 int ck_size = 0; in chcr_keyctx_ck_size() local 903 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_128; in chcr_keyctx_ck_size() 905 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_192; in chcr_keyctx_ck_size() 907 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_256; in chcr_keyctx_ck_size() 909 ck_size = 0; in chcr_keyctx_ck_size() 911 return ck_size; in chcr_keyctx_ck_size() 931 unsigned int ck_size, context_size; in chcr_aes_cbc_setkey() local 939 ck_size = chcr_keyctx_ck_size(keylen); in chcr_aes_cbc_setkey() 940 alignment = ck_size == CHCR_KEYCTX_CIPHER_KEY_SIZE_192 ? 8 : 0; in chcr_aes_cbc_setkey() 947 ablkctx->key_ctx_hdr = FILL_KEY_CTX_HDR(ck_size, CHCR_KEYCTX_NO_KE in chcr_aes_cbc_setkey() 962 unsigned int ck_size, context_size; chcr_aes_ctr_setkey() local 992 unsigned int ck_size, context_size; chcr_aes_rfc3686_setkey() local 3426 unsigned char ck_size, mk_size; chcr_ccm_common_setkey() local 3493 unsigned int ck_size; chcr_gcm_setkey() local 3556 unsigned char ck_size = 0; chcr_authenc_setkey() local 3684 unsigned char ck_size = 0; chcr_aead_digest_null_setkey() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_hw.c | 258 int ck_size, key_ctx_size, kctx_mackey_size, salt_size; in chtls_key_info() local 277 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_128; in chtls_key_info() 290 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_256; in chtls_key_info() 317 kctx->ctx_hdr = FILL_KEY_CRX_HDR(ck_size, in chtls_key_info() 322 kctx->ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in chtls_key_info()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_hw.c | 258 int ck_size, key_ctx_size, kctx_mackey_size, salt_size; in chtls_key_info() local 277 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_128; in chtls_key_info() 290 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_256; in chtls_key_info() 317 kctx->ctx_hdr = FILL_KEY_CRX_HDR(ck_size, in chtls_key_info() 322 kctx->ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in chtls_key_info()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_common.h | 51 #define FILL_KEY_CTX_HDR(ck_size, mk_size, ctx_len) \ 53 KEY_CONTEXT_CK_SIZE_V(ck_size) | \
|
H A D | chcr_ktls.c | 74 int ck_size, key_ctx_size, mac_key_size, keylen, ghash_size, ret; in chcr_ktls_save_keys() local 86 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_128; in chcr_ktls_save_keys() 154 kctx->ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in chcr_ktls_save_keys()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_common.h | 51 #define FILL_KEY_CTX_HDR(ck_size, mk_size, ctx_len) \ 53 KEY_CONTEXT_CK_SIZE_V(ck_size) | \
|
H A D | chcr_ktls.c | 74 int ck_size, key_ctx_size, mac_key_size, keylen, ghash_size, ret; in chcr_ktls_save_keys() local 86 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_128; in chcr_ktls_save_keys() 150 kctx->ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in chcr_ktls_save_keys()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
H A D | chcr_ipsec.c | 173 int ck_size, key_ctx_size = 0; in ch_ipsec_setkey() local 184 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_128; in ch_ipsec_setkey() 186 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_192; in ch_ipsec_setkey() 188 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_256; in ch_ipsec_setkey() 201 sa_entry->key_ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in ch_ipsec_setkey()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
H A D | chcr_ipsec.c | 172 int ck_size, key_ctx_size = 0; in ch_ipsec_setkey() local 183 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_128; in ch_ipsec_setkey() 185 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_192; in ch_ipsec_setkey() 187 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_256; in ch_ipsec_setkey() 200 sa_entry->key_ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in ch_ipsec_setkey()
|