sha1_generic.c (01b944fe1cd4e21a2a9ed51adbdbafe2d5e905ba) | sha1_generic.c (0c4c78de0417ced1da92351a3013e631860ea576) |
---|---|
1/* 2 * Cryptographic API. 3 * 4 * SHA1 Secure Hash Algorithm. 5 * 6 * Derived from cryptoapi implementation, adapted for in-place 7 * scatterlist interface. 8 * --- 12 unchanged lines hidden (view full) --- 21#include <linux/module.h> 22#include <linux/mm.h> 23#include <linux/cryptohash.h> 24#include <linux/types.h> 25#include <crypto/sha.h> 26#include <crypto/sha1_base.h> 27#include <asm/byteorder.h> 28 | 1/* 2 * Cryptographic API. 3 * 4 * SHA1 Secure Hash Algorithm. 5 * 6 * Derived from cryptoapi implementation, adapted for in-place 7 * scatterlist interface. 8 * --- 12 unchanged lines hidden (view full) --- 21#include <linux/module.h> 22#include <linux/mm.h> 23#include <linux/cryptohash.h> 24#include <linux/types.h> 25#include <crypto/sha.h> 26#include <crypto/sha1_base.h> 27#include <asm/byteorder.h> 28 |
29const u8 sha1_zero_message_hash[SHA1_DIGEST_SIZE] = { 30 0xda, 0x39, 0xa3, 0xee, 0x5e, 0x6b, 0x4b, 0x0d, 31 0x32, 0x55, 0xbf, 0xef, 0x95, 0x60, 0x18, 0x90, 32 0xaf, 0xd8, 0x07, 0x09 33}; 34EXPORT_SYMBOL_GPL(sha1_zero_message_hash); 35 |
|
29static void sha1_generic_block_fn(struct sha1_state *sst, u8 const *src, 30 int blocks) 31{ 32 u32 temp[SHA_WORKSPACE_WORDS]; 33 34 while (blocks--) { 35 sha_transform(sst->state, src, temp); 36 src += SHA1_BLOCK_SIZE; --- 59 unchanged lines hidden --- | 36static void sha1_generic_block_fn(struct sha1_state *sst, u8 const *src, 37 int blocks) 38{ 39 u32 temp[SHA_WORKSPACE_WORDS]; 40 41 while (blocks--) { 42 sha_transform(sst->state, src, temp); 43 src += SHA1_BLOCK_SIZE; --- 59 unchanged lines hidden --- |