md5.c (01b944fe1cd4e21a2a9ed51adbdbafe2d5e905ba) md5.c (0c4c78de0417ced1da92351a3013e631860ea576)
1/*
2 * Cryptographic API.
3 *
4 * MD5 Message Digest Algorithm (RFC1321).
5 *
6 * Derived from cryptoapi implementation, originally based on the
7 * public domain implementation written by Colin Plumb in 1993.
8 *

--- 10 unchanged lines hidden (view full) ---

19#include <crypto/md5.h>
20#include <linux/init.h>
21#include <linux/module.h>
22#include <linux/string.h>
23#include <linux/types.h>
24#include <linux/cryptohash.h>
25#include <asm/byteorder.h>
26
1/*
2 * Cryptographic API.
3 *
4 * MD5 Message Digest Algorithm (RFC1321).
5 *
6 * Derived from cryptoapi implementation, originally based on the
7 * public domain implementation written by Colin Plumb in 1993.
8 *

--- 10 unchanged lines hidden (view full) ---

19#include <crypto/md5.h>
20#include <linux/init.h>
21#include <linux/module.h>
22#include <linux/string.h>
23#include <linux/types.h>
24#include <linux/cryptohash.h>
25#include <asm/byteorder.h>
26
27const u8 md5_zero_message_hash[MD5_DIGEST_SIZE] = {
28 0xd4, 0x1d, 0x8c, 0xd9, 0x8f, 0x00, 0xb2, 0x04,
29 0xe9, 0x80, 0x09, 0x98, 0xec, 0xf8, 0x42, 0x7e,
30};
31EXPORT_SYMBOL_GPL(md5_zero_message_hash);
32
27/* XXX: this stuff can be optimized */
28static inline void le32_to_cpu_array(u32 *buf, unsigned int words)
29{
30 while (words--) {
31 __le32_to_cpus(buf);
32 buf++;
33 }
34}

--- 137 unchanged lines hidden ---
33/* XXX: this stuff can be optimized */
34static inline void le32_to_cpu_array(u32 *buf, unsigned int words)
35{
36 while (words--) {
37 __le32_to_cpus(buf);
38 buf++;
39 }
40}

--- 137 unchanged lines hidden ---