Documentation
¶
Index ¶
- Constants
- Variables
- func Derive(secret, salt []byte, size int) ([]byte, error)
- func Hash(data []byte) ([]byte, error)
- func HashMAC(key []byte) hash.Hash
- func Nonce() ([]byte, error)
- func Random(amount uint64) ([]byte, error)
- type Compression
- type Decoding
- type DecodingTXT
- type Encoding
- type EncodingTXT
- type Hashing
Constants ¶
View Source
const (
DefaultHashSize int = 32
)
Variables ¶
View Source
var ( Encoder Encoding = defaultEncoder Decoder Decoding = defaultDecoder )
View Source
var ( EncoderTXT EncodingTXT = defaultEncoderTXT DecoderTXT DecodingTXT = defaultDecoderTXT )
Functions ¶
func Derive ¶
Derive returns a derivation of the given secret and salt in a key byte slice of length size.
Types ¶
type Compression ¶
var ( Compressor Compression = nil Decompressor Compression = nil )
type DecodingTXT ¶
type EncodingTXT ¶
Click to show internal directories.
Click to hide internal directories.