Loading...
Searching...
No Matches
sizes.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 TU Dresden
3 * Copyright (C) 2021 HAW Hamburg
4 *
5 * This file is subject to the terms and conditions of the GNU Lesser
6 * General Public License v2.1. See the file LICENSE in the top level
7 * directory for more details.
8 */
9
10#pragma once
11
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
35#define PSA_BITS_TO_BYTES(bits) (size_t)(((bits) + 7) / 8)
36
44#define PSA_BYTES_TO_BITS(bytes) ((bytes) * 8)
45
46#ifdef __cplusplus
47}
48#endif
49