Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMacError = fmt.Errorf("MAC error")
)
Functions ¶
func MakeInternalKey ¶
Types ¶
type CryptoKey ¶
type Encrypted ¶
type Encrypted struct { Type uint `json:"type"` // Cypher type Iv string `json:"iv,omitempty"` // Initialization Vector in base64 (for decryption) Value string `json:"value"` // Encrypted value in base64 Mac string `json:"mac,omitempty"` // Message Authentication Hash (HMAC) in base64 }
func MakeEncKey ¶
func NewEncrypted ¶
NewEncrypted returns a new Encrypted object from a string
Click to show internal directories.
Click to hide internal directories.