]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/basic/hmac.h
ci: enable arm64 runner for build/unit jobs
[thirdparty/systemd.git] / src / basic / hmac.h
CommitLineData
8d39bff4
LB
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2#pragma once
3
0c15577a 4#include "forward.h"
e560cf4f 5#include "sha256.h"
8d39bff4
LB
6
7/* Unoptimized implementation based on FIPS 198. 'res' has to be allocated by
8 * the caller. Prefer external OpenSSL functions, and use this only when
ba669952 9 * linking to OpenSSL is not desirable (eg: libsystemd.so). */
8d39bff4 10void hmac_sha256(const void *key, size_t key_size, const void *input, size_t input_size, uint8_t res[static SHA256_DIGEST_SIZE]);