quote_generate

The quote_generate syscall generates an Intel® SGX attestation quote with specified user data.

The syscall number is 371.

Synopsis

ssize_t quote_generate(const void *userdata, size_t userdata_size, void *buf, size_t bufsize);

Return value

On success, the attestation quote is written into buf, and the number of bytes written is returned.

On error, a negative result will be returned with information about the error. The raw syscall returns the negative error number. If using the C library wrapper, the return value is -1 and the error number is stored in errno.

Errors

EINVAL

userdata is NULL or larger than the size of the Intel® SGX Report Data, or buf is NULL or too small to hold the resulting quote value

EFAULT

userdata or buf was allocated outside of the enclave

EIO or EREMOTEIO

An error occurred while generating the quote