Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AES ¶
type AES struct {
// contains filtered or unexported fields
}
AES is an Codec that encrypts the data and uses a sub marshaller to actually serialize the data
func NewAES ¶
func NewAES(subMarshaller codec.MarshalUnmarshaler, key []byte) (*AES, error)
NewAES creates a new AES encryption marshaller. It takes a sub marshaller to actually serialize the data and a 16/32 bytes private key to encrypt all data using AES in GCM block mode.
Click to show internal directories.
Click to hide internal directories.