Home
last modified time | relevance | path

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

/linux-6.3-rc2/lib/crypto/
A 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()
129 struct poly1305_desc_ctx poly1305_state; in __chacha20poly1305_decrypt() local
142 poly1305_init(&poly1305_state, b.block0); in __chacha20poly1305_decrypt()
144 poly1305_update(&poly1305_state, ad, ad_len); in __chacha20poly1305_decrypt()
157 poly1305_final(&poly1305_state, b.mac); in __chacha20poly1305_decrypt()
216 struct poly1305_desc_ctx poly1305_state; in chacha20poly1305_crypt_sg_inplace() local
246 poly1305_init(&poly1305_state, b.block0); in chacha20poly1305_crypt_sg_inplace()
306 poly1305_final(&poly1305_state, in chacha20poly1305_crypt_sg_inplace()
[all …]
A 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()
A 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()
A 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-6.3-rc2/include/crypto/internal/
A 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-6.3-rc2/include/crypto/
A Dpoly1305.h34 struct poly1305_state { struct
53 struct poly1305_state h; argument
A Dnhpoly1305.h43 struct poly1305_state poly_state;
/linux-6.3-rc2/crypto/
A Dadiantum.c231 struct poly1305_state state; in adiantum_hash_header()

Completed in 22 milliseconds