[Assignment-7] add prototype 'sgx_status_t public_key'
All checks were successful
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (push) Successful in 1m4s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (push) Successful in 1m2s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (push) Successful in 59s

This commit is contained in:
Sascha Tommasone 2024-07-01 13:07:32 +02:00
parent 7044b96803
commit c33a97d003
Signed by: saschato
GPG key ID: 751068A86FCAA217
3 changed files with 40 additions and 7 deletions

View file

@ -40,7 +40,7 @@ enclave {
*/
trusted {
public sgx_status_t public_key([out]uint8_t *gx, [out]uint8_t *gy);
public sgx_status_t public_key([in, size=sealed_size]const uint8_t *sealed, size_t sealed_size, [out]uint8_t *gx, [out]uint8_t *gy);
public sgx_status_t sign_firmware([in, size=data_size]uint8_t *data, size_t data_size, [out, size=signature_size]uint8_t *signature, size_t signature_size);
};
@ -50,6 +50,6 @@ enclave {
* [string]: specifies 'str' is a NULL terminated buffer.
*/
untrusted {
int read_file([in, string] path_to_file, [out, size=bsize] uint8_t *buffer, size_t bsize);
};
};