| /linux/include/crypto/ |
| H A D | md5.h | 8 #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 D | md5.c | 177 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 D | hash_info.c | 39 [HASH_ALGO_MD4] = MD5_DIGEST_SIZE, 40 [HASH_ALGO_MD5] = MD5_DIGEST_SIZE,
|
| /linux/lib/crypto/tests/ |
| H A D | md5-testvecs.h | 6 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 D | md5_kunit.c | 10 #define HASH_SIZE MD5_DIGEST_SIZE
|
| /linux/crypto/ |
| H A D | md5.c | 61 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 D | eip93-aead.c | 270 .maxauthsize = MD5_DIGEST_SIZE, 383 .maxauthsize = MD5_DIGEST_SIZE, 498 .maxauthsize = MD5_DIGEST_SIZE, 610 .maxauthsize = MD5_DIGEST_SIZE,
|
| H A D | eip93-hash.c | 465 MD5_DIGEST_SIZE); in __eip93_hash_final() 645 .digestsize = MD5_DIGEST_SIZE, 766 .digestsize = MD5_DIGEST_SIZE,
|
| /linux/drivers/crypto/rockchip/ |
| H A D | rk3288_crypto_ahash.c | 76 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 D | safexcel_hash.c | 780 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 D | caamalg.c | 2257 .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 D | caamalg_qi.c | 1663 .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 D | caamalg_qi2.c | 1873 .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 D | keystore.c | 603 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 D | crypto.c | 85 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 D | omap-sham.c | 43 #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 D | img-hash.c | 663 case MD5_DIGEST_SIZE: in img_hash_digest() 770 .digestsize = MD5_DIGEST_SIZE,
|
| H A D | talitos.c | 2643 .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 D | s5p-sss.c | 204 #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 D | ixp4xx_crypto.c | 93 #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 D | nfs4recover.c | 99 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 D | state.h | 396 #define HEXDIR_LEN (2 * MD5_DIGEST_SIZE + 1)
|
| /linux/drivers/crypto/allwinner/sun4i-ss/ |
| H A D | sun4i-ss-core.c | 46 .digestsize = MD5_DIGEST_SIZE,
|
| /linux/drivers/crypto/marvell/cesa/ |
| H A D | hash.c | 943 .digestsize = MD5_DIGEST_SIZE, 1298 .digestsize = MD5_DIGEST_SIZE,
|
| /linux/drivers/crypto/stm32/ |
| H A D | stm32-hash.c | 833 case MD5_DIGEST_SIZE: in stm32_hash_init() 1598 .digestsize = MD5_DIGEST_SIZE, 1627 .digestsize = MD5_DIGEST_SIZE,
|