Home
last modified time | relevance | path

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

/linux/lib/crypto/
H A Dchacha20poly1305.c60 struct poly1305_desc_ctx poly1305_state; in __chacha20poly1305_encrypt() local
67 poly1305_init(&poly1305_state, b.block0); in __chacha20poly1305_encrypt()
69 poly1305_update(&poly1305_state, ad, ad_len); in __chacha20poly1305_encrypt()
71 poly1305_update(&poly1305_state, pad0, 0x10 - (ad_len & 0xf)); in __chacha20poly1305_encrypt()
75 poly1305_update(&poly1305_state, dst, src_len); in __chacha20poly1305_encrypt()
77 poly1305_update(&poly1305_state, pad0, 0x10 - (src_len & 0xf)); in __chacha20poly1305_encrypt()
81 poly1305_update(&poly1305_state, (u8 *)b.lens, sizeof(b.lens)); in __chacha20poly1305_encrypt()
83 poly1305_final(&poly1305_state, dst + src_len); in __chacha20poly1305_encrypt()
131 struct poly1305_desc_ctx poly1305_state; in __chacha20poly1305_decrypt() local
144 poly1305_init(&poly1305_state, b.block0); in __chacha20poly1305_decrypt()
[all …]
H A Dpoly1305-donna64.c33 void poly1305_core_blocks(struct poly1305_state *state, in poly1305_core_blocks()
112 void poly1305_core_emit(const struct poly1305_state *state, const u32 nonce[4], in poly1305_core_emit()
H A Dpoly1305-donna32.c32 void poly1305_core_blocks(struct poly1305_state *state, in poly1305_core_blocks()
121 void poly1305_core_emit(const struct poly1305_state *state, const u32 nonce[4], in poly1305_core_emit()
H 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/include/crypto/internal/
H A Dpoly1305.h22 static inline void poly1305_core_init(struct poly1305_state *state) in poly1305_core_init()
24 *state = (struct poly1305_state){}; in poly1305_core_init()
27 void poly1305_core_blocks(struct poly1305_state *state,
30 void poly1305_core_emit(const struct poly1305_state *state, const u32 nonce[4],
49 static inline void poly1305_emit_generic(const struct poly1305_state *state, in poly1305_emit_generic()
/linux/lib/crypto/powerpc/
H A Dpoly1305.h15 asmlinkage void poly1305_emit_64(const struct poly1305_state *state, const u32 nonce[4], u8 digest[…
37 dctx->h = (struct poly1305_state){}; in poly1305_block_init()
61 static void poly1305_emit(const struct poly1305_state *state, in poly1305_emit()
/linux/include/crypto/
H A Dpoly1305.h33 struct poly1305_state { struct
43 struct poly1305_state h; argument
/linux/lib/crypto/x86/
H A Dpoly1305.h66 asmlinkage void poly1305_emit_x86_64(const struct poly1305_state *ctx,
69 asmlinkage void poly1305_emit_avx(const struct poly1305_state *ctx,
134 static void poly1305_emit(const struct poly1305_state *ctx, in poly1305_emit()
/linux/lib/crypto/mips/
H A Dpoly1305.h12 asmlinkage void poly1305_emit(const struct poly1305_state *state,
/linux/lib/crypto/riscv/
H A Dpoly1305.h12 asmlinkage void poly1305_emit(const struct poly1305_state *state,
/linux/lib/crypto/arm64/
H A Dpoly1305.h20 asmlinkage void poly1305_emit(const struct poly1305_state *state,
/linux/lib/crypto/arm/
H A Dpoly1305.h20 asmlinkage void poly1305_emit(const struct poly1305_state *state,
/linux/crypto/
H A Dadiantum.c70 struct poly1305_state poly_state;
217 struct poly1305_state state; in adiantum_hash_header()