Lines Matching refs:apkt
104 struct cipher_aead_pkt *apkt, struct cipher_pkt *pkt) in prepare_cipher_aead_pkt() argument
125 apkt->ad = is_authenticated ? frame : NULL; in prepare_cipher_aead_pkt()
126 apkt->ad_len = auth_len; in prepare_cipher_aead_pkt()
127 apkt->tag = is_authenticated ? frame + ll_hdr_len + payload_len : NULL; in prepare_cipher_aead_pkt()
128 apkt->pkt = pkt; in prepare_cipher_aead_pkt()
135 struct cipher_aead_pkt apkt; in ieee802154_decrypt_auth() local
152 prepare_cipher_aead_pkt(frame, level, ll_hdr_len, payload_len, authtag_len, &apkt, &pkt); in ieee802154_decrypt_auth()
154 ret = cipher_ccm_op(&sec_ctx->dec, &apkt, nonce); in ieee802154_decrypt_auth()
168 struct cipher_aead_pkt apkt; in ieee802154_encrypt_auth() local
195 prepare_cipher_aead_pkt(frame, level, ll_hdr_len, payload_len, authtag_len, &apkt, &pkt); in ieee802154_encrypt_auth()
197 ret = cipher_ccm_op(&sec_ctx->enc, &apkt, nonce); in ieee802154_encrypt_auth()