-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from iku-iku-iku/sign_tool
refactor penglai config to the file penglai-config.h
- Loading branch information
Showing
2 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef _PENGLAI_CONFIG_H | ||
#define _PENGLAI_CONFIG_H | ||
|
||
#define NONCE 12345 | ||
#define MD_SIZE 64 | ||
#define MAX_ELF_SIZE 512*1024*1024 | ||
#define MAX_STACK_SIZE 64*1024*1024 | ||
#define DEFAULT_STACK_SIZE 1024*1024 | ||
#define MAX_UNTRUSTED_MEM_SIZE 16*1024*1024 | ||
#define DEFAULT_UNTRUSTED_SIZE 8*1024 | ||
|
||
//TODO: 64? | ||
#define PRIVATE_KEY_SIZE 32 | ||
//TODO: 32? | ||
#define PUBLIC_KEY_SIZE 64 | ||
#define HASH_SIZE 32 | ||
#define SIGNATURE_SIZE 64 | ||
|
||
#define DEFAULT_CLOCK_DELAY 100000 | ||
#define DEFAULT_UNTRUSTED_PTR 0x0000001000000000 | ||
#define ENCLAVE_DEFAULT_KBUFFER_SIZE 0x1000UL | ||
#define ENCLAVE_DEFAULT_KBUFFER 0xffffffe000000000UL | ||
|
||
#define USER_PARAM_RESUME_FROM_CUSTOM_OCALL 1000 | ||
|
||
#define STACK_POINT 0x0000004000000000 | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters