Searched refs:number_of_ivs (Results 1 – 1 of 1) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
D | chtls_io.c | 226 u16 number_of_ivs; in tls_copy_ivs() local 232 number_of_ivs = nos_ivs(sk, skb->len); in tls_copy_ivs() 234 if (number_of_ivs > MAX_IVS_PAGE) { in tls_copy_ivs() 235 pr_warn("MAX IVs in PAGE exceeded %d\n", number_of_ivs); in tls_copy_ivs() 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() 247 iv_loc = (unsigned char *)__skb_push(skb, number_of_ivs * 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() 264 memcpy(page_address(page), ivs, number_of_ivs * in tls_copy_ivs() [all …]
|