Documentation ¶
Index ¶
- type AESCTR
- func (m *AESCTR) ConfirmMacFromByteArray(originalMac []byte) (result bool)
- func (m *AESCTR) ConfirmMacFromstring(originalMac string) (result bool, err error)
- func (m *AESCTR) GetDecriptedMessage() (t []byte)
- func (m *AESCTR) GetDecriptedMessageMac() (mac string)
- func (m *AESCTR) GetDecriptedMessageMacAsByteArray() (mac []byte)
- func (m *AESCTR) GetEncodedEncriptedMessage() (t string)
- func (m *AESCTR) GetEncriptedMessage() (t []byte)
- func (m *AESCTR) GetPlainMessageMac() (mac string)
- func (m *AESCTR) GetPlainMessageMacAsByteArray() (mac []byte)
- func (m *AESCTR) SetEncodedEncriptedMessage(t string)
- func (m *AESCTR) SetEncriptedMessage(t []byte)
- func (m *AESCTR) SetKey(key []byte)
- func (m *AESCTR) SetNewIV()
- func (m *AESCTR) SetPlainMessage(plainmessage []byte)
- type AESGCM
- func (m *AESGCM) GetDecriptedMessage() (t []byte)
- func (m *AESGCM) GetEncodedEncriptedMessage() (t string)
- func (m *AESGCM) GetEncriptedMessage() (t []byte)
- func (m *AESGCM) SetEncodedEncriptedMessage(t string, aad []byte) (err error)
- func (m *AESGCM) SetEncriptedMessage(t []byte, aad []byte) (err error)
- func (m *AESGCM) SetKey(key []byte)
- func (m *AESGCM) SetNewIV()
- func (m *AESGCM) SetPlainMessage(plainmessage []byte, aad []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AESCTR ¶
type AESCTR struct {
// contains filtered or unexported fields
}
func (*AESCTR) ConfirmMacFromByteArray ¶
func (*AESCTR) ConfirmMacFromstring ¶
func (*AESCTR) GetDecriptedMessage ¶
func (*AESCTR) GetDecriptedMessageMac ¶
func (*AESCTR) GetDecriptedMessageMacAsByteArray ¶
func (*AESCTR) GetEncodedEncriptedMessage ¶
func (*AESCTR) GetEncriptedMessage ¶
func (*AESCTR) GetPlainMessageMac ¶
func (*AESCTR) GetPlainMessageMacAsByteArray ¶
func (*AESCTR) SetEncodedEncriptedMessage ¶
func (*AESCTR) SetEncriptedMessage ¶
func (*AESCTR) SetKey ¶
Set encription key. This key is also used by AES CTR and hash function SHA-246 for HMAC
func (*AESCTR) SetPlainMessage ¶
Set plain message to encript, get IV, and encript.
type AESGCM ¶
type AESGCM struct {
// contains filtered or unexported fields
}
func (*AESGCM) GetDecriptedMessage ¶
func (*AESGCM) GetEncodedEncriptedMessage ¶
func (*AESGCM) GetEncriptedMessage ¶
func (*AESGCM) SetEncodedEncriptedMessage ¶
func (*AESGCM) SetEncriptedMessage ¶
func (*AESGCM) SetKey ¶
Set encription key. This key is also used by AES CTR and hash function SHA-246 for HMAC
func (*AESGCM) SetPlainMessage ¶
Set plain message to encript, get IV, and encript.
Click to show internal directories.
Click to hide internal directories.