In general, yes, but the lengths of the buffers (M1) are not secret in this case.