Documentation ¶
Index ¶
- Constants
- Variables
- func Rotate(b []byte, rc int) []byte
- type AESCTSHMACSHA1
- func (c *AESCTSHMACSHA1) ChecksumHash() (hash.Hash, error)
- func (c *AESCTSHMACSHA1) IntegrityHash() (hash.Hash, error)
- func (c *AESCTSHMACSHA1) MICHeader(ctx context.Context, seqNum uint64) []byte
- func (c *AESCTSHMACSHA1) MakeSignature(ctx context.Context, seqNum uint64, forSgn [][]byte) ([]byte, error)
- func (c *AESCTSHMACSHA1) Size(ctx context.Context, conf bool) int
- func (c *AESCTSHMACSHA1) Unwrap(ctx context.Context, seqNum uint64, forSign, forSeal [][]byte, sgn []byte) (bool, error)
- func (c *AESCTSHMACSHA1) Wrap(ctx context.Context, seqNum uint64, forSign, forSeal [][]byte) ([]byte, error)
- func (c *AESCTSHMACSHA1) WrapHeader(ctx context.Context, seqNum uint64) []byte
- type Cipher
- func NewAESCipher(ctx context.Context, key types.EncryptionKey, isServer, isSubKey bool) (Cipher, error)
- func NewCipher(ctx context.Context, key types.EncryptionKey, isSubKey bool, isServer bool) (Cipher, error)
- func NewRC4Cipher(ctx context.Context, key types.EncryptionKey, isServer bool) (Cipher, error)
- type RC4HMAC
- func (c *RC4HMAC) MICHeader(ctx context.Context, seqNum uint64) []byte
- func (c *RC4HMAC) MakeSignature(ctx context.Context, seqNum uint64, forSign [][]byte) ([]byte, error)
- func (c *RC4HMAC) Size(ctx context.Context, conf bool) int
- func (c *RC4HMAC) Unwrap(ctx context.Context, seqNum uint64, forSign, forSeal [][]byte, sgn []byte) (bool, error)
- func (c *RC4HMAC) Wrap(ctx context.Context, seqNum uint64, forSign, forSeal [][]byte) ([]byte, error)
- func (c *RC4HMAC) WrapHeader(ctx context.Context, seqNum uint64) []byte
- type SizedHash
Constants ¶
View Source
const ( EC = 16 RRC = 28 )
Variables ¶
View Source
var ( CFXFlagSendByAcceptor = uint8(0x01) CFXFlagSealed = uint8(0x02) CFXFlagAcceptorSubKey = uint8(0x04) )
View Source
var (
KRB5OID = asn1.ObjectIdentifier{1, 2, 840, 113554, 1, 2, 2}
)
Functions ¶
Types ¶
type AESCTSHMACSHA1 ¶
type AESCTSHMACSHA1 struct {
// contains filtered or unexported fields
}
AESCTSHMACSHA1 represents the integrity/confidentiality routines for the aes128-cts-hmac-sha1 and aes256-cts-hmac-sha1.
func (*AESCTSHMACSHA1) ChecksumHash ¶
func (c *AESCTSHMACSHA1) ChecksumHash() (hash.Hash, error)
func (*AESCTSHMACSHA1) IntegrityHash ¶
func (c *AESCTSHMACSHA1) IntegrityHash() (hash.Hash, error)
func (*AESCTSHMACSHA1) MICHeader ¶
func (c *AESCTSHMACSHA1) MICHeader(ctx context.Context, seqNum uint64) []byte
func (*AESCTSHMACSHA1) MakeSignature ¶
func (*AESCTSHMACSHA1) WrapHeader ¶
func (c *AESCTSHMACSHA1) WrapHeader(ctx context.Context, seqNum uint64) []byte
type Cipher ¶
type Cipher interface { Wrap(context.Context, uint64, [][]byte, [][]byte) ([]byte, error) Unwrap(context.Context, uint64, [][]byte, [][]byte, []byte) (bool, error) MakeSignature(context.Context, uint64, [][]byte) ([]byte, error) Size(context.Context, bool) int }
func NewAESCipher ¶
func NewRC4Cipher ¶
Click to show internal directories.
Click to hide internal directories.