Expand description
§Cryptography Library
The Intel(R) Software Guard Extensions SDK includes a trusted cryptography library named sgx_tcrypto. It includes the cryptographic functions used by other trusted libraries included in the SDK
Structs§
- SgxAes
Handle - SgxCmac
Handle - CMAC algorithm context state.
- SgxEcc
Handle - ECC GF(p) context state.
- SgxHmac
Handle - SgxRsa
Priv Key - SgxRsa
PubKey - SgxSha1
Handle - SgxSha
Handle - SHA algorithm context state.
Constants§
Functions§
- consttime_
memequal ⚠ - hex_
to_ bytes - memset_
s ⚠ - rsgx_
aes_ ctr_ decrypt - rsgx_aes_ctr_decrypt performs a Rijndael AES-CTR decryption operation.
- rsgx_
aes_ ctr_ encrypt - rsgx_aes_ctr_encrypt performs a Rijndael AES-CTR encryption operation.
- rsgx_
calculate_ ecdsa_ priv_ key - rsgx_calculate_ecdsa_priv_key generates an ECDSA private key based on an input random seed.
- rsgx_
create_ rsa_ key_ pair - rsgx_
ecc256_ calculate_ pub_ from_ priv - rsgx_
ecc256_ priv_ key - rsgx_
ecc256_ pub_ from_ priv - rsgx_
hmac_ sha256_ msg - rsgx_
hmac_ sha256_ slice - rsgx_
rijndael128GCM_ decrypt - rsgx_rijndael128GCM_decrypt performs a Rijndael AES-GCM decryption operation.
- rsgx_
rijndael128GCM_ encrypt - rsgx_rijndael128GCM_encrypt performs a Rijndael AES-GCM encryption operation.
- rsgx_
rijndael128_ cmac_ msg - The rsgx_rijndael128_cmac_msg function performs a standard 128bit CMAC hash over the input data buffer.
- rsgx_
rijndael128_ cmac_ slice - The rsgx_rijndael128_cmac_slice function performs a standard 128bit CMAC hash over the input data buffer.
- rsgx_
rsa3072_ sign_ msg - The rsgx_rsa3072_sign_msg computes a digital signature for a given dataset based on RSA 3072 private key.
- rsgx_
rsa3072_ sign_ slice - The rsgx_rsa3072_sign_slice computes a digital signature for a given dataset based on RSA 3072 private key.
- rsgx_
rsa3072_ verify_ msg - rsgx_rsa3072_verify_msg verifies the input digital signature for the given data- set based on the RSA 3072 public key.
- rsgx_
rsa3072_ verify_ slice - rsgx_rsa3072_verify_slice verifies the input digital signature for the given data- set based on the RSA 3072 public key.
- rsgx_
sha1_ msg - rsgx_
sha1_ slice - rsgx_
sha256_ msg - The rsgx_sha256_msg function performs a standard SHA256 hash over the input data buffer.
- rsgx_
sha256_ slice - The rsgx_sha256_slice function performs a standard SHA256 hash over the input data buffer.
- sgx_
read_ ⚠rand