security

package
v2.0.0-...-9a41fce Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PKCS5Padding

func PKCS5Padding(cipherText []byte, blockSize int) []byte

Types

type OracleNetworkCBCCryptor

type OracleNetworkCBCCryptor struct {
	// contains filtered or unexported fields
}

func NewOracleNetworkCBCEncrypter

func NewOracleNetworkCBCEncrypter(key, iv []byte) (*OracleNetworkCBCCryptor, error)

func (*OracleNetworkCBCCryptor) Decrypt

func (sec *OracleNetworkCBCCryptor) Decrypt(input []byte) ([]byte, error)

func (*OracleNetworkCBCCryptor) Encrypt

func (sec *OracleNetworkCBCCryptor) Encrypt(input []byte) ([]byte, error)

func (*OracleNetworkCBCCryptor) Reset

func (set *OracleNetworkCBCCryptor) Reset() error

type OracleNetworkDESCryptor

type OracleNetworkDESCryptor struct {
	// contains filtered or unexported fields
}

func NewOracleNetworkDESCryptor

func NewOracleNetworkDESCryptor(key []byte, iv []byte) (*OracleNetworkDESCryptor, error)

func (*OracleNetworkDESCryptor) Decrypt

func (sec *OracleNetworkDESCryptor) Decrypt(input []byte) ([]byte, error)

func (*OracleNetworkDESCryptor) Encrypt

func (sec *OracleNetworkDESCryptor) Encrypt(input []byte) ([]byte, error)

func (*OracleNetworkDESCryptor) Reset

func (sec *OracleNetworkDESCryptor) Reset() error

type OracleNetworkDataIntegrity

type OracleNetworkDataIntegrity interface {
	Init() error
	Compute(input []byte) []byte
	Validate(input []byte) ([]byte, error)
}

type OracleNetworkEncryption

type OracleNetworkEncryption interface {
	Reset() error
	Encrypt(input []byte) ([]byte, error)
	Decrypt(input []byte) ([]byte, error)
}

type OracleNetworkHash

type OracleNetworkHash struct {
	Hash hash.Hash
	// contains filtered or unexported fields
}

func NewOracleNetworkHash

func NewOracleNetworkHash(hash hash.Hash, key, iv []byte) (*OracleNetworkHash, error)

func (*OracleNetworkHash) Compute

func (onh *OracleNetworkHash) Compute(input []byte) []byte

func (*OracleNetworkHash) Init

func (onh *OracleNetworkHash) Init() error

func (*OracleNetworkHash) Validate

func (onh *OracleNetworkHash) Validate(input []byte) ([]byte, error)

type OracleNetworkHash2

type OracleNetworkHash2 struct {
	Hash hash.Hash
	// contains filtered or unexported fields
}

func NewOracleNetworkHash2

func NewOracleNetworkHash2(hash hash.Hash, key, iv []byte) (*OracleNetworkHash2, error)

func (*OracleNetworkHash2) Compute

func (onh *OracleNetworkHash2) Compute(input []byte) []byte

func (*OracleNetworkHash2) Init

func (onh *OracleNetworkHash2) Init() error

func (*OracleNetworkHash2) Validate

func (onh *OracleNetworkHash2) Validate(input []byte) ([]byte, error)

type OracleNetworkRC4Cryptor

type OracleNetworkRC4Cryptor struct {
	// contains filtered or unexported fields
}

func NewOracleNetworkRC4Cryptor

func NewOracleNetworkRC4Cryptor(initBuffer, iv []byte, keySize int) (*OracleNetworkRC4Cryptor, error)

func (*OracleNetworkRC4Cryptor) Decrypt

func (sec *OracleNetworkRC4Cryptor) Decrypt(input []byte) ([]byte, error)

func (*OracleNetworkRC4Cryptor) Encrypt

func (sec *OracleNetworkRC4Cryptor) Encrypt(input []byte) ([]byte, error)

func (*OracleNetworkRC4Cryptor) Reset

func (sec *OracleNetworkRC4Cryptor) Reset() error

Directories

Path Synopsis
Package md4 implements the MD4 hash algorithm as defined in RFC 1320.
Package md4 implements the MD4 hash algorithm as defined in RFC 1320.

Jump to

Keyboard shortcuts

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