This blog post is a bit older, but it explains why the encrypted used in OwnCloud is somehow flawed:
https://blog.hboeck.de/archives/880-Pwncloud-bad-crypto-in-the-Owncloud-encryption-module.html
I wonder whether there is any plan to change this crypto module and address these concerns in Nextcloud.