trusty: Add TRUSTY_SEND_SECURE_OR_SHARE

Add new TRUSTY_SEND_SECURE_OR_SHARE mode which checks whether the buffer
is already secure. If it is, proceed as with TRUSTY_SEND_SECURE. If not,
proceed as with TRUSTY_SHARE.

Bug: 319300676
Test: Added cases to tipc-test, ran on QEMU
Change-Id: I1103e79bf0e3c66f1f986c2e5d0f9a0654361d12
2 files changed