crypt

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AES_Init

func AES_Init(info *AES_ALG_INFO, pdwKey []byte)

void __cdecl CAESCipher::AES_DecInit(CAESCipher::AES_ALG_INFO *AlgInfo, unsigned int *pdwKey) void __cdecl CAESCipher::AES_EncInit(CAESCipher::AES_ALG_INFO *AlgInfo, unsigned int *pdwKey)

func OFB_Update

func OFB_Update(info *AES_ALG_INFO, buf []byte)

char __cdecl CAESCipher::OFB_DecUpdate(CAESCipher::AES_ALG_INFO *AlgInfo,char *CipherTxt,unsigned int CipherTxtLen,char *PlainTxt,unsigned int *PlainTxtLen) char __cdecl CAESCipher::OFB_EncUpdate(CAESCipher::AES_ALG_INFO *AlgInfo,char *PlainTxt,unsigned int PlainTxtLen,char *CipherTxt,unsigned int *CipherTxtLen)

func RIJNDAEL_KeySchedule

func RIJNDAEL_KeySchedule(userKey []byte, info *AES_ALG_INFO)

void __cdecl CAESCipher::RIJNDAEL_KeySchedule(unsigned int *UserKey, unsigned int *e_key)

func ROL1

func ROL1(val byte, num int) byte

func ROL4

func ROL4(value uint32, shift uint32) uint32

func ROR1

func ROR1(val byte, num int) byte

Types

type AES_ALG_INFO

type AES_ALG_INFO struct {
	ChainVar []byte       // IV
	Block    cipher.Block // Use Block to generate RoundKey
}

type CAESCipher

type CAESCipher struct{}

func (*CAESCipher) Decrypt

func (static *CAESCipher) Decrypt(userKey [32]byte, buf []byte, pdwkey []byte)

void __cdecl CAESCipher::Decrypt(unsigned __int8 *pDest, unsigned __int8 *pSrc, int nLen, unsigned int *pdwKey)

func (*CAESCipher) Encrypt

func (static *CAESCipher) Encrypt(userKey [32]byte, buf []byte, pdwkey []byte)

void __cdecl CAESCipher::Encrypt(unsigned __int8 *pDest, unsigned __int8 *pSrc, int nLen, unsigned int *pdwKey)

type CIGCipher

type CIGCipher struct{}

func (*CIGCipher) InnoHash

func (static *CIGCipher) InnoHash(pSrc []byte)

unsigned int __cdecl CIGCipher::innoHash(unsigned __int8 *pSrc, int nLen, unsigned int *pdwKey)

type CIOBufferManipulator

type CIOBufferManipulator struct{}

func (*CIOBufferManipulator) De

func (static *CIOBufferManipulator) De(buf []byte)

func (*CIOBufferManipulator) En

func (static *CIOBufferManipulator) En(buf []byte)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL