Documentation
¶
Index ¶
Constants ¶
View Source
const ( BUFFER_ENC_TYPE_LENGTH = 1 BUFFER_IV_LENGTH = 16 BUFFER_MAC_LENGTH = 32 BUFFER_MIN_DATA_LENGTH = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptedString ¶
type EncryptedString struct { IV []byte Data []byte Hmac []byte Key symmetrickey.Key }
func New ¶
func New(iv, data, hmac []byte, key symmetrickey.Key) EncryptedString
func NewFromEncryptedBuffer ¶
func NewFromEncryptedBuffer(encBytes []byte) (*EncryptedString, error)
func NewFromEncryptedValue ¶
func NewFromEncryptedValue(encryptedValue string) (*EncryptedString, error)
func (*EncryptedString) Equals ¶
func (encString *EncryptedString) Equals(otherString *EncryptedString) bool
func (*EncryptedString) String ¶
func (encString *EncryptedString) String() string
func (*EncryptedString) ToEncryptedBuffer ¶
func (encString *EncryptedString) ToEncryptedBuffer() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.