Documentation ¶
Index ¶
Constants ¶
View Source
const (
CommonSignChunkSize64K = 65536
)
Variables ¶
View Source
var ( ErrSignIncomplete = errors.New("signature data incomplete") ErrSignCrc = errors.New("sign crc32 incorrect") )
Functions ¶
func SignMarshall ¶
func SignUnmarshall ¶
Types ¶
type BlobSign ¶
type BlobSign struct {
// contains filtered or unexported fields
}
func NewBlobSign ¶
type BlobSignManager ¶
type BlobSignManager struct {
// contains filtered or unexported fields
}
func NewBlobSignManager ¶
func NewBlobSignManager() *BlobSignManager
type DataSigner ¶
type DataSigner struct {
// contains filtered or unexported fields
}
func NewDataSigner ¶
func NewDataSigner(dataSize uint64) *DataSigner
func (*DataSigner) Close ¶
func (s *DataSigner) Close()
func (*DataSigner) Sum ¶
func (s *DataSigner) Sum() []uint32
Sum return not a copy but a ref SAFETY DECLARATION: []uint32 return by this function should not be used after Close() called
type SignedFile ¶
type SignedFile struct {
// contains filtered or unexported fields
}
func NewSignedFile ¶
func NewSignedFile(fd io.ReadSeekCloser, fsize uint64, bs *BlobSign) *SignedFile
func (*SignedFile) Close ¶
func (f *SignedFile) Close() error
Close will return this SignedFile to pool, after calling close, this SignedFile should never be used again.
Click to show internal directories.
Click to hide internal directories.