diff --git a/components/mbedtls/library/cipher.c b/components/mbedtls/library/cipher.c index 273997577b687361f09faded2b59b4054bc3f6e1..4367b88ff742e28b19ed066b1dc4864ac38c8f25 100644 --- a/components/mbedtls/library/cipher.c +++ b/components/mbedtls/library/cipher.c @@ -459,11 +459,6 @@ int mbedtls_cipher_update( mbedtls_cipher_context_t *ctx, const unsigned char *i */ if( 0 != ilen ) { - if( 0 == block_size ) - { - return( MBEDTLS_ERR_CIPHER_INVALID_CONTEXT ); - } - /* Encryption: only cache partial blocks * Decryption w/ padding: always keep at least one whole block * Decryption w/o padding: only cache partial blocks