Revert "Remove length parameter for encryption"

This reverts commit 727a073a8731bf5d8341457a306b142e99d152c9.
Remove unsupported idle_sleep_mode
Disable metadata mode
cameraHAL: Squashed update of cameraHAL