2 Copyright (C) 2019-2024 Free Software Foundation, Inc.
4 This file is part of libctf.
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
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.
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/>. */
26 #define CTF_SHA1_SIZE 41
28 typedef struct sha1_ctx ctf_sha1_t
;
31 ctf_sha1_init (ctf_sha1_t
*sha1
)
37 ctf_sha1_add (ctf_sha1_t
*sha1
, const void *buf
, size_t len
)
39 sha1_process_bytes (buf
, len
, sha1
);