Documentation
¶
Index ¶
- func ROL1(val byte, num int) byte
- func ROL4(value uint32, shift uint32) uint32
- func ROR1(val byte, num int) byte
- type CAESCipher
- type CIGCipher
- func (c *CIGCipher) Decrypt(buf []byte, dwKey []byte)
- func (c *CIGCipher) Encrypt(buf []byte, dwKey []byte)
- func (c *CIGCipher) InnoHash(dwKey []byte)
- func (c *CIGCipher) InnoHashOld(dwKey []byte)
- func (c *CIGCipher) Shuffle(dwKey []byte, inputKey byte)
- func (c *CIGCipher) ShuffleOld(dwKey []byte, inputKey byte)
- type CIOBufferManipulator
- type LinearCipher
- type TripleDESCipher
- type XORCipher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CAESCipher ¶
type CAESCipher struct {
// contains filtered or unexported fields
}
func NewCAESCipher ¶ added in v1.1.6
func NewCAESCipher(aesKey [32]byte, aesInitType uint8) *CAESCipher
func (*CAESCipher) AESInit ¶ added in v1.1.7
func (c *CAESCipher) AESInit(dwKey []byte)
AESInit is void __cdecl CAESCipher::AES_DecInit(CAESCipher::AES_ALG_INFO *AlgInfo, unsigned int *pdwKey). AESInit is void __cdecl CAESCipher::AES_EncInit(CAESCipher::AES_ALG_INFO *AlgInfo, unsigned int *pdwKey).
func (*CAESCipher) Decrypt ¶
func (c *CAESCipher) Decrypt(buf []byte, dwkey []byte)
Decrypt is void __cdecl CAESCipher::Decrypt(unsigned __int8 *pDest, unsigned __int8 *pSrc, int nLen, unsigned int *pdwKey).
func (*CAESCipher) Encrypt ¶
func (c *CAESCipher) Encrypt(buf []byte, dwkey []byte)
Encrypt is void __cdecl CAESCipher::Encrypt(unsigned __int8 *pDest, unsigned __int8 *pSrc, int nLen, unsigned int *pdwKey).
func (*CAESCipher) OFBUpdate ¶ added in v1.1.7
func (c *CAESCipher) OFBUpdate(buf []byte)
OFBUpdate is char __cdecl CAESCipher::OFB_DecUpdate(CAESCipher::AES_ALG_INFO *AlgInfo,char *CipherTxt,unsigned int CipherTxtLen,char *PlainTxt,unsigned int *PlainTxtLen). OFBUpdate is char __cdecl CAESCipher::OFB_EncUpdate(CAESCipher::AES_ALG_INFO *AlgInfo,char *PlainTxt,unsigned int PlainTxtLen,char *CipherTxt,unsigned int *CipherTxtLen).
type CIGCipher ¶
type CIGCipher struct{}
func NewCIGCipherr ¶ added in v1.1.8
func NewCIGCipherr() *CIGCipher
func (*CIGCipher) InnoHash ¶
InnoHash is unsigned int __cdecl CIGCipher::innoHash(unsigned __int8 *pSrc, int nLen, unsigned int *pdwKey).
func (*CIGCipher) InnoHashOld ¶ added in v1.1.8
func (*CIGCipher) ShuffleOld ¶ added in v1.1.8
type CIOBufferManipulator ¶
type CIOBufferManipulator struct{}
func (*CIOBufferManipulator) De ¶
func (static *CIOBufferManipulator) De(buf []byte)
func (*CIOBufferManipulator) En ¶
func (static *CIOBufferManipulator) En(buf []byte)
type LinearCipher ¶ added in v1.1.6
type LinearCipher struct{}
func NewLinearCipher ¶ added in v1.1.6
func NewLinearCipher() *LinearCipher
func (*LinearCipher) Decrypt ¶ added in v1.1.6
func (c *LinearCipher) Decrypt(buf []byte, dwKey []byte)
func (*LinearCipher) Encrypt ¶ added in v1.1.6
func (c *LinearCipher) Encrypt(buf []byte, dwKey []byte)
type TripleDESCipher ¶ added in v1.1.2
type TripleDESCipher struct {
// contains filtered or unexported fields
}
func NewTripleDESCipher ¶ added in v1.1.2
func NewTripleDESCipher(desKey string) *TripleDESCipher
func (*TripleDESCipher) Decrypt ¶ added in v1.1.2
func (c *TripleDESCipher) Decrypt(buf []byte) (string, error)
func (*TripleDESCipher) Encrypt ¶ added in v1.1.2
func (c *TripleDESCipher) Encrypt(content string) ([]byte, error)
func (*TripleDESCipher) GetBlockSize ¶ added in v1.1.2
func (c *TripleDESCipher) GetBlockSize() int32
type XORCipher ¶ added in v1.0.9
type XORCipher struct{}
func NewXORCipher ¶ added in v1.1.6
func NewXORCipher() *XORCipher