[Assignment-7] fixed wrong data size parameter given to sgx_ecdsa_sign
This commit is contained in:
parent
c1351d4853
commit
04e2894de0
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ sgx_status_t sign_firmware(const uint8_t *data, uint32_t data_size, const uint8_
|
||||||
}
|
}
|
||||||
|
|
||||||
// create signature
|
// 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);
|
sgx_ecc256_close_context(ecc_handle);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue