[PATCH] storage: check bounds before accessing encryption payload offset