//
pkg.gl
Category
github.com/dcnetio/gothreads-lib
crypto
symmetric
package
0.1.31
Repository:
https://github.com/dcnetio/gothreads-lib.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
11
Files
98 SLOC
#
Functions
FromBytes
FromBytes returns a key by decoding bytes.
FromString
FromString returns a key by decoding a base32-encoded string.
New
New returns Key if err is nil and panics otherwise.
NewRandom
NewRandom returns a random key.
#
Constants
KeyBytes
KeyBytes is the length of GCM key.
NonceBytes
NonceBytes is the length of GCM nonce.
#
Structs
Key
Key is a wrapper for a symmetric key.