YPC  0.2.0
Public Member Functions | List of all members
keymgr_sgx_module Class Reference
Inheritance diagram for keymgr_sgx_module:
Inheritance graph
[legend]
Collaboration diagram for keymgr_sgx_module:
Collaboration graph
[legend]

Public Member Functions

 keymgr_sgx_module (const char *mod_path)
 
ypc::version get_keymgr_version ()
 
uint32_t get_ecc_sealed_private_key_size ()
 
uint32_t generate_ecc_key_pair (bref &public_key, bref &sealed_private_key)
 
uint32_t sign_message (const uint8_t *sealed_private_key, uint32_t sealed_size, const uint8_t *data, uint32_t data_size, bref &sig)
 
uint32_t verify_signature (const uint8_t *data, uint32_t data_size, const uint8_t *sig, uint32_t sig_size, const uint8_t *public_key, uint32_t pkey_size)
 
uint32_t encrypt_message (const uint8_t *public_key, uint32_t pkey_size, const uint8_t *data, uint32_t data_size, ypc::bref &cipher)
 
uint32_t decrypt_message (const uint8_t *sealed_private_key, uint32_t sealed_size, const uint8_t *cipher, uint32_t cipher_size, bref &data)
 
uint32_t session_request (sgx_dh_msg1_t *dh_msg1, uint32_t *session_id)
 
uint32_t exchange_report (sgx_dh_msg2_t *dh_msg2, sgx_dh_msg3_t *dh_msg3, uint32_t session_id)
 
uint32_t generate_response (secure_message_t *req_message, size_t req_message_size, size_t max_payload_size, secure_message_t *resp_message, size_t resp_message_size, uint32_t session_id)
 
uint32_t end_session (uint32_t session_id)
 
uint32_t forward_private_key (const uint8_t *encrypted_private_key, uint32_t cipher_size, const uint8_t *epublic_key, uint32_t epkey_size, const uint8_t *ehash, uint32_t ehash_size, const uint8_t *sig, uint32_t sig_size)
 
uint32_t set_access_control_policy (const ypc::bytes &policy)
 
uint32_t create_report_for_pkey (const sgx_target_info_t *p_qe3_target, const stbox::bytes &pkey, sgx_report_t *p_report)
 

The documentation for this class was generated from the following files: