kek

package
v0.0.0-...-2dc4bbf Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

24 september 2016

23 october 2015

Index

Constants

View Source
const (
	AskReal    = "-real"
	AskOnce    = "-askonce"
	AskOnly    = "-onlyask"
	AskDefault = "-default"
)
View Source
const AskerDescription = "" +
	"This specifies a KEK to decrypt the key sector with. " +
	"This argument can be one of the following strings:\n" +
	"- " + AskReal + " to use the default KEK and then ask for a password until the correct one is used, just like the main decrypt command\n" +
	"- " + AskOnce + " to ask for a password once and only use the resultant KEK\n" +
	"- " + AskOnly + " to only ask for passwords until the correct one is used\n" +
	"- " + AskDefault + " to only use the default KEK\n" +
	"Any other string is taken as a hexadecimal string to use as the KEK."

Variables

View Source
var Default = []byte{
	0x03, 0x14, 0x15, 0x92, 0x65, 0x35, 0x89, 0x79, 0x32, 0x38, 0x46, 0x26, 0x43, 0x38, 0x32, 0x79,
	0xFC, 0xEB, 0xEA, 0x6D, 0x9A, 0xCA, 0x76, 0x86, 0xCD, 0xC7, 0xB9, 0xD9, 0xBC, 0xC7, 0xCD, 0x86,
}
View Source
var Default128 = []byte{
	0x03, 0x14, 0x15, 0x92, 0x65, 0x35, 0x89, 0x79, 0x2B, 0x99, 0x2D, 0xDF, 0xA2, 0x32, 0x49, 0xD6,
}

I don't know when this is used, but have it here it anyway

Functions

func FromPassword

func FromPassword(password string) []byte

Don't mind the weird loop here; we're imitating Unlock.exe.

Types

type Asker

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

func NewAsker

func NewAsker(cmdstr string) (a *Asker, err error)

TODO see if we can have AskReal, etc. be instances to avoid a useless error check

func (*Asker) Ask

func (a *Asker) Ask() bool

func (*Asker) Err

func (a *Asker) Err() error

func (*Asker) KEK

func (a *Asker) KEK() []byte

Jump to

Keyboard shortcuts

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