Assignment-7-sgximpl #13
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
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue