Lines Matching refs:datalen
618 int err, datalen; in llsec_do_encrypt_unauth() local
624 datalen = skb_tail_pointer(skb) - data; in llsec_do_encrypt_unauth()
625 sg_init_one(&src, data, datalen); in llsec_do_encrypt_unauth()
629 skcipher_request_set_crypt(req, &src, &src, datalen, iv); in llsec_do_encrypt_unauth()
654 int authlen, assoclen, datalen, rc; in llsec_do_encrypt_auth() local
668 datalen = skb_tail_pointer(skb) - data; in llsec_do_encrypt_auth()
672 sg_init_one(&sg, skb_mac_header(skb), assoclen + datalen + authlen); in llsec_do_encrypt_auth()
675 assoclen += datalen; in llsec_do_encrypt_auth()
676 datalen = 0; in llsec_do_encrypt_auth()
680 aead_request_set_crypt(req, &sg, &sg, datalen, iv); in llsec_do_encrypt_auth()
833 int datalen; in llsec_do_decrypt_unauth() local
840 datalen = skb_tail_pointer(skb) - data; in llsec_do_decrypt_unauth()
842 sg_init_one(&src, data, datalen); in llsec_do_decrypt_unauth()
846 skcipher_request_set_crypt(req, &src, &src, datalen, iv); in llsec_do_decrypt_unauth()
860 int authlen, datalen, assoclen, rc; in llsec_do_decrypt_auth() local
874 datalen = skb_tail_pointer(skb) - data; in llsec_do_decrypt_auth()
876 sg_init_one(&sg, skb_mac_header(skb), assoclen + datalen); in llsec_do_decrypt_auth()
879 assoclen += datalen - authlen; in llsec_do_decrypt_auth()
880 datalen = authlen; in llsec_do_decrypt_auth()
884 aead_request_set_crypt(req, &sg, &sg, datalen, iv); in llsec_do_decrypt_auth()