They have released a whitepaper [1] where they go into details of how the encryption works, so using this knowledge in theory one should be able to verify that the encryption is legitimate.
[1] https://www.whatsapp.com/security/WhatsApp-Security-Whitepap...