1. A device comprising: a buffer memory; and a hardware processer coupled to the buffer memory and configured to, in response to a determination that output data to be written is processed based on input data from at least one secure location of the buffer memory associated with a secure address range of the buffer memory: allow writing of the output data, processed based on the input data from the at least one secure location, to one or more secure locations of the buffer memory associated with the secure address range, and block writing of the output data, processed based on the input data from the at least one secure location, to one or more insecure locations of the buffer memory associated with an insecure address range of the buffer memory; wherein the hardware processer is further configured to: allow writing of other output data, processed based on input data from at least one insecure location of the buffer memory, to the one or more insecure locations of the buffer memory associated with the insecure address range; and determine whether the output data to be written is processed based on the input data from the at least one secure location of the buffered memory associated with the secure address range.