AesCtr

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const BlockSize = 16

Variables

This section is empty.

Functions

func CtrForAesOnceXORKeyStream

func CtrForAesOnceXORKeyStream(req CtrForAesOnceXORKeyStreamRequest)

func NewCipher

func NewCipher(key []byte) (cipher.Block, error)

func PoolGetAesCtr

func PoolGetAesCtr(block cipher.Block, iv []byte) cipher.Stream

func PoolPutAesCtr

func PoolPutAesCtr(ctrObj cipher.Stream)

Types

type CtrForAesOnceXORKeyStreamRequest

type CtrForAesOnceXORKeyStreamRequest struct {
	AesBlock cipher.Block
	Dst      []byte
	Src      []byte
	Iv       []byte

	TmpBuf []byte
}

type KeySizeError

type KeySizeError int

func (KeySizeError) Error

func (k KeySizeError) Error() string

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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