Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/lib/crypto/
H A 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 …]
H A 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()
/OK3568_Linux_fs/kernel/include/crypto/
H A 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,
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/openssl/
H A Daead.h300 const uint8_t *ad, size_t ad_len);
325 const uint8_t *ad, size_t ad_len);
362 const uint8_t *ad, size_t ad_len);
382 size_t in_tag_len, const uint8_t *ad, size_t ad_len);
H A Dhpke.h254 const uint8_t *ad, size_t ad_len);
274 const uint8_t *ad, size_t ad_len);
/OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/include/openssl/
H A Daead.h234 const uint8_t *ad, size_t ad_len);
259 const uint8_t *ad, size_t ad_len);
296 const uint8_t *ad, size_t ad_len);
316 size_t in_tag_len, const uint8_t *ad, size_t ad_len);
/OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/host_include/openssl/
H A Daead.h234 const uint8_t *ad, size_t ad_len);
259 const uint8_t *ad, size_t ad_len);
296 const uint8_t *ad, size_t ad_len);
316 size_t in_tag_len, const uint8_t *ad, size_t ad_len);
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/openssl/
H A Daead.h300 const uint8_t *ad, size_t ad_len);
325 const uint8_t *ad, size_t ad_len);
362 const uint8_t *ad, size_t ad_len);
382 size_t in_tag_len, const uint8_t *ad, size_t ad_len);
H A Dhpke.h254 const uint8_t *ad, size_t ad_len);
274 const uint8_t *ad, size_t ad_len);
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/openssl/
H A Daead.h300 const uint8_t *ad, size_t ad_len);
325 const uint8_t *ad, size_t ad_len);
362 const uint8_t *ad, size_t ad_len);
382 size_t in_tag_len, const uint8_t *ad, size_t ad_len);
H A Dhpke.h254 const uint8_t *ad, size_t ad_len);
274 const uint8_t *ad, size_t ad_len);
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/openssl/
H A Daead.h300 const uint8_t *ad, size_t ad_len);
325 const uint8_t *ad, size_t ad_len);
362 const uint8_t *ad, size_t ad_len);
382 size_t in_tag_len, const uint8_t *ad, size_t ad_len);
H A Dhpke.h254 const uint8_t *ad, size_t ad_len);
274 const uint8_t *ad, size_t ad_len);
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/mbedtls/
H A Dcipher.h724 const unsigned char *ad, size_t ad_len );
899 const unsigned char *ad, size_t ad_len,
941 const unsigned char *ad, size_t ad_len,
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/mbedtls/
H A Dcipher.h724 const unsigned char *ad, size_t ad_len );
899 const unsigned char *ad, size_t ad_len,
941 const unsigned char *ad, size_t ad_len,
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/mbedtls/
H A Dcipher.h724 const unsigned char *ad, size_t ad_len );
899 const unsigned char *ad, size_t ad_len,
941 const unsigned char *ad, size_t ad_len,
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/mbedtls/
H A Dcipher.h724 const unsigned char *ad, size_t ad_len );
899 const unsigned char *ad, size_t ad_len,
941 const unsigned char *ad, size_t ad_len,
/OK3568_Linux_fs/kernel/net/bluetooth/
H A Dhci_request.c1513 u8 append_local_name(struct hci_dev *hdev, u8 *ptr, u8 ad_len) in append_local_name() argument
1519 if ((HCI_MAX_AD_LENGTH - ad_len) < HCI_MAX_SHORT_NAME_LENGTH + 3) in append_local_name()
1520 return ad_len; in append_local_name()
1525 return eir_append_data(ptr, ad_len, EIR_NAME_COMPLETE, in append_local_name()
1531 return eir_append_data(ptr, ad_len, EIR_NAME_SHORT, in append_local_name()
1543 return eir_append_data(ptr, ad_len, EIR_NAME_SHORT, name, in append_local_name()
1547 return ad_len; in append_local_name()
1550 static u8 append_appearance(struct hci_dev *hdev, u8 *ptr, u8 ad_len) in append_appearance() argument
1552 return eir_append_le16(ptr, ad_len, EIR_APPEARANCE, hdev->appearance); in append_appearance()
1654 u8 ad_len = 0, flags = 0; in create_instance_adv_data() local
[all …]
H A Dhci_request.h124 u8 append_local_name(struct hci_dev *hdev, u8 *ptr, u8 ad_len);