Documentation ¶
Overview ¶
Package pack provides the registry for implementations of Packing algorithms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBadPacking indicates that the packing code is invalid. ErrBadPacking = errors.Str("DirEntry has incorrect Packing value") )
Functions ¶
func CheckPacking ¶
CheckPacking verifies that the DirEntry matches the packing type for Pack and Packlen.
func Lookup ¶
Lookup returns the implementation of the specified Packing, or nil if none is registered.
func LookupByName ¶
LookupByName returns the implementation of the specified Packing, or nil if none is registered.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package ee implements an elliptic-curve end-to-end encryption packer.
|
Package ee implements an elliptic-curve end-to-end encryption packer. |
Package ei implements an elliptic-curve end-to-end integrity-checked packer.
|
Package ei implements an elliptic-curve end-to-end integrity-checked packer. |
Package internal provides some helpers used by packing implementations.
|
Package internal provides some helpers used by packing implementations. |
packtest
Package packtest provides common functionality used by packer tests.
|
Package packtest provides common functionality used by packer tests. |
Package packutil provides helper functions for DirEntry Packdata computation.
|
Package packutil provides helper functions for DirEntry Packdata computation. |
Package plain is a simple Packing that passes the data untouched.
|
Package plain is a simple Packing that passes the data untouched. |
Click to show internal directories.
Click to hide internal directories.