Documentation ¶
Index ¶
- Variables
- func MakeSeqNum(ctx context.Context, seqNum uint64, client bool) []byte
- type AESSHA2
- func (c *AESSHA2) DeriveKey(ctx context.Context, key []byte) []byte
- func (c *AESSHA2) MICHeader(ctx context.Context, seqNum uint64) []byte
- func (c *AESSHA2) MakeSignature(ctx context.Context, seqNum uint64, forSign [][]byte) ([]byte, error)
- func (c *AESSHA2) Size(ctx context.Context, conf bool) int
- func (c *AESSHA2) Unwrap(ctx context.Context, seqNum uint64, forSign, forSeal [][]byte, sgn []byte) ([]byte, error)
- func (c *AESSHA2) Wrap(ctx context.Context, seqNum uint64, forSign [][]byte, forSeal [][]byte) ([]byte, error)
- func (c *AESSHA2) WrapHeader(ctx context.Context, seqNum uint64) []byte
- type Cipher
- type RC4MD5
- func (c *RC4MD5) EncryptionKey(ctx context.Context, seqNum uint64) ([]byte, error)
- func (c *RC4MD5) MICHeader(ctx context.Context, seqNum uint64) []byte
- func (c *RC4MD5) MakeSignature(ctx context.Context, seqNum uint64, forSign [][]byte) ([]byte, error)
- func (c *RC4MD5) Size(ctx context.Context, conf bool) int
- func (c *RC4MD5) Unwrap(ctx context.Context, seqNum uint64, forSign, forSeal [][]byte, sgn []byte) ([]byte, error)
- func (c *RC4MD5) Wrap(ctx context.Context, seqNum uint64, forSign, forSeal [][]byte) ([]byte, error)
- func (c *RC4MD5) WrapHeader(ctx context.Context, seqNum uint64) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EtypeAESSHA2 etype = 1 EtypeRC4MD5 etype = 2 )
Functions ¶
Types ¶
type AESSHA2 ¶
type AESSHA2 struct {
// contains filtered or unexported fields
}
func (*AESSHA2) MakeSignature ¶
type Cipher ¶
type RC4MD5 ¶
type RC4MD5 struct {
// contains filtered or unexported fields
}
func (*RC4MD5) EncryptionKey ¶
func (*RC4MD5) MakeSignature ¶
Click to show internal directories.
Click to hide internal directories.