Currently it will do padding, but it does not properly handle start-of-stream trimming as documented.