mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-23 17:41:03 +00:00
Add missing MBEDTLS_ASN1_WRITE_C dependency in test_suite_psa_crypto
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
parent
e2462ba437
commit
e001596d83
|
@ -48,7 +48,7 @@ static int mem_is_char( void *buffer, unsigned char c, size_t size )
|
||||||
}
|
}
|
||||||
return( 1 );
|
return( 1 );
|
||||||
}
|
}
|
||||||
|
#if defined(MBEDTLS_ASN1_WRITE_C)
|
||||||
/* Write the ASN.1 INTEGER with the value 2^(bits-1)+x backwards from *p. */
|
/* Write the ASN.1 INTEGER with the value 2^(bits-1)+x backwards from *p. */
|
||||||
static int asn1_write_10x( unsigned char **p,
|
static int asn1_write_10x( unsigned char **p,
|
||||||
unsigned char *start,
|
unsigned char *start,
|
||||||
|
@ -132,6 +132,7 @@ static int construct_fake_rsa_key( unsigned char *buffer,
|
||||||
}
|
}
|
||||||
return( len );
|
return( len );
|
||||||
}
|
}
|
||||||
|
#endif /* MBEDTLS_ASN1_WRITE_C */
|
||||||
|
|
||||||
int exercise_mac_setup( psa_key_type_t key_type,
|
int exercise_mac_setup( psa_key_type_t key_type,
|
||||||
const unsigned char *key_bytes,
|
const unsigned char *key_bytes,
|
||||||
|
@ -503,7 +504,7 @@ exit:
|
||||||
}
|
}
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
|
|
||||||
/* BEGIN_CASE */
|
/* BEGIN_CASE depends_on:MBEDTLS_ASN1_WRITE_C */
|
||||||
void import_rsa_made_up( int bits_arg, int keypair, int expected_status_arg )
|
void import_rsa_made_up( int bits_arg, int keypair, int expected_status_arg )
|
||||||
{
|
{
|
||||||
mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
|
mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT;
|
||||||
|
|
Loading…
Reference in a new issue