58 return ( ( v->
b & v->
c ) | ( (~v->
b) & v->
d ) );
68 return ( v->
b ^ v->
c ^ v->
d );
78 return ( ( v->
b & v->
c ) | ( v->
b & v->
d ) | ( v->
c & v->
d ) );
108 .h = { 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0 }
146 for ( i = 0 ; i < 80 ; i++ ) {
150 temp = (
rol32 ( *a, 5 ) +
f + *e +
k + w[ i % 16 ] );
153 *c =
rol32 ( *b, 30 );
156 w[ i % 16 ] =
rol32 ( ( w[ ( i - 3 ) % 16 ] ^
157 w[ ( i - 8 ) % 16 ] ^
158 w[ ( i - 14 ) % 16 ] ^
159 w[ ( i - 16 ) % 16 ] ), 1 );
161 i, *a, *b, *c, *d, *e );
165 for ( i = 0 ; i < 5 ; i++ )
typeof(acpi_finder=acpi_find)
ACPI table finder.
#define build_assert(condition)
Assert a condition at build time (after dead code elimination).
union @104331263140136355135267063077374276003064103115 u
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
#define __BIG_ENDIAN
Constant representing big-endian byte order.
static const uint32_t k[64]
MD5 constants.
#define MDHASH_ALGORITHM(_name, _digest, _compress, _byteorder, _dd, _init, _digestsize)
Define a Merkle-Damgård hash algorithm.
void step(void)
Single-step a single process.
static uint32_t sha1_f_40_59(struct sha1_variables *v)
f(a,b,c,d) for steps 40 to 59
static const struct sha1_step sha1_steps[4]
SHA-1 steps.
static uint32_t sha1_f_0_19(struct sha1_variables *v)
f(a,b,c,d) for steps 0 to 19
static const struct sha1_digest sha1_init
SHA-1 initial digest values.
static uint32_t sha1_f_20_39_60_79(struct sha1_variables *v)
f(a,b,c,d) for steps 20 to 39 and 60 to 79
static void sha1_compress(struct sha1_digest_data *dd, const struct sha1_digest *digest)
Calculate SHA-1 digest of accumulated data.
struct digest_algorithm sha1_algorithm
#define container_of(ptr, type, field)
Get containing structure.
SHA-1 digest and data block.
struct sha1_digest digest
Digest of data already processed.
uint32_t h[5]
Hash output.
uint32_t(* f)(struct sha1_variables *v)
Calculate f(a,b,c,d).
static u32 rol32(u32 v, int bits)
Rotate 32-bit value left.