Home
last modified time | relevance | path

Searched refs:MD5_DIGEST_SIZE (Results 1 – 25 of 31) sorted by relevance

12

/linux/include/crypto/
H A Dmd5.h8 #define MD5_DIGEST_SIZE 16 macro
23 extern const u8 md5_zero_message_hash[MD5_DIGEST_SIZE];
79 void md5_final(struct md5_ctx *ctx, u8 out[at_least MD5_DIGEST_SIZE]);
89 void md5(const u8 *data, size_t len, u8 out[at_least MD5_DIGEST_SIZE]);
176 void hmac_md5_final(struct hmac_md5_ctx *ctx, u8 out[at_least MD5_DIGEST_SIZE]);
191 u8 out[at_least MD5_DIGEST_SIZE]);
208 u8 out[at_least MD5_DIGEST_SIZE]);
/linux/lib/crypto/
H A Dmd5.c177 static void __md5_final(struct md5_ctx *ctx, u8 out[MD5_DIGEST_SIZE]) in __md5_final() argument
193 memcpy(out, ctx->state.h, MD5_DIGEST_SIZE); in __md5_final()
196 void md5_final(struct md5_ctx *ctx, u8 out[MD5_DIGEST_SIZE]) in md5_final() argument
203 void md5(const u8 *data, size_t len, u8 out[MD5_DIGEST_SIZE]) in md5() argument
265 void hmac_md5_final(struct hmac_md5_ctx *ctx, u8 out[MD5_DIGEST_SIZE]) in hmac_md5_final() argument
269 memset(&ctx->hash_ctx.buf[MD5_DIGEST_SIZE], 0, in hmac_md5_final()
270 MD5_BLOCK_SIZE - MD5_DIGEST_SIZE); in hmac_md5_final()
271 ctx->hash_ctx.buf[MD5_DIGEST_SIZE] = 0x80; in hmac_md5_final()
273 cpu_to_le64(8 * (MD5_BLOCK_SIZE + MD5_DIGEST_SIZE)); in hmac_md5_final()
278 memcpy(out, ctx->ostate.h, MD5_DIGEST_SIZE); in hmac_md5_final()
[all …]
H A Dhash_info.c39 [HASH_ALGO_MD4] = MD5_DIGEST_SIZE,
40 [HASH_ALGO_MD5] = MD5_DIGEST_SIZE,
/linux/lib/crypto/tests/
H A Dmd5-testvecs.h6 u8 digest[MD5_DIGEST_SIZE];
178 static const u8 hash_testvec_consolidated[MD5_DIGEST_SIZE] = {
183 static const u8 hmac_testvec_consolidated[MD5_DIGEST_SIZE] = {
H A Dmd5_kunit.c10 #define HASH_SIZE MD5_DIGEST_SIZE
/linux/crypto/
H A Dmd5.c61 const u8 md5_zero_message_hash[MD5_DIGEST_SIZE] = {
184 .digestsize = MD5_DIGEST_SIZE,
203 .digestsize = MD5_DIGEST_SIZE,
/linux/drivers/crypto/inside-secure/eip93/
H A Deip93-aead.c270 .maxauthsize = MD5_DIGEST_SIZE,
383 .maxauthsize = MD5_DIGEST_SIZE,
498 .maxauthsize = MD5_DIGEST_SIZE,
610 .maxauthsize = MD5_DIGEST_SIZE,
H A Deip93-hash.c465 MD5_DIGEST_SIZE); in __eip93_hash_final()
645 .digestsize = MD5_DIGEST_SIZE,
766 .digestsize = MD5_DIGEST_SIZE,
/linux/drivers/crypto/rockchip/
H A Drk3288_crypto_ahash.c76 case MD5_DIGEST_SIZE: in zero_message_process()
293 case MD5_DIGEST_SIZE: in rk_hash_run()
452 .digestsize = MD5_DIGEST_SIZE,
/linux/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c780 MD5_DIGEST_SIZE); in safexcel_ahash_final()
1761 req->state_sz = MD5_DIGEST_SIZE; in safexcel_md5_init()
1762 req->digest_sz = MD5_DIGEST_SIZE; in safexcel_md5_init()
1790 .digestsize = MD5_DIGEST_SIZE,
1817 memcpy(req->state, &ctx->base.ipad, MD5_DIGEST_SIZE); in safexcel_hmac_md5_init()
1824 req->state_sz = MD5_DIGEST_SIZE; in safexcel_hmac_md5_init()
1825 req->digest_sz = MD5_DIGEST_SIZE; in safexcel_hmac_md5_init()
1837 MD5_DIGEST_SIZE); in safexcel_hmac_md5_setkey()
1863 .digestsize = MD5_DIGEST_SIZE,
/linux/drivers/crypto/caam/
H A Dcaamalg.c2257 .maxauthsize = MD5_DIGEST_SIZE,
2400 .maxauthsize = MD5_DIGEST_SIZE,
2425 .maxauthsize = MD5_DIGEST_SIZE,
2700 .maxauthsize = MD5_DIGEST_SIZE,
2725 .maxauthsize = MD5_DIGEST_SIZE,
3010 .maxauthsize = MD5_DIGEST_SIZE,
3035 .maxauthsize = MD5_DIGEST_SIZE,
3311 .maxauthsize = MD5_DIGEST_SIZE,
3338 .maxauthsize = MD5_DIGEST_SIZE,
H A Dcaamalg_qi.c1663 .maxauthsize = MD5_DIGEST_SIZE,
1685 .maxauthsize = MD5_DIGEST_SIZE,
1930 .maxauthsize = MD5_DIGEST_SIZE,
1952 .maxauthsize = MD5_DIGEST_SIZE,
2204 .maxauthsize = MD5_DIGEST_SIZE,
2226 .maxauthsize = MD5_DIGEST_SIZE,
H A Dcaamalg_qi2.c1873 .maxauthsize = MD5_DIGEST_SIZE,
1895 .maxauthsize = MD5_DIGEST_SIZE,
2140 .maxauthsize = MD5_DIGEST_SIZE,
2162 .maxauthsize = MD5_DIGEST_SIZE,
2414 .maxauthsize = MD5_DIGEST_SIZE,
2436 .maxauthsize = MD5_DIGEST_SIZE,
2683 .maxauthsize = MD5_DIGEST_SIZE,
2707 .maxauthsize = MD5_DIGEST_SIZE,
4538 .digestsize = MD5_DIGEST_SIZE,
4566 static const u8 runninglen[] = { HASH_MSG_LEN + MD5_DIGEST_SIZE, in caam_hash_cra_init()
/linux/fs/ecryptfs/
H A Dkeystore.c603 char hash[MD5_DIGEST_SIZE];
746 s->hash[s->j % MD5_DIGEST_SIZE]; in ecryptfs_write_tag_70_packet()
747 if ((s->j % MD5_DIGEST_SIZE) == (MD5_DIGEST_SIZE - 1)) in ecryptfs_write_tag_70_packet()
748 md5(s->hash, MD5_DIGEST_SIZE, s->hash); in ecryptfs_write_tag_70_packet()
H A Dcrypto.c85 char dst[MD5_DIGEST_SIZE]; in ecryptfs_derive_iv()
552 char dst[MD5_DIGEST_SIZE]; in ecryptfs_compute_root_iv()
554 BUG_ON(crypt_stat->iv_bytes > MD5_DIGEST_SIZE); in ecryptfs_compute_root_iv()
/linux/drivers/crypto/
H A Domap-sham.c43 #define MD5_DIGEST_SIZE 16 macro
335 d = MD5_DIGEST_SIZE / sizeof(u32); in omap_sham_copy_ready_hash()
960 case MD5_DIGEST_SIZE: in omap_sham_init()
1451 .base.halg.digestsize = MD5_DIGEST_SIZE,
1498 .base.halg.digestsize = MD5_DIGEST_SIZE,
H A Dimg-hash.c663 case MD5_DIGEST_SIZE: in img_hash_digest()
770 .digestsize = MD5_DIGEST_SIZE,
H A Dtalitos.c2643 .maxauthsize = MD5_DIGEST_SIZE,
2665 .maxauthsize = MD5_DIGEST_SIZE,
2686 .maxauthsize = MD5_DIGEST_SIZE,
2710 .maxauthsize = MD5_DIGEST_SIZE,
2850 .halg.digestsize = MD5_DIGEST_SIZE,
2946 .halg.digestsize = MD5_DIGEST_SIZE,
H A Ds5p-sss.c204 #define HASH_MD5_MAX_REG (MD5_DIGEST_SIZE / HASH_REG_SIZEOF)
1592 case MD5_DIGEST_SIZE: in s5p_hash_init()
1742 .halg.digestsize = MD5_DIGEST_SIZE,
/linux/drivers/crypto/intel/ixp4xx/
H A Dixp4xx_crypto.c93 #define MD5_DIGEST_SIZE 16 macro
1416 .maxauthsize = MD5_DIGEST_SIZE,
1428 .maxauthsize = MD5_DIGEST_SIZE,
1466 .maxauthsize = MD5_DIGEST_SIZE,
/linux/fs/nfsd/
H A Dnfs4recover.c99 u8 digest[MD5_DIGEST_SIZE]; in nfs4_make_rec_clidname()
106 static_assert(HEXDIR_LEN == 2 * MD5_DIGEST_SIZE + 1); in nfs4_make_rec_clidname()
107 sprintf(dname, "%*phN", MD5_DIGEST_SIZE, digest); in nfs4_make_rec_clidname()
H A Dstate.h396 #define HEXDIR_LEN (2 * MD5_DIGEST_SIZE + 1)
/linux/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-core.c46 .digestsize = MD5_DIGEST_SIZE,
/linux/drivers/crypto/marvell/cesa/
H A Dhash.c943 .digestsize = MD5_DIGEST_SIZE,
1298 .digestsize = MD5_DIGEST_SIZE,
/linux/drivers/crypto/stm32/
H A Dstm32-hash.c833 case MD5_DIGEST_SIZE: in stm32_hash_init()
1598 .digestsize = MD5_DIGEST_SIZE,
1627 .digestsize = MD5_DIGEST_SIZE,

12