Fixup: Use TC ECC type instead of uint32_t during pubkey parsing

Using explicit enumerated types avoids type confusion.
This commit is contained in:
Hanno Becker 2019-08-23 15:22:25 +01:00
parent 28332a5642
commit dfb949bb4e

View File

@ -182,7 +182,7 @@ int mbedtls_pk_parse_public_keyfile( mbedtls_pk_context *ctx, const char *path )
#if defined(MBEDTLS_USE_TINYCRYPT)
static int pk_use_ecparams( const mbedtls_asn1_buf *params )
{
uint32_t grp_id;
mbedtls_uecc_group_id grp_id;
if( params->tag == MBEDTLS_ASN1_OID )
{