Home
last modified time | relevance | path

Searched refs:CIPHER_BLOCK_SIZE (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_io.c52 int ivs_size = nos_ivs(sk, skb->len) * CIPHER_BLOCK_SIZE; in set_ivs_imm()
66 return nos_ivs(sk, size) * CIPHER_BLOCK_SIZE; in max_ivs_size()
72 CIPHER_BLOCK_SIZE) : 0; in ivs_size()
240 ivs = kmalloc_array(CIPHER_BLOCK_SIZE, number_of_ivs, GFP_ATOMIC); in tls_copy_ivs()
243 get_random_bytes(ivs, number_of_ivs * CIPHER_BLOCK_SIZE); in tls_copy_ivs()
248 CIPHER_BLOCK_SIZE); in tls_copy_ivs()
250 memcpy(iv_loc, ivs, number_of_ivs * CIPHER_BLOCK_SIZE); in tls_copy_ivs()
252 hws->ivsize = number_of_ivs * CIPHER_BLOCK_SIZE; in tls_copy_ivs()
265 CIPHER_BLOCK_SIZE); in tls_copy_ivs()
267 number_of_ivs * CIPHER_BLOCK_SIZE); in tls_copy_ivs()
H A Dchtls.h127 #define CIPHER_BLOCK_SIZE 16 macro