Implements a cross-platform version of https://github.com/OP-TEE/optee_os/pull/3102 1. Remove recursion 2. Use memset instead of while loop
* Add x3dh key exchange * Encrypt using the double ratchet * Multi device with auto-pairing * Add pfs enabled flag