Home
last modified time | relevance | path

Searched refs:polyval_ctx (Results 1 – 4 of 4) sorted by relevance

/linux/include/crypto/
H A Dpolyval.h70 struct polyval_ctx { struct
106 static inline void polyval_init(struct polyval_ctx *ctx, in polyval_init()
109 *ctx = (struct polyval_ctx){ .key = key }; in polyval_init()
123 polyval_import_blkaligned(struct polyval_ctx *ctx, in polyval_import_blkaligned()
127 *ctx = (struct polyval_ctx){ .key = key, .acc = *acc }; in polyval_import_blkaligned()
138 static inline void polyval_export_blkaligned(const struct polyval_ctx *ctx, in polyval_export_blkaligned()
154 void polyval_update(struct polyval_ctx *ctx, const u8 *data, size_t len);
168 void polyval_final(struct polyval_ctx *ctx, u8 out[POLYVAL_BLOCK_SIZE]);
183 struct polyval_ctx ctx; in polyval()
/linux/lib/crypto/
H A Dpolyval.c239 static void polyval_mul(struct polyval_ctx *ctx) in polyval_mul()
248 static void polyval_blocks(struct polyval_ctx *ctx, in polyval_blocks()
258 void polyval_update(struct polyval_ctx *ctx, const u8 *data, size_t len) in polyval_update()
283 void polyval_final(struct polyval_ctx *ctx, u8 out[POLYVAL_BLOCK_SIZE]) in polyval_final()
/linux/lib/crypto/tests/
H A Dpolyval_kunit.c15 static void polyval_init_withtestkey(struct polyval_ctx *ctx) in polyval_init_withtestkey()
28 #define HASH_CTX polyval_ctx
70 struct polyval_ctx hashofhashes_ctx; in test_polyval_allones_key_and_message()
/linux/crypto/
H A Dhctr2.c62 struct polyval_ctx poly_ctx;
79 struct polyval_ctx ctx; in hctr2_hash_tweaklens()
139 struct polyval_ctx *poly_ctx = &rctx->u.poly_ctx; in hctr2_hash_tweak()
158 struct polyval_ctx *poly_ctx = &rctx->u.poly_ctx; in hctr2_hash_message()
183 struct polyval_ctx *poly_ctx = &rctx->u.poly_ctx; in hctr2_finish()