1#ifndef SAFEHERON_SGX_TRUSTED_UTILS_H
2#define SAFEHERON_SGX_TRUSTED_UTILS_H
std::string FormatStr(const char *fmt,...)
Format args according to the format string fmt, and return the result as a string.
void * CallocOutside(size_t num, size_t size)
Allocates memory outside the enclave for an array of num objects of size and initializes all bytes in...
char * StrndupOutside(const char *str_ptr, std::size_t str_len)
Duplicates a fixed-length C-style string to memory allocated outside the enclave.
void * MemdupOutside(const void *buf_ptr, std::size_t buf_size)
Duplicates a raw memory buffer to memory allocated outside the enclave.
void * MemcpyToOutside(void *dest_outside_enclave, const void *src, std::size_t count)
Copies count bytes from the object pointed to by src to the object outside the enclave pointed to by ...
void Sleep(uint32_t seconds)
Sleep for a specified number of seconds using OCall.
void FreeOutside(void *ptr_outside, size_t size)
Deallocates the space previously allocated by MallocOutside(), CallocOutside().
void * MallocOutside(size_t size)
Allocates size bytes of uninitialized storage outside the enclave.
int Printf(const char *fmt,...)
Print formatted data to stdout.
Definition ssgx_attestation_t.h:6