MCUX CLNS MCUX Crypto Library Normal Secure |

Macros
mcuxClMemory_Endianness
mcuxClMemory

These macros implement endianess management on integers. More...

## Macros

#define | mcuxClMemory_StoreLittleEndian32(destination, value)
| Converts a 32-bit unsigned integer to a little-endian order `uint8_t` array . More...
#define | mcuxClMemory_StoreBigEndian32(destination, value)
| Converts a 32-bit unsigned integer to a big-endian order `uint8_t` array. More...
#define | mcuxClMemory_LoadLittleEndian32(source)
| Converts a little-endian order `uint8_t` array to a 32-bit unsigned integer. More...
#define | mcuxClMemory_LoadBigEndian32(source)
| Converts a big-endian order `uint8_t` array to a 32-bit unsigned integer. More...
#define | MCUXCLMEMORY_SWITCH_4BYTE_ENDIANNESS(input)
| MACRO that switches byte endianness of given CPU word. More...

## Detailed Description

These macros implement endianess management on integers.

## Macro Definition Documentation

## ◆ mcuxClMemory_StoreLittleEndian32

#define mcuxClMemory_StoreLittleEndian32 | ( |  | destination,
|  |  | value
| ) |  |

Converts a 32-bit unsigned integer to a little-endian order `uint8_t` array .

Note
  Implementation is platform independent.

Parameters

  [out] | destination | pointer to a 4 byte buffer were 32-bit integer in little-endian will be encoded.
  [in] | value | pointer to the 32-bit integer to be encoded.

## ◆ mcuxClMemory_StoreBigEndian32

#define mcuxClMemory_StoreBigEndian32 | ( |  | destination,
|  |  | value
| ) |  |

Converts a 32-bit unsigned integer to a big-endian order `uint8_t` array.

Note
  Implementation is platform independent.

Parameters

  [in] | source | pointer to a 4 byte big-endian order `uint8_t` buffer that will be converted to an unsigned integer

## ◆ mcuxClMemory_LoadLittleEndian32

#define mcuxClMemory_LoadLittleEndian32 | ( |  | source | ) |

Converts a little-endian order `uint8_t` array to a 32-bit unsigned integer.

Note
  Implementation is platform independent.

Parameters

  [in] | source | pointer to a 4 byte little-endian order `uint8_t` buffer that will be converted to an unsigned integer

## ◆ mcuxClMemory_LoadBigEndian32

#define mcuxClMemory_LoadBigEndian32 | ( |  | source | ) |

Converts a big-endian order `uint8_t` array to a 32-bit unsigned integer.

Parameters

  [in] | destination | pointer to a 4 byte buffer were 32-bit integer in big-endian will be decoded.

Returns
  a 32-bit unsigned integer

## ◆ MCUXCLMEMORY_SWITCH_4BYTE_ENDIANNESS

#define MCUXCLMEMORY_SWITCH_4BYTE_ENDIANNESS | ( |  | input | ) |

MACRO that switches byte endianness of given CPU word.

Parameters

  [in] | input | a 32-bit unsigned integer whose endianness will be reversed.