/src/binutils-gdb/libctf/ctf-sha1.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* SHA-1 thunks. |
2 | | Copyright (C) 2019-2025 Free Software Foundation, Inc. |
3 | | |
4 | | This file is part of libctf. |
5 | | |
6 | | libctf is free software; you can redistribute it and/or modify it under |
7 | | the terms of the GNU General Public License as published by the Free |
8 | | Software Foundation; either version 3, or (at your option) any later |
9 | | version. |
10 | | |
11 | | This program is distributed in the hope that it will be useful, but |
12 | | WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14 | | See the GNU General Public License for more details. |
15 | | |
16 | | You should have received a copy of the GNU General Public License |
17 | | along with this program; see the file COPYING. If not see |
18 | | <http://www.gnu.org/licenses/>. */ |
19 | | |
20 | | #ifndef _CTF_SHA1_H |
21 | | #define _CTF_SHA1_H |
22 | | |
23 | | #include "config.h" |
24 | | #include "sha1.h" |
25 | | |
26 | 0 | #define CTF_SHA1_SIZE 41 |
27 | | |
28 | | typedef struct sha1_ctx ctf_sha1_t; |
29 | | |
30 | | static inline void |
31 | | ctf_sha1_init (ctf_sha1_t *sha1) |
32 | 0 | { |
33 | 0 | sha1_init_ctx (sha1); |
34 | 0 | } Unexecuted instantiation: ctf-archive.c:ctf_sha1_init Unexecuted instantiation: ctf-dump.c:ctf_sha1_init Unexecuted instantiation: ctf-error.c:ctf_sha1_init Unexecuted instantiation: ctf-hash.c:ctf_sha1_init Unexecuted instantiation: ctf-labels.c:ctf_sha1_init Unexecuted instantiation: ctf-lookup.c:ctf_sha1_init Unexecuted instantiation: ctf-open.c:ctf_sha1_init Unexecuted instantiation: ctf-serialize.c:ctf_sha1_init Unexecuted instantiation: ctf-string.c:ctf_sha1_init Unexecuted instantiation: ctf-subr.c:ctf_sha1_init Unexecuted instantiation: ctf-types.c:ctf_sha1_init Unexecuted instantiation: ctf-util.c:ctf_sha1_init Unexecuted instantiation: ctf-open-bfd.c:ctf_sha1_init Unexecuted instantiation: ctf-create.c:ctf_sha1_init Unexecuted instantiation: ctf-decl.c:ctf_sha1_init Unexecuted instantiation: ctf-dedup.c:ctf_sha1_init Unexecuted instantiation: ctf-link.c:ctf_sha1_init Unexecuted instantiation: ctf-sha1.c:ctf_sha1_init |
35 | | |
36 | | static inline void |
37 | | ctf_sha1_add (ctf_sha1_t *sha1, const void *buf, size_t len) |
38 | 0 | { |
39 | 0 | sha1_process_bytes (buf, len, sha1); |
40 | 0 | } Unexecuted instantiation: ctf-archive.c:ctf_sha1_add Unexecuted instantiation: ctf-dump.c:ctf_sha1_add Unexecuted instantiation: ctf-error.c:ctf_sha1_add Unexecuted instantiation: ctf-hash.c:ctf_sha1_add Unexecuted instantiation: ctf-labels.c:ctf_sha1_add Unexecuted instantiation: ctf-lookup.c:ctf_sha1_add Unexecuted instantiation: ctf-open.c:ctf_sha1_add Unexecuted instantiation: ctf-serialize.c:ctf_sha1_add Unexecuted instantiation: ctf-string.c:ctf_sha1_add Unexecuted instantiation: ctf-subr.c:ctf_sha1_add Unexecuted instantiation: ctf-types.c:ctf_sha1_add Unexecuted instantiation: ctf-util.c:ctf_sha1_add Unexecuted instantiation: ctf-open-bfd.c:ctf_sha1_add Unexecuted instantiation: ctf-create.c:ctf_sha1_add Unexecuted instantiation: ctf-decl.c:ctf_sha1_add Unexecuted instantiation: ctf-dedup.c:ctf_sha1_add Unexecuted instantiation: ctf-link.c:ctf_sha1_add Unexecuted instantiation: ctf-sha1.c:ctf_sha1_add |
41 | | #endif |