Padding now also works for buffers of mulitples of blocksize.