Home
last modified time | relevance | path

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

/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.c171 static void __md5_final(struct md5_ctx *ctx, u8 out[MD5_DIGEST_SIZE]) in __md5_final() argument
187 memcpy(out, ctx->state.h, MD5_DIGEST_SIZE); in __md5_final()
190 void md5_final(struct md5_ctx *ctx, u8 out[MD5_DIGEST_SIZE]) in md5_final() argument
197 void md5(const u8 *data, size_t len, u8 out[MD5_DIGEST_SIZE]) in md5() argument
259 void hmac_md5_final(struct hmac_md5_ctx *ctx, u8 out[MD5_DIGEST_SIZE]) in hmac_md5_final() argument
263 memset(&ctx->hash_ctx.buf[MD5_DIGEST_SIZE], 0, in hmac_md5_final()
264 MD5_BLOCK_SIZE - MD5_DIGEST_SIZE); in hmac_md5_final()
265 ctx->hash_ctx.buf[MD5_DIGEST_SIZE] = 0x80; in hmac_md5_final()
267 cpu_to_le64(8 * (MD5_BLOCK_SIZE + MD5_DIGEST_SIZE)); in hmac_md5_final()
272 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/
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/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.c75 char dst[MD5_DIGEST_SIZE]; in ecryptfs_derive_iv()
538 char dst[MD5_DIGEST_SIZE]; in ecryptfs_compute_root_iv()
540 BUG_ON(crypt_stat->iv_bytes > MD5_DIGEST_SIZE); in ecryptfs_compute_root_iv()
/linux/drivers/crypto/
H A Dimg-hash.c652 case MD5_DIGEST_SIZE: in img_hash_digest()
757 .digestsize = MD5_DIGEST_SIZE,
H A Dtalitos.c2721 .maxauthsize = MD5_DIGEST_SIZE,
2743 .maxauthsize = MD5_DIGEST_SIZE,
2764 .maxauthsize = MD5_DIGEST_SIZE,
2788 .maxauthsize = MD5_DIGEST_SIZE,
2928 .halg.digestsize = MD5_DIGEST_SIZE,
3024 .halg.digestsize = 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.h470 #define HEXDIR_LEN (2 * MD5_DIGEST_SIZE + 1)