Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\crypto\sha256.c Create Date:2022-07-28 06:47:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sha256_transform

Proto:static void sha256_transform(u32 *state, const u8 *input)

Type:void

Parameter:

TypeParameterName
u32 *state
const u8 *input
53  When i < 16 cycle LOAD_OP(i, W, input)
57  When i < 64 cycle BLEND_OP(i, W)
61  a = state[0]
61  b = state[1]
61  c = state[2]
61  d = state[3]
62  e = state[4]
62  f = state[5]
62  g = state[6]
62  h = state[7]
65  t1 = h + e1(e) + Ch(e, f, g) + 0x428a2f98 + W[0]
66  t2 = e0(a) + Maj(a, b, c)
66  d += t1
66  h = t1 + t2
67  t1 = g + e1(d) + Ch(d, e, f) + 0x71374491 + W[1]
68  t2 = e0(h) + Maj(h, a, b)
68  c += t1
68  g = t1 + t2
69  t1 = f + e1(c) + Ch(c, d, e) + 0xb5c0fbcf + W[2]
70  t2 = e0(g) + Maj(g, h, a)
70  b += t1
70  f = t1 + t2
71  t1 = e + e1(b) + Ch(b, c, d) + 0xe9b5dba5 + W[3]
72  t2 = e0(f) + Maj(f, g, h)
72  a += t1
72  e = t1 + t2
73  t1 = d + e1(a) + Ch(a, b, c) + 0x3956c25b + W[4]
74  t2 = e0(e) + Maj(e, f, g)
74  h += t1
74  d = t1 + t2
75  t1 = c + e1(h) + Ch(h, a, b) + 0x59f111f1 + W[5]
76  t2 = e0(d) + Maj(d, e, f)
76  g += t1
76  c = t1 + t2
77  t1 = b + e1(g) + Ch(g, h, a) + 0x923f82a4 + W[6]
78  t2 = e0(c) + Maj(c, d, e)
78  f += t1
78  b = t1 + t2
79  t1 = a + e1(f) + Ch(f, g, h) + 0xab1c5ed5 + W[7]
80  t2 = e0(b) + Maj(b, c, d)
80  e += t1
80  a = t1 + t2
82  t1 = h + e1(e) + Ch(e, f, g) + 0xd807aa98 + W[8]
83  t2 = e0(a) + Maj(a, b, c)
83  d += t1
83  h = t1 + t2
84  t1 = g + e1(d) + Ch(d, e, f) + 0x12835b01 + W[9]
85  t2 = e0(h) + Maj(h, a, b)
85  c += t1
85  g = t1 + t2
86  t1 = f + e1(c) + Ch(c, d, e) + 0x243185be + W[10]
87  t2 = e0(g) + Maj(g, h, a)
87  b += t1
87  f = t1 + t2
88  t1 = e + e1(b) + Ch(b, c, d) + 0x550c7dc3 + W[11]
89  t2 = e0(f) + Maj(f, g, h)
89  a += t1
89  e = t1 + t2
90  t1 = d + e1(a) + Ch(a, b, c) + 0x72be5d74 + W[12]
91  t2 = e0(e) + Maj(e, f, g)
91  h += t1
91  d = t1 + t2
92  t1 = c + e1(h) + Ch(h, a, b) + 0x80deb1fe + W[13]
93  t2 = e0(d) + Maj(d, e, f)
93  g += t1
93  c = t1 + t2
94  t1 = b + e1(g) + Ch(g, h, a) + 0x9bdc06a7 + W[14]
95  t2 = e0(c) + Maj(c, d, e)
95  f += t1
95  b = t1 + t2
96  t1 = a + e1(f) + Ch(f, g, h) + 0xc19bf174 + W[15]
97  t2 = e0(b) + Maj(b, c, d)
97  e += t1
97  a = t1 + t2
99  t1 = h + e1(e) + Ch(e, f, g) + 0xe49b69c1 + W[16]
100  t2 = e0(a) + Maj(a, b, c)
100  d += t1
100  h = t1 + t2
101  t1 = g + e1(d) + Ch(d, e, f) + 0xefbe4786 + W[17]
102  t2 = e0(h) + Maj(h, a, b)
102  c += t1
102  g = t1 + t2
103  t1 = f + e1(c) + Ch(c, d, e) + 0x0fc19dc6 + W[18]
104  t2 = e0(g) + Maj(g, h, a)
104  b += t1
104  f = t1 + t2
105  t1 = e + e1(b) + Ch(b, c, d) + 0x240ca1cc + W[19]
106  t2 = e0(f) + Maj(f, g, h)
106  a += t1
106  e = t1 + t2
107  t1 = d + e1(a) + Ch(a, b, c) + 0x2de92c6f + W[20]
108  t2 = e0(e) + Maj(e, f, g)
108  h += t1
108  d = t1 + t2
109  t1 = c + e1(h) + Ch(h, a, b) + 0x4a7484aa + W[21]
110  t2 = e0(d) + Maj(d, e, f)
110  g += t1
110  c = t1 + t2
111  t1 = b + e1(g) + Ch(g, h, a) + 0x5cb0a9dc + W[22]
112  t2 = e0(c) + Maj(c, d, e)
112  f += t1
112  b = t1 + t2
113  t1 = a + e1(f) + Ch(f, g, h) + 0x76f988da + W[23]
114  t2 = e0(b) + Maj(b, c, d)
114  e += t1
114  a = t1 + t2
116  t1 = h + e1(e) + Ch(e, f, g) + 0x983e5152 + W[24]
117  t2 = e0(a) + Maj(a, b, c)
117  d += t1
117  h = t1 + t2
118  t1 = g + e1(d) + Ch(d, e, f) + 0xa831c66d + W[25]
119  t2 = e0(h) + Maj(h, a, b)
119  c += t1
119  g = t1 + t2
120  t1 = f + e1(c) + Ch(c, d, e) + 0xb00327c8 + W[26]
121  t2 = e0(g) + Maj(g, h, a)
121  b += t1
121  f = t1 + t2
122  t1 = e + e1(b) + Ch(b, c, d) + 0xbf597fc7 + W[27]
123  t2 = e0(f) + Maj(f, g, h)
123  a += t1
123  e = t1 + t2
124  t1 = d + e1(a) + Ch(a, b, c) + 0xc6e00bf3 + W[28]
125  t2 = e0(e) + Maj(e, f, g)
125  h += t1
125  d = t1 + t2
126  t1 = c + e1(h) + Ch(h, a, b) + 0xd5a79147 + W[29]
127  t2 = e0(d) + Maj(d, e, f)
127  g += t1
127  c = t1 + t2
128  t1 = b + e1(g) + Ch(g, h, a) + 0x06ca6351 + W[30]
129  t2 = e0(c) + Maj(c, d, e)
129  f += t1
129  b = t1 + t2
130  t1 = a + e1(f) + Ch(f, g, h) + 0x14292967 + W[31]
131  t2 = e0(b) + Maj(b, c, d)
131  e += t1
131  a = t1 + t2
133  t1 = h + e1(e) + Ch(e, f, g) + 0x27b70a85 + W[32]
134  t2 = e0(a) + Maj(a, b, c)
134  d += t1
134  h = t1 + t2
135  t1 = g + e1(d) + Ch(d, e, f) + 0x2e1b2138 + W[33]
136  t2 = e0(h) + Maj(h, a, b)
136  c += t1
136  g = t1 + t2
137  t1 = f + e1(c) + Ch(c, d, e) + 0x4d2c6dfc + W[34]
138  t2 = e0(g) + Maj(g, h, a)
138  b += t1
138  f = t1 + t2
139  t1 = e + e1(b) + Ch(b, c, d) + 0x53380d13 + W[35]
140  t2 = e0(f) + Maj(f, g, h)
140  a += t1
140  e = t1 + t2
141  t1 = d + e1(a) + Ch(a, b, c) + 0x650a7354 + W[36]
142  t2 = e0(e) + Maj(e, f, g)
142  h += t1
142  d = t1 + t2
143  t1 = c + e1(h) + Ch(h, a, b) + 0x766a0abb + W[37]
144  t2 = e0(d) + Maj(d, e, f)
144  g += t1
144  c = t1 + t2
145  t1 = b + e1(g) + Ch(g, h, a) + 0x81c2c92e + W[38]
146  t2 = e0(c) + Maj(c, d, e)
146  f += t1
146  b = t1 + t2
147  t1 = a + e1(f) + Ch(f, g, h) + 0x92722c85 + W[39]
148  t2 = e0(b) + Maj(b, c, d)
148  e += t1
148  a = t1 + t2
150  t1 = h + e1(e) + Ch(e, f, g) + 0xa2bfe8a1 + W[40]
151  t2 = e0(a) + Maj(a, b, c)
151  d += t1
151  h = t1 + t2
152  t1 = g + e1(d) + Ch(d, e, f) + 0xa81a664b + W[41]
153  t2 = e0(h) + Maj(h, a, b)
153  c += t1
153  g = t1 + t2
154  t1 = f + e1(c) + Ch(c, d, e) + 0xc24b8b70 + W[42]
155  t2 = e0(g) + Maj(g, h, a)
155  b += t1
155  f = t1 + t2
156  t1 = e + e1(b) + Ch(b, c, d) + 0xc76c51a3 + W[43]
157  t2 = e0(f) + Maj(f, g, h)
157  a += t1
157  e = t1 + t2
158  t1 = d + e1(a) + Ch(a, b, c) + 0xd192e819 + W[44]
159  t2 = e0(e) + Maj(e, f, g)
159  h += t1
159  d = t1 + t2
160  t1 = c + e1(h) + Ch(h, a, b) + 0xd6990624 + W[45]
161  t2 = e0(d) + Maj(d, e, f)
161  g += t1
161  c = t1 + t2
162  t1 = b + e1(g) + Ch(g, h, a) + 0xf40e3585 + W[46]
163  t2 = e0(c) + Maj(c, d, e)
163  f += t1
163  b = t1 + t2
164  t1 = a + e1(f) + Ch(f, g, h) + 0x106aa070 + W[47]
165  t2 = e0(b) + Maj(b, c, d)
165  e += t1
165  a = t1 + t2
167  t1 = h + e1(e) + Ch(e, f, g) + 0x19a4c116 + W[48]
168  t2 = e0(a) + Maj(a, b, c)
168  d += t1
168  h = t1 + t2
169  t1 = g + e1(d) + Ch(d, e, f) + 0x1e376c08 + W[49]
170  t2 = e0(h) + Maj(h, a, b)
170  c += t1
170  g = t1 + t2
171  t1 = f + e1(c) + Ch(c, d, e) + 0x2748774c + W[50]
172  t2 = e0(g) + Maj(g, h, a)
172  b += t1
172  f = t1 + t2
173  t1 = e + e1(b) + Ch(b, c, d) + 0x34b0bcb5 + W[51]
174  t2 = e0(f) + Maj(f, g, h)
174  a += t1
174  e = t1 + t2
175  t1 = d + e1(a) + Ch(a, b, c) + 0x391c0cb3 + W[52]
176  t2 = e0(e) + Maj(e, f, g)
176  h += t1
176  d = t1 + t2
177  t1 = c + e1(h) + Ch(h, a, b) + 0x4ed8aa4a + W[53]
178  t2 = e0(d) + Maj(d, e, f)
178  g += t1
178  c = t1 + t2
179  t1 = b + e1(g) + Ch(g, h, a) + 0x5b9cca4f + W[54]
180  t2 = e0(c) + Maj(c, d, e)
180  f += t1
180  b = t1 + t2
181  t1 = a + e1(f) + Ch(f, g, h) + 0x682e6ff3 + W[55]
182  t2 = e0(b) + Maj(b, c, d)
182  e += t1
182  a = t1 + t2
184  t1 = h + e1(e) + Ch(e, f, g) + 0x748f82ee + W[56]
185  t2 = e0(a) + Maj(a, b, c)
185  d += t1
185  h = t1 + t2
186  t1 = g + e1(d) + Ch(d, e, f) + 0x78a5636f + W[57]
187  t2 = e0(h) + Maj(h, a, b)
187  c += t1
187  g = t1 + t2
188  t1 = f + e1(c) + Ch(c, d, e) + 0x84c87814 + W[58]
189  t2 = e0(g) + Maj(g, h, a)
189  b += t1
189  f = t1 + t2
190  t1 = e + e1(b) + Ch(b, c, d) + 0x8cc70208 + W[59]
191  t2 = e0(f) + Maj(f, g, h)
191  a += t1
191  e = t1 + t2
192  t1 = d + e1(a) + Ch(a, b, c) + 0x90befffa + W[60]
193  t2 = e0(e) + Maj(e, f, g)
193  h += t1
193  d = t1 + t2
194  t1 = c + e1(h) + Ch(h, a, b) + 0xa4506ceb + W[61]
195  t2 = e0(d) + Maj(d, e, f)
195  g += t1
195  c = t1 + t2
196  t1 = b + e1(g) + Ch(g, h, a) + 0xbef9a3f7 + W[62]
197  t2 = e0(c) + Maj(c, d, e)
197  f += t1
197  b = t1 + t2
198  t1 = a + e1(f) + Ch(f, g, h) + 0xc67178f2 + W[63]
199  t2 = e0(b) + Maj(b, c, d)
199  e += t1
199  a = t1 + t2
201  state[0] += a
201  state[1] += b
201  state[2] += c
201  state[3] += d
202  state[4] += e
202  state[5] += f
202  state[6] += g
202  state[7] += h
205  a = b = c = d = e = f = g = h = t1 = t2 = 0
206  memzero_explicit - Fill a region of memory (e
Caller
NameDescribe
sha256_update