Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

How to declare __attribute__(aligned()) inside edl file

Milrud__Guy
Beginner
382 Views

Hi,

I am trying to declare an __attribute__ aligned field in my struct, so that my edl file will recognize it.
I'm getting a weird error like "unexpected token: (" 

Is there any other way to do it inside the Enclave.edl? or maybe I'm doing something wrong.

file.h
#ifndef FILE_H
#define FILE_H

#define ALIGN64 __attribute__((aligned(8)))

struct TrustedData
{
      ALIGN64 UINT32 EncryptionMethods;
};
#endif

Enclave.edl

enclave 
{
#include "RDP_Def.h"
    
    trusted 
    {   
        //some functions
        public void ecallFoo([in, out] TrustedData* td);
    };
  
    untrusted 
    {
       //some functions
    };
};
0 Kudos
0 Replies
Reply