Documentation
¶
Overview ¶
Package shaproxy provides a stream reader object to allow calculating mulitple sha256s inline. This is useful when capturing the sha256 prior to transformation of data and after.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShaProxy ¶
type ShaProxy struct { // ShaHash is the Hash object that is added to as the stream is read ShaHash hash.Hash // contains filtered or unexported fields }
func (*ShaProxy) Finish ¶
func (me *ShaProxy) Finish()
This executes the final calculation of the sha256 sum and sets the values.
func (*ShaProxy) NewProxyReader ¶
This takes an io.Reader and returns an io.Reader. It does not modify the data in the stream but adds to the object's hash.
Click to show internal directories.
Click to hide internal directories.