Refactor the padding method for BLAKE.