Add lengths to structs in the convenience functions to allocate and copy input and output buffers. It seems better to ensure we always store a buffer with its length. Signed-off-by: David Horstmann <david.horstmann@arm.com>