Documentation ¶
Index ¶
- func Parse(name, data string) map[string]string
- func Recv(ctx context.Context, fsm marionette.FSM, args ...interface{}) error
- func RegisterGrammar(grammar *Grammar)
- func Send(ctx context.Context, fsm marionette.FSM, args ...interface{}) error
- type AmazonMsgLensCipher
- func (h *AmazonMsgLensCipher) Capacity(fsm marionette.FSM) (int, error)
- func (h *AmazonMsgLensCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
- func (h *AmazonMsgLensCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
- func (h *AmazonMsgLensCipher) Key() string
- type FTECipher
- func (c *FTECipher) Capacity(fsm marionette.FSM) (int, error)
- func (c *FTECipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
- func (c *FTECipher) Encrypt(fsm marionette.FSM, template string, data []byte) (ciphertext []byte, err error)
- func (c *FTECipher) Key() string
- type Grammar
- type HTTPContentLengthCipher
- func (c *HTTPContentLengthCipher) Capacity(fsm marionette.FSM) (int, error)
- func (c *HTTPContentLengthCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
- func (c *HTTPContentLengthCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
- func (c *HTTPContentLengthCipher) Key() string
- type POP3ContentLengthCipher
- func (c *POP3ContentLengthCipher) Capacity(fsm marionette.FSM) (int, error)
- func (c *POP3ContentLengthCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
- func (c *POP3ContentLengthCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
- func (c *POP3ContentLengthCipher) Key() string
- type RankerCipher
- func (c *RankerCipher) Capacity(fsm marionette.FSM) (int, error)
- func (c *RankerCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
- func (c *RankerCipher) Encrypt(fsm marionette.FSM, template string, data []byte) (ciphertext []byte, err error)
- func (c *RankerCipher) Key() string
- type SetDNSDomainCipher
- func (c *SetDNSDomainCipher) Capacity(fsm marionette.FSM) (int, error)
- func (c *SetDNSDomainCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
- func (c *SetDNSDomainCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
- func (c *SetDNSDomainCipher) Key() string
- type SetDNSIPCipher
- func (c *SetDNSIPCipher) Capacity(fsm marionette.FSM) (int, error)
- func (c *SetDNSIPCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
- func (c *SetDNSIPCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
- func (c *SetDNSIPCipher) Key() string
- type SetDNSTransactionIDCipher
- func (c *SetDNSTransactionIDCipher) Capacity(fsm marionette.FSM) (int, error)
- func (c *SetDNSTransactionIDCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
- func (c *SetDNSTransactionIDCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
- func (c *SetDNSTransactionIDCipher) Key() string
- type SetFTPPasvXCipher
- func (c *SetFTPPasvXCipher) Capacity(fsm marionette.FSM) (int, error)
- func (c *SetFTPPasvXCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
- func (c *SetFTPPasvXCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
- func (c *SetFTPPasvXCipher) Key() string
- type SetFTPPasvYCipher
- func (c *SetFTPPasvYCipher) Capacity(fsm marionette.FSM) (int, error)
- func (c *SetFTPPasvYCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
- func (c *SetFTPPasvYCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
- func (c *SetFTPPasvYCipher) Key() string
- type TemplateCipher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGrammar ¶
func RegisterGrammar(grammar *Grammar)
RegisterGrammar adds grammar to the registry.
Types ¶
type AmazonMsgLensCipher ¶
type AmazonMsgLensCipher struct {
// contains filtered or unexported fields
}
func NewAmazonMsgLensCipher ¶
func NewAmazonMsgLensCipher(key, regex string) *AmazonMsgLensCipher
func (*AmazonMsgLensCipher) Capacity ¶
func (h *AmazonMsgLensCipher) Capacity(fsm marionette.FSM) (int, error)
func (*AmazonMsgLensCipher) Decrypt ¶
func (h *AmazonMsgLensCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
func (*AmazonMsgLensCipher) Encrypt ¶
func (h *AmazonMsgLensCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
func (*AmazonMsgLensCipher) Key ¶
func (h *AmazonMsgLensCipher) Key() string
type FTECipher ¶
type FTECipher struct {
// contains filtered or unexported fields
}
type Grammar ¶
type Grammar struct { Name string Templates []string Ciphers []TemplateCipher }
type HTTPContentLengthCipher ¶
type HTTPContentLengthCipher struct{}
func NewHTTPContentLengthCipher ¶
func NewHTTPContentLengthCipher() *HTTPContentLengthCipher
func (*HTTPContentLengthCipher) Capacity ¶
func (c *HTTPContentLengthCipher) Capacity(fsm marionette.FSM) (int, error)
func (*HTTPContentLengthCipher) Decrypt ¶
func (c *HTTPContentLengthCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
func (*HTTPContentLengthCipher) Encrypt ¶
func (c *HTTPContentLengthCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
func (*HTTPContentLengthCipher) Key ¶
func (c *HTTPContentLengthCipher) Key() string
type POP3ContentLengthCipher ¶
type POP3ContentLengthCipher struct{}
func NewPOP3ContentLengthCipher ¶
func NewPOP3ContentLengthCipher() *POP3ContentLengthCipher
func (*POP3ContentLengthCipher) Capacity ¶
func (c *POP3ContentLengthCipher) Capacity(fsm marionette.FSM) (int, error)
func (*POP3ContentLengthCipher) Decrypt ¶
func (c *POP3ContentLengthCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
func (*POP3ContentLengthCipher) Encrypt ¶
func (c *POP3ContentLengthCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
func (*POP3ContentLengthCipher) Key ¶
func (c *POP3ContentLengthCipher) Key() string
type RankerCipher ¶
type RankerCipher struct {
// contains filtered or unexported fields
}
func NewRankerCipher ¶
func NewRankerCipher(key, regex string, msgLen int) *RankerCipher
func (*RankerCipher) Capacity ¶
func (c *RankerCipher) Capacity(fsm marionette.FSM) (int, error)
func (*RankerCipher) Decrypt ¶
func (c *RankerCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
func (*RankerCipher) Encrypt ¶
func (c *RankerCipher) Encrypt(fsm marionette.FSM, template string, data []byte) (ciphertext []byte, err error)
func (*RankerCipher) Key ¶
func (c *RankerCipher) Key() string
type SetDNSDomainCipher ¶
type SetDNSDomainCipher struct{}
func NewSetDNSDomainCipher ¶
func NewSetDNSDomainCipher() *SetDNSDomainCipher
func (*SetDNSDomainCipher) Capacity ¶
func (c *SetDNSDomainCipher) Capacity(fsm marionette.FSM) (int, error)
func (*SetDNSDomainCipher) Decrypt ¶
func (c *SetDNSDomainCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
func (*SetDNSDomainCipher) Encrypt ¶
func (c *SetDNSDomainCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
func (*SetDNSDomainCipher) Key ¶
func (c *SetDNSDomainCipher) Key() string
type SetDNSIPCipher ¶
type SetDNSIPCipher struct{}
func NewSetDNSIPCipher ¶
func NewSetDNSIPCipher() *SetDNSIPCipher
func (*SetDNSIPCipher) Capacity ¶
func (c *SetDNSIPCipher) Capacity(fsm marionette.FSM) (int, error)
func (*SetDNSIPCipher) Decrypt ¶
func (c *SetDNSIPCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
func (*SetDNSIPCipher) Encrypt ¶
func (c *SetDNSIPCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
func (*SetDNSIPCipher) Key ¶
func (c *SetDNSIPCipher) Key() string
type SetDNSTransactionIDCipher ¶
type SetDNSTransactionIDCipher struct{}
func NewSetDNSTransactionIDCipher ¶
func NewSetDNSTransactionIDCipher() *SetDNSTransactionIDCipher
func (*SetDNSTransactionIDCipher) Capacity ¶
func (c *SetDNSTransactionIDCipher) Capacity(fsm marionette.FSM) (int, error)
func (*SetDNSTransactionIDCipher) Decrypt ¶
func (c *SetDNSTransactionIDCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
func (*SetDNSTransactionIDCipher) Encrypt ¶
func (c *SetDNSTransactionIDCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
func (*SetDNSTransactionIDCipher) Key ¶
func (c *SetDNSTransactionIDCipher) Key() string
type SetFTPPasvXCipher ¶
type SetFTPPasvXCipher struct{}
func NewSetFTPPasvXCipher ¶
func NewSetFTPPasvXCipher() *SetFTPPasvXCipher
func (*SetFTPPasvXCipher) Capacity ¶
func (c *SetFTPPasvXCipher) Capacity(fsm marionette.FSM) (int, error)
func (*SetFTPPasvXCipher) Decrypt ¶
func (c *SetFTPPasvXCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
func (*SetFTPPasvXCipher) Encrypt ¶
func (c *SetFTPPasvXCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
func (*SetFTPPasvXCipher) Key ¶
func (c *SetFTPPasvXCipher) Key() string
type SetFTPPasvYCipher ¶
type SetFTPPasvYCipher struct{}
func NewSetFTPPasvYCipher ¶
func NewSetFTPPasvYCipher() *SetFTPPasvYCipher
func (*SetFTPPasvYCipher) Capacity ¶
func (c *SetFTPPasvYCipher) Capacity(fsm marionette.FSM) (int, error)
func (*SetFTPPasvYCipher) Decrypt ¶
func (c *SetFTPPasvYCipher) Decrypt(fsm marionette.FSM, ciphertext []byte) (plaintext []byte, err error)
func (*SetFTPPasvYCipher) Encrypt ¶
func (c *SetFTPPasvYCipher) Encrypt(fsm marionette.FSM, template string, plaintext []byte) (ciphertext []byte, err error)
func (*SetFTPPasvYCipher) Key ¶
func (c *SetFTPPasvYCipher) Key() string
type TemplateCipher ¶
Click to show internal directories.
Click to hide internal directories.