mirror of
https://github.com/systemd/systemd.git
synced 2026-07-15 12:00:34 +00:00
Let's not leak details from src/shared and src/libsystemd into src/basic, even though you can't actually do anything useful with just forward declarations from src/shared. The sd-forward.h header is put in src/libsystemd/sd-common as we don't have a directory for shared internal headers for libsystemd yet. Let's also rename forward.h to basic-forward.h to keep things self-explanatory.
11 lines
455 B
C
11 lines
455 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
#pragma once
|
|
|
|
#include "basic-forward.h"
|
|
#include "sha256.h"
|
|
|
|
/* Unoptimized implementation based on FIPS 198. 'res' has to be allocated by
|
|
* the caller. Prefer external OpenSSL functions, and use this only when
|
|
* linking to OpenSSL is not desirable (eg: libsystemd.so). */
|
|
void hmac_sha256(const void *key, size_t key_size, const void *input, size_t input_size, uint8_t res[static SHA256_DIGEST_SIZE]);
|