Merge pull request #3899 from shelib01/masked-aes

Masked AES 128 bit, encrypt only (boolean mask technique)
This commit is contained in:
Shelly Liberman 2020-11-27 17:17:23 +02:00 committed by GitHub
commit 26bea33674
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 461 additions and 14 deletions

View file

@ -770,6 +770,14 @@ int query_config( const char *config )
}
#endif /* MBEDTLS_AES_SCA_COUNTERMEASURES */
#if defined(MBEDTLS_AES_128_BIT_MASKED)
if( strcmp( "MBEDTLS_AES_128_BIT_MASKED", config ) == 0 )
{
MACRO_EXPANSION_TO_STR( MBEDTLS_AES_128_BIT_MASKED );
return( 0 );
}
#endif /* MBEDTLS_AES_128_BIT_MASKED */
#if defined(MBEDTLS_FI_COUNTERMEASURES)
if( strcmp( "MBEDTLS_FI_COUNTERMEASURES", config ) == 0 )
{