D | sm3.c | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * SM3 secure hash, as specified by OSCCA GM/T 0004-2012 SM3 and described 4 * at https://datatracker.ietf.org/doc/html/draft-sca-cfrg-sm3-02 7 * Copyright (C) 2017 Gilad Ben-Yossef <gilad@benyossef.com> 35 * Transform the message X which consists of 16 32-bit-words. See 36 * GM/T 004-2012 for details. 38 #define R(i, a, b, c, d, e, f, g, h, t, w1, w2) \ argument 43 h += GG ## i(e, f, g) + ss1 + (w1); \ 49 #define R1(a, b, c, d, e, f, g, h, t, w1, w2) \ argument 50 R(1, a, b, c, d, e, f, g, h, t, w1, w2) [all …]
|