Calculate digest from current state and specified bytes.
Calculate digest from current state and specified string.