Home
last modified time | relevance | path

Searched full:hash_ctx (Results 1 – 13 of 13) sorted by relevance

/linux/crypto/
H A Dalgif_hash.c19 struct hash_ctx { struct
32 static int hash_alloc_result(struct sock *sk, struct hash_ctx *ctx) in hash_alloc_result() argument
50 static void hash_free_result(struct sock *sk, struct hash_ctx *ctx) in hash_free_result()
68 struct hash_ctx *ctx = ask->private; in hash_sendmsg()
184 struct hash_ctx *ctx = ask->private; in hash_recvmsg()
231 struct hash_ctx *ctx = ask->private; in hash_accept()
236 struct hash_ctx *ctx2; in hash_accept()
401 struct hash_ctx *ctx = ask->private; in hash_sock_destruct()
412 struct hash_ctx *ctx; in hash_accept_parent_nokey()
H A Dmd5.c153 return __crypto_md5_export(&HMAC_MD5_CTX(desc)->hash_ctx, out); in crypto_hmac_md5_export()
161 return __crypto_md5_import(&ctx->hash_ctx, in); in crypto_hmac_md5_import()
166 return __crypto_md5_export_core(&HMAC_MD5_CTX(desc)->hash_ctx, out); in crypto_hmac_md5_export_core()
174 return __crypto_md5_import_core(&ctx->hash_ctx, in); in crypto_hmac_md5_import_core()
/linux/lib/crypto/
H A Dmd5.c250 ctx->hash_ctx.state = key->istate; in hmac_md5_init()
251 ctx->hash_ctx.bytecount = MD5_BLOCK_SIZE; in hmac_md5_init()
259 __hmac_md5_preparekey(&ctx->hash_ctx.state, &ctx->ostate, in hmac_md5_init_usingrawkey()
261 ctx->hash_ctx.bytecount = MD5_BLOCK_SIZE; in hmac_md5_init_usingrawkey()
267 /* Generate the padded input for the outer hash in ctx->hash_ctx.buf. */ in hmac_md5_final()
268 __md5_final(&ctx->hash_ctx, ctx->hash_ctx.buf); in hmac_md5_final()
269 memset(&ctx->hash_ctx.buf[MD5_DIGEST_SIZE], 0, in hmac_md5_final()
271 ctx->hash_ctx.buf[MD5_DIGEST_SIZE] = 0x80; in hmac_md5_final()
272 *(__le64 *)&ctx->hash_ctx.buf[MD5_BLOCK_SIZE - 8] = in hmac_md5_final()
276 md5_blocks(&ctx->ostate, ctx->hash_ctx.buf, 1); in hmac_md5_final()
/linux/lib/crypto/tests/
H A Dhash-test-template.h130 struct HASH_CTX ctx; in test_hash_all_lens_up_to_4096()
152 struct HASH_CTX ctx; in test_hash_incremental_updates()
200 const size_t max_tested_len = TEST_BUF_LEN - sizeof(struct HASH_CTX); in test_hash_buffer_overruns()
202 struct HASH_CTX *guarded_ctx = buf_end - sizeof(*guarded_ctx); in test_hash_buffer_overruns()
208 struct HASH_CTX ctx; in test_hash_buffer_overruns()
237 struct HASH_CTX ctx; in test_hash_overlaps()
309 static const u8 zeroes[sizeof(struct HASH_CTX)]; in test_hash_ctx_zeroization()
310 struct HASH_CTX ctx; in test_hash_ctx_zeroization()
361 struct HASH_CTX hash_ctx; member
395 HASH_INIT(&ctx->hash_ctx); in hash_irq_test2_func()
[all …]
H A Dsha512_kunit.c9 #define HASH_CTX sha512_ctx macro
H A Dsha384_kunit.c9 #define HASH_CTX sha384_ctx macro
H A Dsha1_kunit.c9 #define HASH_CTX sha1_ctx macro
H A Dsha224_kunit.c9 #define HASH_CTX sha224_ctx macro
H A Dmd5_kunit.c9 #define HASH_CTX md5_ctx macro
H A Dblake2s_kunit.c30 #define HASH_CTX blake2s_state macro
H A Dpoly1305_kunit.c39 #define HASH_CTX poly1305_desc_ctx macro
H A Dsha256_kunit.c10 #define HASH_CTX sha256_ctx macro
/linux/include/crypto/
H A Dmd5.h103 * @hash_ctx: private
107 struct md5_ctx hash_ctx; member
164 md5_update(&ctx->hash_ctx, data, data_len); in hmac_md5_update()