[Assignment-7] fixed wrong data size parameter given to sgx_ecdsa_sign

This commit is contained in:
Sascha Tommasone 2024-07-06 13:35:14 +02:00 committed by saschato
parent c1351d4853
commit 04e2894de0

View file

@ -258,7 +258,7 @@ sgx_status_t sign_firmware(const uint8_t *data, uint32_t data_size, const uint8_
}
// create signature
if((status = sgx_ecdsa_sign(data, DG_SIZE, &private, &ecc_signature, ecc_handle)) != SGX_SUCCESS) {
if((status = sgx_ecdsa_sign(data, data_size, &private, &ecc_signature, ecc_handle)) != SGX_SUCCESS) {
sgx_ecc256_close_context(ecc_handle);
return status;
}