Searched refs:number_of_ivs (Results 1 – 1 of 1) sorted by relevance
/Linux-v4.19/drivers/crypto/chelsio/chtls/ |
D | chtls_io.c | 229 u16 number_of_ivs; in tls_copy_ivs() local 235 number_of_ivs = nos_ivs(sk, skb->len); in tls_copy_ivs() 237 if (number_of_ivs > MAX_IVS_PAGE) { in tls_copy_ivs() 238 pr_warn("MAX IVs in PAGE exceeded %d\n", number_of_ivs); in tls_copy_ivs() 243 ivs = kmalloc_array(CIPHER_BLOCK_SIZE, number_of_ivs, GFP_ATOMIC); in tls_copy_ivs() 246 get_random_bytes(ivs, number_of_ivs * CIPHER_BLOCK_SIZE); in tls_copy_ivs() 250 iv_loc = (unsigned char *)__skb_push(skb, number_of_ivs * in tls_copy_ivs() 253 memcpy(iv_loc, ivs, number_of_ivs * CIPHER_BLOCK_SIZE); in tls_copy_ivs() 255 hws->ivsize = number_of_ivs * CIPHER_BLOCK_SIZE; in tls_copy_ivs() 267 memcpy(page_address(page), ivs, number_of_ivs * in tls_copy_ivs() [all …]
|