floodyberry / ed25519-donna

Implementations of a fast Elliptic-curve Digital Signature Algorithm
169 stars 47 forks source link

Fix/sgx friendly #33

Closed TomMD closed 6 years ago

TomMD commented 7 years ago

N.B. This branch is forked from a prior PR (#32) so I can rebase if that PR is not acceptable.

As stated in the readme, Intel's SGX does not include a param.h which donna includes when using the typical set of build flags. This patch creates a new CPP, -DSGX_ENCLAVE_ENV, that explicitly avoids including param.h in two locations.

It might be in scope of the donna project (@floodyberry?) to use Intel's rng and SHA512 implementation when this flag is set instead of making each dev create a -custom.h header.

TomMD commented 6 years ago

No?