D | sm3_generic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * SM3 secure hash, as specified by OSCCA GM/T 0004-2012 SM3 and 4 * described at https://tools.ietf.org/html/draft-shen-sm3-hash-01 7 * Written by Gilad Ben-Yossef <gilad@benyossef.com> 22 0x1A, 0xB2, 0x1D, 0x83, 0x55, 0xCF, 0xA1, 0x7F, 23 0x8e, 0x61, 0x19, 0x48, 0x31, 0xE8, 0x1A, 0x8F, 24 0x22, 0xBE, 0xC8, 0xC7, 0x28, 0xFE, 0xFB, 0x74, 25 0x7E, 0xD0, 0x35, 0xEB, 0x50, 0x82, 0xAA, 0x2B 31 return x ^ rol32(x, 9) ^ rol32(x, 17); in p0() 39 static inline u32 ff(unsigned int n, u32 a, u32 b, u32 c) in ff() argument [all …]
|