diff --git a/cpp/src/parquet/encryption/encryption_internal_nossl.cc b/cpp/src/parquet/encryption/encryption_internal_nossl.cc index ce8b9411264cf..2cce83915d7e5 100644 --- a/cpp/src/parquet/encryption/encryption_internal_nossl.cc +++ b/cpp/src/parquet/encryption/encryption_internal_nossl.cc @@ -92,6 +92,7 @@ AesDecryptor::AesDecryptor(ParquetCipher::type alg_id, int key_len, bool metadat std::shared_ptr AesDecryptor::Make( ParquetCipher::type alg_id, int key_len, bool metadata, std::vector>* all_decryptors) { + ThrowOpenSSLRequiredException(); return NULLPTR; } diff --git a/cpp/src/parquet/metadata.cc b/cpp/src/parquet/metadata.cc index c05ccb89f2f27..ee8391818962c 100644 --- a/cpp/src/parquet/metadata.cc +++ b/cpp/src/parquet/metadata.cc @@ -654,9 +654,6 @@ class FileMetaData::FileMetaDataImpl { auto aes_encryptor = encryption::AesEncryptor::Make(file_decryptor_->algorithm(), static_cast(key.size()), true, false /*write_length*/); - if (ARROW_PREDICT_FALSE(aes_encryptor == nullptr)) { - throw ParquetException("Could not create AES encryptor for signature verification"); - } std::shared_ptr encrypted_buffer = AllocateBuffer( file_decryptor_->pool(), aes_encryptor->CiphertextLength(serialized_len));