Home
last modified time | relevance | path

Searched refs:ck_size (Results 1 – 6 of 6) sorted by relevance

/drivers/crypto/chelsio/
Dchcr_algo.h170 #define FILL_KEY_CTX_HDR(ck_size, mk_size, d_ck, opad, ctx_len) \ argument
172 KEY_CONTEXT_CK_SIZE_V((ck_size)) | \
179 #define FILL_KEY_CRX_HDR(ck_size, mk_size, d_ck, opad, ctx_len) \ argument
181 TLS_KEYCTX_RXCK_SIZE_V(ck_size) | \
Dchcr_algo.c907 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_KEY, in chcr_aes_cbc_setkey()
[all …]
/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_common.h51 #define FILL_KEY_CTX_HDR(ck_size, mk_size, ctx_len) \ argument
53 KEY_CONTEXT_CK_SIZE_V(ck_size) | \
Dchcr_ktls.c75 int ck_size, key_ctx_size, mac_key_size, keylen, ghash_size, ret; in chcr_ktls_save_keys() local
87 ck_size = CHCR_KEYCTX_CIPHER_KEY_SIZE_128; in chcr_ktls_save_keys()
151 kctx->ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in chcr_ktls_save_keys()
/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_hw.c258 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()
/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
Dchcr_ipsec.c173 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()