accept a Buffer to hash