Documentation
¶
Overview ¶
Package hq implements sphincs-blake3-512 hypertree signatures
package hq ...
package hq
Index ¶
- Constants
- type Config
- func (c *Config) Bench() bool
- func (c *Config) CryptoVerify() bool
- func (c *Config) DirSign() bool
- func (c *Config) DirVerify() bool
- func (c *Config) FileSign() bool
- func (c *Config) FileSignExecuteable() bool
- func (c *Config) FileVerify() bool
- func (c *Config) FileVerifyExecuteable() bool
- func (c *Config) Generate() bool
- func (c *Config) LegacyPass() bool
- func (c *Config) Lock() bool
- func (c *Config) ParseCmd()
- func (c *Config) RunAction() bool
- func (c *Config) RunExecPlain() bool
- func (c *Config) Unlock() bool
- type HQ
- type ID
- type IO
Constants ¶
View Source
const ( // PublicKeySize PublicKeySize = sphincs.PublicKeySize // PrivateKeySize PrivateKeySize = sphincs.PrivateKeySize // SignatureSize SignatureSize = sphincs.SignatureSize // HashSize HashSize = 64 )
const
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Action string // Requested Action [sign|verify|generate|bench] Target string // Requested Target [dir|file] TargetTS string // Requested Target TimeStamp FileName string // FileName File *os.File // FileHandle Signify bool // enable optional OpenBSD signify signatures CodeReview bool // enable additional code-review hashes for source code files Silent bool // enable silent mode [eg. for benchmarking] IsExec bool // true if executeable mode is detected IsPipe bool // true if exec mode is detected MapOnly bool // true if exec mode is detected RunExec bool // true if run mode [not display mode] is requested PwdComplex bool // true if complex legacy password is requested PlainTextScript bool // run plaintext sh script interpreter TokenExec string // magic token to determine exec type for execution PwdService string // the [legacy] password service name [psn] ScriptExtL int // lengh of extension name }
Config ...
func (*Config) FileSignExecuteable ¶
FileSignExecuteable ...
func (*Config) FileVerifyExecuteable ¶
FileVerifyExecuteable verifies and executes an hq singed hqx container
func (*Config) LegacyPass ¶
LegacyPass is a [k]ey[d]erivation[f]unction for legacy passwords
type ID ¶
type ID struct { OWNER [HashSize]byte // OWNER ID TAG [30]byte // NAME TAG KEY [PublicKeySize]byte // SPHINCS Public Key }
ID identiy
type IO ¶
type IO struct { HashPassONE [HashSize]byte // hashed password token HashPassTWO [HashSize]byte // hashed password token MSG [HashSize]byte // message[hash] to [sign|verify] MSGRAW []byte // pointer to raw message SCRIPT []byte // compressed and base64 encoded exec TokenExec string // magic token to determine exec type for execution ScriptExtL int // lengh of extension name DirName string // Report DirName FileName string // Report FileName FilesTotal uint64 // total number of files FilesFail uint64 // total number of files with hash|checksum errors FilesNew uint64 // total number of files with hash|checksum errors Signify bool // enable optional OpenBSD signify signatures PlainTextScript bool // Plain Text Posix script interp mode MapClean bool // true if we need to wipe old maps Silent bool // silent mode for benchmarking UnlockedKey bool // true if /.hq/.unlocked key was found IsExec bool // true if exec mode ReportID bool // Report Status [summary] ReportTime bool // Report Status [summary] ReportValid bool // Report Status [summary] ColorUI bool // enable CLI ColorUI SetMe bool // Set Me Key Symbolic Link PwdEnv bool // true if pass creds from env CPU int // number of CPU cores Start time.Time // Time Stamp Start Action End time.Time // Time Stamp End Action TSS string // POSIX TS (nanoseconds since 01/01/1970 00:00 UTC) SIG [SignatureSize]byte // RAW SPHINCS-256 signature PRIVKEY [PrivateKeySize]byte // RAW SPHINCS-256 private key SIGNIFYMSG []byte // Encoded OpenBSD Signify Message SIGNIFYPUB []byte // Encoded OpenBSD Signify PublicKey SIGNIFYFILE []byte // Encoded OpenBSD Signify Signature }
IO exchange
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package blake3 provides an SSE4.1/AVX2 accelerated BLAKE3 implementation.
|
Package blake3 provides an SSE4.1/AVX2 accelerated BLAKE3 implementation. |
cmd
|
|
hq
package main
|
package main |
Package cubetoken provides a complex KDF function
|
Package cubetoken provides a complex KDF function |
Package scrypt implements the scrypt key derivation function as defined in Colin Percival's paper "Stronger Key Derivation via Sequential Memory-Hard Functions" (https://www.tarsnap.com/scrypt/scrypt.pdf).
|
Package scrypt implements the scrypt key derivation function as defined in Colin Percival's paper "Stronger Key Derivation via Sequential Memory-Hard Functions" (https://www.tarsnap.com/scrypt/scrypt.pdf). |
Click to show internal directories.
Click to hide internal directories.