Lines Matching refs:sg
22 struct scatterlist sg[3]; in aead_encrypt() local
35 sg_init_table(sg, 3); in aead_encrypt()
36 sg_set_buf(&sg[0], __aad, aad_len); in aead_encrypt()
37 sg_set_buf(&sg[1], data, data_len); in aead_encrypt()
38 sg_set_buf(&sg[2], mic, mic_len); in aead_encrypt()
41 aead_request_set_crypt(aead_req, sg, sg, data_len, b_0); in aead_encrypt()
42 aead_request_set_ad(aead_req, sg[0].length); in aead_encrypt()
54 struct scatterlist sg[3]; in aead_decrypt() local
70 sg_init_table(sg, 3); in aead_decrypt()
71 sg_set_buf(&sg[0], __aad, aad_len); in aead_decrypt()
72 sg_set_buf(&sg[1], data, data_len); in aead_decrypt()
73 sg_set_buf(&sg[2], mic, mic_len); in aead_decrypt()
76 aead_request_set_crypt(aead_req, sg, sg, data_len + mic_len, b_0); in aead_decrypt()
77 aead_request_set_ad(aead_req, sg[0].length); in aead_decrypt()