encryption

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AESKEYSIZE            = 32
	AESIVSIZE             = 16
	BCRYPT_AES_ALGORITHM  = windows.BCRYPT_AES_ALGORITHM
	BCRYPT_BLOCK_PADDING  = windows.BCRYPT_BLOCK_PADDING
	BCRYPT_CHAIN_MODE_CBC = windows.BCRYPT_CHAIN_MODE_CBC
	BCRYPT_OBJECT_LENGTH  = windows.BCRYPT_OBJECT_LENGTH
	BCRYPT_BLOCK_LENGTH   = windows.BCRYPT_BLOCK_LENGTH
)

Variables

This section is empty.

Functions

func GenerateRandomBytes

func GenerateRandomBytes(pByte []byte)

func InstallAesEncryption

func InstallAesEncryption(pAes *AES) error

func PrintHexData

func PrintHexData(Name string, Data []byte)

func Rc4EncryptionViSystemFunc032

func Rc4EncryptionViSystemFunc032(pRc4Key, pPayloadData []byte) error

func SimpleEncryption

func SimpleEncryption(pPlainTextData []byte, pKey, pIv []byte) ([]byte, error)

Types

type AES

type AES struct {
	PlainText  []byte
	PlainSize  uint32
	CipherText []byte
	CipherSize uint32
	Key        []byte
	Iv         []byte
}

type USTRING

type USTRING struct {
	Length        uint32
	MaximumLength uint32
	Buffer        *byte
}

Jump to

Keyboard shortcuts

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