Home
last modified time | relevance | path

Searched refs:ad_len (Results 1 – 5 of 5) sorted by relevance

/linux-5.19.10/lib/crypto/
Dchacha20poly1305.c58 const u8 *ad, const size_t ad_len, u32 *chacha_state) in __chacha20poly1305_encrypt() argument
70 poly1305_update(&poly1305_state, ad, ad_len); in __chacha20poly1305_encrypt()
71 if (ad_len & 0xf) in __chacha20poly1305_encrypt()
72 poly1305_update(&poly1305_state, pad0, 0x10 - (ad_len & 0xf)); in __chacha20poly1305_encrypt()
80 b.lens[0] = cpu_to_le64(ad_len); in __chacha20poly1305_encrypt()
91 const u8 *ad, const size_t ad_len, in chacha20poly1305_encrypt() argument
105 __chacha20poly1305_encrypt(dst, src, src_len, ad, ad_len, chacha_state); in chacha20poly1305_encrypt()
113 const u8 *ad, const size_t ad_len, in xchacha20poly1305_encrypt() argument
120 __chacha20poly1305_encrypt(dst, src, src_len, ad, ad_len, chacha_state); in xchacha20poly1305_encrypt()
126 const u8 *ad, const size_t ad_len, u32 *chacha_state) in __chacha20poly1305_decrypt() argument
[all …]
Dchacha20poly1305-selftest.c8829 const u8 *ad, const size_t ad_len, in chacha20poly1305_encrypt_bignonce() argument
8850 poly1305_update(&poly1305_state, ad, ad_len); in chacha20poly1305_encrypt_bignonce()
8851 poly1305_update(&poly1305_state, pad0, (0x10 - ad_len) & 0xf); in chacha20poly1305_encrypt_bignonce()
8855 b.lens[0] = cpu_to_le64(ad_len); in chacha20poly1305_encrypt_bignonce()
8863 const u8 *ad, const size_t ad_len, in chacha20poly1305_selftest_encrypt() argument
8868 chacha20poly1305_encrypt(dst, src, src_len, ad, ad_len, in chacha20poly1305_selftest_encrypt()
8872 ad_len, nonce, key); in chacha20poly1305_selftest_encrypt()
/linux-5.19.10/include/crypto/
Dchacha20poly1305.h19 const u8 *ad, const size_t ad_len,
25 const u8 *ad, const size_t ad_len, const u64 nonce,
29 const u8 *ad, const size_t ad_len,
35 const size_t ad_len, const u8 nonce[XCHACHA20POLY1305_NONCE_SIZE],
39 const u8 *ad, const size_t ad_len,
44 const u8 *ad, const size_t ad_len,
/linux-5.19.10/net/bluetooth/
Deir.c16 u8 eir_append_local_name(struct hci_dev *hdev, u8 *ptr, u8 ad_len) in eir_append_local_name() argument
22 if ((HCI_MAX_AD_LENGTH - ad_len) < HCI_MAX_SHORT_NAME_LENGTH + 3) in eir_append_local_name()
23 return ad_len; in eir_append_local_name()
28 return eir_append_data(ptr, ad_len, EIR_NAME_COMPLETE, in eir_append_local_name()
34 return eir_append_data(ptr, ad_len, EIR_NAME_SHORT, in eir_append_local_name()
46 return eir_append_data(ptr, ad_len, EIR_NAME_SHORT, name, in eir_append_local_name()
50 return ad_len; in eir_append_local_name()
53 u8 eir_append_appearance(struct hci_dev *hdev, u8 *ptr, u8 ad_len) in eir_append_appearance() argument
55 return eir_append_le16(ptr, ad_len, EIR_APPEARANCE, hdev->appearance); in eir_append_appearance()
231 u8 ad_len = 0, flags = 0; in eir_create_adv_data() local
[all …]
Deir.h15 u8 eir_append_local_name(struct hci_dev *hdev, u8 *eir, u8 ad_len);
16 u8 eir_append_appearance(struct hci_dev *hdev, u8 *ptr, u8 ad_len);