CAVP crypto 113.10.09
Implements various cryptographic algorithms for CAVP validation.
 
Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
1#ifndef _UTILS_H_
2#define _UTILS_H_
3
4void hex_to_bytes(const char* hex, unsigned char* outBytes, unsigned long* outBytesLen);
5void bytes_to_hex(unsigned char* bytes, unsigned long bytesLen, char* hex);
6void copy_bytes(unsigned char* src, unsigned char* dest, unsigned long length);
7void xor_strings(char* dest, char* src1, char* src2, int length);
8void getIthByteInHex(char* hex, int i, char* dest);
9int hexStringToInteger(char* hex);
10
11#endif
void bytes_to_hex(unsigned char *bytes, unsigned long bytesLen, char *hex)
Definition utils.c:12
void getIthByteInHex(char *hex, int i, char *dest)
Definition utils.c:51
void hex_to_bytes(const char *hex, unsigned char *outBytes, unsigned long *outBytesLen)
Definition utils.c:5
void xor_strings(char *dest, char *src1, char *src2, int length)
Definition utils.c:26
void copy_bytes(unsigned char *src, unsigned char *dest, unsigned long length)
Definition utils.c:19
int hexStringToInteger(char *hex)
Definition utils.c:58