enclave_api.h 562 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __ENCLAVE_API_H__
  2. #define __ENCLAVE_API_H__
  3. #include "sgx_tcrypto.h"
  4. typedef uint16_t nodenum_t;
  5. struct EnclaveAPIParams {
  6. uint32_t user_count;
  7. uint16_t msg_size;
  8. uint8_t m_priv_out;
  9. uint8_t m_priv_in;
  10. uint8_t m_pub_out;
  11. uint8_t m_pub_in;
  12. };
  13. #define ROLE_INGESTION 0x01
  14. #define ROLE_ROUTING 0x02
  15. #define ROLE_STORAGE 0x04
  16. struct EnclaveAPINodeConfig {
  17. sgx_ec256_public_t pubkey;
  18. uint8_t weight;
  19. uint8_t roles;
  20. };
  21. #define SEALED_PRIVKEY_SIZE 610
  22. // Must be a multiple of 16
  23. #define FRAME_SIZE (65536+16)
  24. #endif