func (hash *Hash) Update(data []byte) error {
	err := tspiError(C.Tspi_Hash_UpdateHashValue(hash.handle, (C.UINT32)(len(data)), (*C.BYTE)(&data[0])))
	return err
}
Update updates a TSS hash with the data provided. It returns an error on
failure.
package tspi
import "C"
import (
	"crypto"
	"errors"
	"unsafe"
)
type Hash struct {
	handle  C.TSS_HHASH
	context C.TSS_HCONTEXT
	hashAlg crypto.Hash
}