d2: Add "length" parameter for /data partition

 * Needed for "footer" style encryption.

Change-Id: I685354b5e7a44cfff19ee5bcedeb773bd26b8b1d