Lines Matching +full:sha +full:- +full:1
1 // SPDX-License-Identifier: GPL-2.0
26 * suggested by Artur Skawina - that will also make gcc unable to
47 /* This "rolls" over the 512-bit array */
52 * the input data, the next mix it from the 512-bit array.
55 #define SHA_MIX(t) rol32(W(t+13) ^ W(t+8) ^ W(t+2) ^ W(t), 1)
70 * sha1_transform - single block SHA1 transform (deprecated)
76 * This function executes SHA-1's internal compression function. It updates the
77 * 160-bit internal state (@digest) with a single 512-bit data block (@data).
79 * Don't use this function. SHA-1 is no longer considered secure. And even if
80 * you do have to use SHA-1, this isn't the correct way to hash something with
81 * SHA-1 as this doesn't handle padding and finalization.
93 B = digest[1]; in sha1_transform()
98 /* Round 1 - iterations 0-16 take their input from 'data' */ in sha1_transform()
102 /* Round 1 - tail. Input from 512-bit mixing array */ in sha1_transform()
119 digest[1] += B; in sha1_transform()
127 * sha1_init - initialize the vectors for a SHA1 digest
133 buf[1] = 0xefcdab89; in sha1_init()
140 MODULE_DESCRIPTION("SHA-1 Algorithm");