How secure is password protection for documents?

I was unable to find any indication to the security of the password protection feature on LibreOffice. How secure are password protected documents? Does it use mainstream encryption protocols, such as AES, or something else to secure the documents?

See my technical analysis in this question.

Thanks man!