Skip to content

Commit b23b765

Browse files
higuoxingKernel Patches Daemon
authored andcommitted
selftests: test_tag: prog_tag is calculated using SHA256.
commit 603b441 ("bpf: Update the bpf_prog_calc_tag to use SHA256") changed digest of prog_tag to SHA256 but forgot to update tests correspondingly. This patch helps fix it. Fixes: 603b441 ("bpf: Update the bpf_prog_calc_tag to use SHA256") Signed-off-by: Xing Guo <[email protected]>
1 parent d6d8658 commit b23b765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/test_tag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static void tag_from_alg(int insns, uint8_t *tag, uint32_t len)
116116
static const struct sockaddr_alg alg = {
117117
.salg_family = AF_ALG,
118118
.salg_type = "hash",
119-
.salg_name = "sha1",
119+
.salg_name = "sha256",
120120
};
121121
int fd_base, fd_alg, ret;
122122
ssize_t size;

0 commit comments

Comments
 (0)