mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-29 21:33:02 +00:00
programs_benchmark: Updated to use mbedtls_dhm_read_public()
.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
This commit is contained in:
parent
97489dc7e5
commit
8ee1b5f46e
@ -1105,7 +1105,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
n = mbedtls_dhm_get_len(&dhm);
|
||||
mbedtls_dhm_make_public(&dhm, (int) n, buf, n, myrand, NULL);
|
||||
if (mbedtls_mpi_copy(&dhm.MBEDTLS_PRIVATE(GY), &dhm.MBEDTLS_PRIVATE(GX)) != 0) {
|
||||
|
||||
if (mbedtls_dhm_read_public(&dhm, buf, n) != 0) {
|
||||
mbedtls_exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user