Commit d47cc4d
bpf: Use sha1() instead of sha1_transform() in bpf_prog_calc_tag()
Now that there's a proper SHA-1 library API, just use that instead of
the low-level SHA-1 compression function. This eliminates the need for
bpf_prog_calc_tag() to implement the SHA-1 padding itself. No
functional change; the computed tags remain the same.
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]1 parent 0780f54 commit d47cc4d
2 files changed
+9
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
997 | 997 | | |
998 | 998 | | |
999 | 999 | | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | 1000 | | |
1007 | 1001 | | |
1008 | 1002 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
| 297 | + | |
| 298 | + | |
301 | 299 | | |
302 | 300 | | |
303 | | - | |
304 | | - | |
305 | | - | |
| 301 | + | |
306 | 302 | | |
307 | | - | |
308 | | - | |
| 303 | + | |
| 304 | + | |
309 | 305 | | |
310 | 306 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | 307 | | |
315 | 308 | | |
316 | 309 | | |
317 | | - | |
318 | 310 | | |
319 | 311 | | |
320 | 312 | | |
| |||
334 | 326 | | |
335 | 327 | | |
336 | 328 | | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
364 | 332 | | |
365 | 333 | | |
366 | 334 | | |
| |||
0 commit comments