1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Merge pull request #6085 from Zaya-dyno/validation_remove_change_cipher

Validation remove and change in files related to cipher in library
This commit is contained in:
Manuel Pégourié-Gonnard
2022-09-22 09:10:13 +02:00
committed by GitHub
9 changed files with 24 additions and 216 deletions

View File

@ -358,7 +358,7 @@ exit:
}
/* END_CASE */
/* BEGIN_CASE depends_on:NOT_DEFINED */
/* BEGIN_CASE */
void aes_invalid_mode( )
{
mbedtls_aes_context aes_ctx;

View File

@ -7,7 +7,7 @@
* END_DEPENDENCIES
*/
/* BEGIN_CASE depends_on:NOT_DEFINED */
/* BEGIN_CASE */
void camellia_invalid_param( )
{
mbedtls_camellia_context ctx;

View File

@ -304,7 +304,7 @@ exit:
}
/* END_CASE */
/* BEGIN_CASE depends_on:NOT_DEFINED */
/* BEGIN_CASE */
void cipher_invalid_param_conditional( )
{
mbedtls_cipher_context_t valid_ctx;
@ -313,8 +313,6 @@ void cipher_invalid_param_conditional( )
unsigned char valid_buffer[] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 };
int valid_size = sizeof(valid_buffer);
int valid_bitlen = valid_size * 8;
const mbedtls_cipher_info_t *valid_info = mbedtls_cipher_info_from_type(
*( mbedtls_cipher_list() ) );
TEST_EQUAL(
MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,

View File

@ -411,7 +411,7 @@ void gcm_encrypt_and_verify_no_ad_no_cipher( int cipher_id,
}
/* END_CASE */
/* BEGIN_CASE depends_on:NOT_DEFINED */
/* BEGIN_CASE */
void gcm_invalid_param( )
{
mbedtls_gcm_context ctx;