Skip to content

Commit

Permalink
removing leftovers from initial development
Browse files Browse the repository at this point in the history
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
  • Loading branch information
valeriosetti committed Apr 13, 2023
1 parent 51c9cd8 commit e8bab6a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
13 changes: 1 addition & 12 deletions library/pk.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,18 +449,7 @@ int mbedtls_pk_verify_restartable(mbedtls_pk_context *ctx,
if ((ret = pk_restart_setup(rs_ctx, ctx->pk_info)) != 0) {
return ret;
}
#if defined(MBEDTLS_USE_PSA_CRYPTO)
/* PSA crypto does not support restartable functions yet, so we are
* falling back to the mbedtls implementation. Therefore copy the
* raw content of the public key back to the ecp_keypair structure */
if ((mbedtls_ecp_is_zero(&(mbedtls_pk_ec(*ctx)->Q)) == 1) &&
(ctx->pk_raw_len != 0)) {
ret = mbedtls_pk_update_keypair_from_public_key(ctx);
if (ret != 0) {
return ret;
}
}
#endif /* MBEDTLS_USE_PSA_CRYPTO */

ret = ctx->pk_info->verify_rs_func(ctx->pk_ctx,
md_alg, hash, hash_len, sig, sig_len, rs_ctx->rs_ctx);

Expand Down
1 change: 0 additions & 1 deletion library/ssl_misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
#endif

#include "mbedtls/pk.h"
#include "pk_internal.h"
#include "common.h"

/* Shorthand for restartable ECC */
Expand Down

0 comments on commit e8bab6a

Please sign in to comment.