Searched refs:SHA256_DIGEST_LENGTH (Results 1 – 8 of 8) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | sha256.c | 16 static const __u8 expected_digest_of_digests[SHA256_DIGEST_LENGTH] = { in test_sha256() 24 __u8 digest_of_digests[SHA256_DIGEST_LENGTH]; in test_sha256() 30 digests = malloc((MAX_LEN + 1) * SHA256_DIGEST_LENGTH); in test_sha256() 42 libbpf_sha256(data, i, &digests[i * SHA256_DIGEST_LENGTH]); in test_sha256() 45 libbpf_sha256(digests, (MAX_LEN + 1) * SHA256_DIGEST_LENGTH, in test_sha256() 48 SHA256_DIGEST_LENGTH, "digest_of_digests"); in test_sha256()
|
| H A D | signed_loader.c | 240 __u8 excl[SHA256_DIGEST_LENGTH]; 641 __u8 excl[SHA256_DIGEST_LENGTH]; in metadata_ctx_max_entries_ignored() 726 __u8 excl[SHA256_DIGEST_LENGTH], evil[64]; in metadata_ctx_initial_value_ignored() 819 __u8 excl[SHA256_DIGEST_LENGTH], sig[8192]; in signature_authenticates_insns() 919 __u8 excl[SHA256_DIGEST_LENGTH], sig[8192]; in signature_authenticates_metadata() 1012 __u8 hash[SHA256_DIGEST_LENGTH] = { 1 }; /* any 32-byte value */ in make_excl_map() 1022 __u8 hbuf[SHA256_DIGEST_LENGTH], val[64] = {}; in hash_requires_frozen() 1092 __u8 kbuf[SHA256_DIGEST_LENGTH], lbuf[SHA256_DIGEST_LENGTH], val[64] = {}; in map_hash_matches_libbpf() 1124 __u8 kbuf[SHA256_DIGEST_LENGTH], lbuf[SHA256_DIGEST_LENGTH]; in map_hash_multi_element() 1166 __u8 kbuf[SHA256_DIGEST_LENGTH], val[64] = {}; in map_hash_bad_size() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | tcp_mmap.c | 171 unsigned char digest[SHA256_DIGEST_LENGTH]; in child_thread() 283 lu = read(fd, buffer, SHA256_DIGEST_LENGTH); in child_thread() 284 if (lu != SHA256_DIGEST_LENGTH) in child_thread() 288 SHA256_DIGEST_LENGTH)) in child_thread() 447 unsigned char digest[SHA256_DIGEST_LENGTH]; in main() 609 send(fd, digest, (size_t)SHA256_DIGEST_LENGTH, 0); in main()
|
| /linux/tools/testing/selftests/sgx/ |
| H A D | sigstruct.c | 320 uint8_t digest[SHA256_DIGEST_LENGTH]; in encl_measure() 370 if (!RSA_sign(NID_sha256, digest, SHA256_DIGEST_LENGTH, in encl_measure()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf_internal.h | 770 #define SHA256_DIGEST_LENGTH 32 macro 772 void libbpf_sha256(const void *data, size_t len, __u8 out[SHA256_DIGEST_LENGTH]);
|
| H A D | libbpf_utils.c | 236 void libbpf_sha256(const void *data, size_t len, __u8 out[SHA256_DIGEST_LENGTH]) in libbpf_sha256() argument
|
| H A D | libbpf.c | 518 __u8 hash[SHA256_DIGEST_LENGTH]; 5425 create_attr.excl_prog_hash_size = SHA256_DIGEST_LENGTH; in bpf_object__create_map()
|
| /linux/tools/bpf/bpftool/ |
| H A D | gen.c | 709 __u8 prog_sha[SHA256_DIGEST_LENGTH]; in gen_trace()
|