Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyToTwoWriters ¶
func CopyToTwoWriters(dst1 io.Writer, dst2 io.Writer, src io.Reader) (copyOutput1 *CopyOutput, copyOutput2 *CopyOutput)
Types ¶
type BlockMode ¶
type BlockMode string
const OFB BlockMode = "ofb"
func GetBlockModeByName ¶
func (BlockMode) GetCipherStream ¶
func (BlockMode) GetEncryptorStream ¶
func (this BlockMode) GetEncryptorStream() (BlockStream, error)
type CopyOutput ¶
type Hash ¶
type Hash string
const SHA512 Hash = "sha512"
func GetHashByHashName ¶
func (Hash) HashOnTheWay ¶
type Payload ¶
type Payload struct { DataSource io.Reader Random io.Reader HashMethod Hash Block Block BlockMode BlockMode IV []byte Key []byte Hash []byte }
func GetDefaultPayload ¶
func GetPayload ¶
func (*Payload) GetAlgorithm ¶
func (*Payload) GetHashMethod ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.