Home
last modified time | relevance | path

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

/Linux-v5.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-v5.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-v5.10/net/bluetooth/
Dhci_request.c1500 u8 append_local_name(struct hci_dev *hdev, u8 *ptr, u8 ad_len) in append_local_name() argument
1506 if ((HCI_MAX_AD_LENGTH - ad_len) < HCI_MAX_SHORT_NAME_LENGTH + 3) in append_local_name()
1507 return ad_len; in append_local_name()
1512 return eir_append_data(ptr, ad_len, EIR_NAME_COMPLETE, in append_local_name()
1518 return eir_append_data(ptr, ad_len, EIR_NAME_SHORT, in append_local_name()
1530 return eir_append_data(ptr, ad_len, EIR_NAME_SHORT, name, in append_local_name()
1534 return ad_len; in append_local_name()
1537 static u8 append_appearance(struct hci_dev *hdev, u8 *ptr, u8 ad_len) in append_appearance() argument
1539 return eir_append_le16(ptr, ad_len, EIR_APPEARANCE, hdev->appearance); in append_appearance()
1644 u8 ad_len = 0, flags = 0; in create_instance_adv_data() local
[all …]
Dhci_request.h124 u8 append_local_name(struct hci_dev *hdev, u8 *ptr, u8 ad_len);