sizes.h File Reference

Size definitions for the PSA Crypto API. More...

Detailed Description

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define PSA_BITS_TO_BYTES(bits)   (size_t)(((bits) + 7) / 8)
 Functions to convert bits to bytes. More...
 
#define PSA_BYTES_TO_BITS(bytes)   ((bytes) * 8)
 Functions to convert bytes to bits. More...
 

Macro Definition Documentation

◆ PSA_BITS_TO_BYTES

#define PSA_BITS_TO_BYTES (   bits)    (size_t)(((bits) + 7) / 8)

Functions to convert bits to bytes.

Parameters
bits
Returns
Number of bytes contained in bits

Definition at line 35 of file sizes.h.

◆ PSA_BYTES_TO_BITS

#define PSA_BYTES_TO_BITS (   bytes)    ((bytes) * 8)

Functions to convert bytes to bits.

Parameters
bytes
Returns
Number of bits contained in bytes

Definition at line 44 of file sizes.h.