Embedded SDK
Embedded SDK
Functions
cx_utils.c File Reference
#include "cx_utils.h"
Include dependency graph for cx_utils.c:

Go to the source code of this file.

Functions

uint32_t cx_swap_uint32 (uint32_t v)
 
void cx_swap_buffer32 (uint32_t *v, size_t len)
 
void cx_rotr64 (uint64bits_t *x, unsigned int n)
 
void cx_shr64 (uint64bits_t *x, unsigned char n)
 
void cx_swap_uint64 (uint64bits_t *v)
 
void cx_swap_buffer64 (uint64bits_t *v, int len)
 
void cx_add_64 (uint64bits_t *x, uint64bits_t *y)
 
void cx_memxor (uint8_t *buf1, const uint8_t *buf2, size_t len)
 
uint8_t cx_constant_time_eq (const uint8_t *buf1, uint8_t *buf2, size_t len)
 

Function Documentation

◆ cx_add_64()

void cx_add_64 ( uint64bits_t x,
uint64bits_t y 
)

Definition at line 156 of file cx_utils.c.

◆ cx_constant_time_eq()

uint8_t cx_constant_time_eq ( const uint8_t buf1,
uint8_t buf2,
size_t  len 
)

Definition at line 181 of file cx_utils.c.

◆ cx_memxor()

void cx_memxor ( uint8_t buf1,
const uint8_t buf2,
size_t  len 
)

Definition at line 173 of file cx_utils.c.

◆ cx_rotr64()

void cx_rotr64 ( uint64bits_t x,
unsigned int  n 
)

Definition at line 68 of file cx_utils.c.

◆ cx_shr64()

void cx_shr64 ( uint64bits_t x,
unsigned char  n 
)

Definition at line 83 of file cx_utils.c.

◆ cx_swap_buffer32()

void cx_swap_buffer32 ( uint32_t *  v,
size_t  len 
)

Definition at line 47 of file cx_utils.c.

◆ cx_swap_buffer64()

void cx_swap_buffer64 ( uint64bits_t v,
int  len 
)

Definition at line 140 of file cx_utils.c.

◆ cx_swap_uint32()

uint32_t cx_swap_uint32 ( uint32_t  v)

Definition at line 41 of file cx_utils.c.

◆ cx_swap_uint64()

void cx_swap_uint64 ( uint64bits_t v)

Definition at line 118 of file cx_utils.c.