decryptloop

package
v0.0.0-...-911f5be Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2016 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

25 september 2016

25 september 2016

Index

Constants

This section is empty.

Variables

View Source
var ErrStepListStringEmpty = fmt.Errorf("step list string is empty/specifies no steps")

Functions

func StepUsage

func StepUsage() string

TODO merge with package command - can't use command directly since that imports us

Types

type DecryptLoop

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

func New

func New(steps StepList, c cipher.Block, out io.Writer) *DecryptLoop

func (*DecryptLoop) StillPendingData

func (dl *DecryptLoop) StillPendingData() bool

func (*DecryptLoop) Write

func (dl *DecryptLoop) Write(b []byte) (n int, err error)

type Step

type Step step
var StepDecrypt Step = stepDecrypt
var StepReverse Step = stepReverse
var StepSwapHalves Step = stepSwapHalves
var StepSwapLongs Step = stepSwapLongs
var StepSwapWords Step = stepSwapWords

type StepList

type StepList []Step

func StepListFromString

func StepListFromString(s string) (StepList, error)

func (StepList) String

func (s StepList) String() string

type UnknownStepNameError

type UnknownStepNameError string

func (UnknownStepNameError) Error

func (e UnknownStepNameError) Error() string

Jump to

Keyboard shortcuts

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