mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-09 01:36:52 +08:00
This commit is contained in:
parent
6044d8329b
commit
ec7ab1a4ed
1 changed files with 2 additions and 2 deletions
|
@ -261,7 +261,7 @@ static unsigned char *crypto_pk_polarssl_get_parameter(const struct crypto_pk *_
|
|||
result = malloc(*plen);
|
||||
memset(result, 0x00, *plen);
|
||||
res = mbedtls_mpi_write_binary(&cp->ctx.N, result, *plen);
|
||||
if (res == 0) {
|
||||
if (res < 0) {
|
||||
printf("Error write_binary.");
|
||||
result = 0;
|
||||
}
|
||||
|
@ -272,7 +272,7 @@ static unsigned char *crypto_pk_polarssl_get_parameter(const struct crypto_pk *_
|
|||
result = malloc(*plen);
|
||||
memset(result, 0x00, *plen);
|
||||
res = mbedtls_mpi_write_binary(&cp->ctx.E, result, *plen);
|
||||
if (res == 0) {
|
||||
if (res < 0) {
|
||||
printf("Error write_binary.");
|
||||
result = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue