Validate decryption key length to decrypt function.
am: 379b672b18

Change-Id: Id02cc53d3b7d561f64893391a6160520e5e89593