Home
last modified time | relevance | path

Searched refs:poly1305_state (Results 1 – 8 of 8) sorted by relevance

/linux-5.19.10/lib/crypto/
Dchacha20poly1305.c61 struct poly1305_desc_ctx poly1305_state; in __chacha20poly1305_encrypt() local
68 poly1305_init(&poly1305_state, b.block0); in __chacha20poly1305_encrypt()
70 poly1305_update(&poly1305_state, ad, ad_len); in __chacha20poly1305_encrypt()
72 poly1305_update(&poly1305_state, pad0, 0x10 - (ad_len & 0xf)); in __chacha20poly1305_encrypt()
76 poly1305_update(&poly1305_state, dst, src_len); in __chacha20poly1305_encrypt()
78 poly1305_update(&poly1305_state, pad0, 0x10 - (src_len & 0xf)); in __chacha20poly1305_encrypt()
82 poly1305_update(&poly1305_state, (u8 *)b.lens, sizeof(b.lens)); in __chacha20poly1305_encrypt()
84 poly1305_final(&poly1305_state, dst + src_len); in __chacha20poly1305_encrypt()
129 struct poly1305_desc_ctx poly1305_state; in __chacha20poly1305_decrypt() local
142 poly1305_init(&poly1305_state, b.block0); in __chacha20poly1305_decrypt()
[all …]
Dpoly1305-donna64.c34 void poly1305_core_blocks(struct poly1305_state *state, in poly1305_core_blocks()
113 void poly1305_core_emit(const struct poly1305_state *state, const u32 nonce[4], in poly1305_core_emit()
Dpoly1305-donna32.c31 void poly1305_core_blocks(struct poly1305_state *state, in poly1305_core_blocks()
120 void poly1305_core_emit(const struct poly1305_state *state, const u32 nonce[4], in poly1305_core_emit()
Dchacha20poly1305-selftest.c8834 struct poly1305_desc_ctx poly1305_state; in chacha20poly1305_encrypt_bignonce() local
8849 poly1305_init(&poly1305_state, b.block0); in chacha20poly1305_encrypt_bignonce()
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()
8853 poly1305_update(&poly1305_state, dst, src_len); in chacha20poly1305_encrypt_bignonce()
8854 poly1305_update(&poly1305_state, pad0, (0x10 - src_len) & 0xf); in chacha20poly1305_encrypt_bignonce()
8857 poly1305_update(&poly1305_state, (u8 *)b.lens, sizeof(b.lens)); in chacha20poly1305_encrypt_bignonce()
8858 poly1305_final(&poly1305_state, dst + src_len); in chacha20poly1305_encrypt_bignonce()
/linux-5.19.10/include/crypto/internal/
Dpoly1305.h23 static inline void poly1305_core_init(struct poly1305_state *state) in poly1305_core_init()
25 *state = (struct poly1305_state){}; in poly1305_core_init()
28 void poly1305_core_blocks(struct poly1305_state *state,
31 void poly1305_core_emit(const struct poly1305_state *state, const u32 nonce[4],
/linux-5.19.10/include/crypto/
Dpoly1305.h34 struct poly1305_state { struct
53 struct poly1305_state h; argument
Dnhpoly1305.h43 struct poly1305_state poly_state;
/linux-5.19.10/crypto/
Dadiantum.c231 struct poly1305_state state; in adiantum_hash_header()