Loading...
Searching...
No Matches
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)
 Functions to convert bits to bytes.
 
#define PSA_BYTES_TO_BITS(bytes)
 Functions to convert bytes to bits.
 

Macro Definition Documentation

◆ PSA_BITS_TO_BYTES

#define PSA_BITS_TO_BYTES ( bits)
Value:
(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)
Value:
((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.