I'm using the branch v2.0.0-preview-11-17, creating Rsa3072KeyPair works for tcrypto feature (within enclave) but not with ucrypto for non-enclave.
It can be reproduced by:
use sgx_crypto::rsa::Rsa3072KeyPair;
fn main() {
let _ = Rsa3072KeyPair::create().unwrap();
}
Running it gives SGX unexpected error:
called `Result::unwrap()` on an `Err` value: Unexpected
Dependency in TOML:
[dependencies]
sgx_crypto = { git = "https://github.com/apache/incubator-teaclave-sgx-sdk", branch = "v2.0.0-preview-11-17", default-features = false, features = ["ucrypto"] }