Searched full:hash_ctx (Results 1 – 13 of 13) sorted by relevance
| /linux/crypto/ |
| H A D | algif_hash.c | 19 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 D | md5.c | 153 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 D | md5.c | 250 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 D | hash-test-template.h | 130 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 D | sha512_kunit.c | 9 #define HASH_CTX sha512_ctx macro
|
| H A D | sha384_kunit.c | 9 #define HASH_CTX sha384_ctx macro
|
| H A D | sha1_kunit.c | 9 #define HASH_CTX sha1_ctx macro
|
| H A D | sha224_kunit.c | 9 #define HASH_CTX sha224_ctx macro
|
| H A D | md5_kunit.c | 9 #define HASH_CTX md5_ctx macro
|
| H A D | blake2s_kunit.c | 30 #define HASH_CTX blake2s_state macro
|
| H A D | poly1305_kunit.c | 39 #define HASH_CTX poly1305_desc_ctx macro
|
| H A D | sha256_kunit.c | 10 #define HASH_CTX sha256_ctx macro
|
| /linux/include/crypto/ |
| H A D | md5.h | 103 * @hash_ctx: private 107 struct md5_ctx hash_ctx; member 164 md5_update(&ctx->hash_ctx, data, data_len); in hmac_md5_update()
|