CAVP crypto 113.10.09
Implements various cryptographic algorithms for CAVP validation.
 
Loading...
Searching...
No Matches
utils.h File Reference

Go to the source code of this file.

Functions

void hex_to_bytes (const char *hex, unsigned char *outBytes, unsigned long *outBytesLen)
 
void bytes_to_hex (unsigned char *bytes, unsigned long bytesLen, char *hex)
 
void copy_bytes (unsigned char *src, unsigned char *dest, unsigned long length)
 
void xor_strings (char *dest, char *src1, char *src2, int length)
 
void getIthByteInHex (char *hex, int i, char *dest)
 
int hexStringToInteger (char *hex)
 

Function Documentation

◆ bytes_to_hex()

void bytes_to_hex ( unsigned char * bytes,
unsigned long bytesLen,
char * hex )

◆ copy_bytes()

void copy_bytes ( unsigned char * src,
unsigned char * dest,
unsigned long length )

◆ getIthByteInHex()

void getIthByteInHex ( char * hex,
int i,
char * dest )

◆ hex_to_bytes()

void hex_to_bytes ( const char * hex,
unsigned char * outBytes,
unsigned long * outBytesLen )

◆ hexStringToInteger()

int hexStringToInteger ( char * hex)

◆ xor_strings()

void xor_strings ( char * dest,
char * src1,
char * src2,
int length )