Documentation ¶
Index ¶
- Constants
- Variables
- func DumpByteString(data byte, f bool) string
- func FileTimeItem(dt *DateTime, dumpFlag bool) *result.Item
- func Flag2Item(flag byte, value string) *result.Item
- func KeyExpireItem(exp *Expire, dumpFlag bool) *result.Item
- func PubKeyTimeItem(dt *DateTime, dumpFlag bool) *result.Item
- func RawData(r *reader.Reader, name string, dumpFlag bool) *result.Item
- func SigExpireItem(exp *Expire, dumpFlag bool) *result.Item
- func SigTimeItem(dt *DateTime, dumpFlag bool) *result.Item
- type AEADID
- type Argon2Params
- type CompID
- type DateTime
- type Dumpdata
- type ECCPointCompFlag
- type ECParm
- type Expire
- type HashID
- type KeyID
- type LiteralFormat
- type MPI
- type Msgs
- type OID
- type PubID
- type S2KID
- type Salt
- type SigID
- type Stretch
- type SuboacketID
- type SymID
- type TagID
- type Text
- type Version
Constants ¶
const (
//PrivateAlgName string
PrivateAlgName = "Private/Experimental algorithm"
)
const (
//Unknown string
Unknown = "Unknown"
)
Variables ¶
var S2KEXPBIAS = uint32(6)
S2KEXPBIAS - S2K parameter
Functions ¶
func FileTimeItem ¶
FileTimeItem returns UNIXTime instance for Modification time of a file
func KeyExpireItem ¶
KeyExpireItem returns new Expire instance
func PubKeyTimeItem ¶
PubKeyTimeItem returns UNIXTime instance for Public key creation time
func SigExpireItem ¶
SigExpireItem returns new Expire instance
Types ¶
type DateTime ¶
type DateTime struct {
// contains filtered or unexported fields
}
DateTime class as UNIX time
func NewDateTime ¶
NewDateTime returns DateTime instance
type Dumpdata ¶
type Dumpdata struct {
// contains filtered or unexported fields
}
Dumpdata - raw data for dump
type ECCPointCompFlag ¶
type ECCPointCompFlag byte
PubID is Public-Key Algorithm ID
func (ECCPointCompFlag) Name ¶
func (f ECCPointCompFlag) Name(algName string) string
func (ECCPointCompFlag) String ¶
func (f ECCPointCompFlag) String() string
type Expire ¶
type Expire struct {
// contains filtered or unexported fields
}
Expire class is Expiration Time
type LiteralFormat ¶
type LiteralFormat byte
LiteralFormat is format of literal data
func (LiteralFormat) String ¶
func (l LiteralFormat) String() string
func (LiteralFormat) ToItem ¶
func (l LiteralFormat) ToItem() *result.Item
ToItem returns Item instance
type MPI ¶
type MPI struct {
// contains filtered or unexported fields
}
MPI class as multi-precision integer
type SuboacketID ¶
type SuboacketID byte
SuboacketID is sub-packet type ID
func (SuboacketID) String ¶
func (s SuboacketID) String() string
type Text ¶
type Text struct {
// contains filtered or unexported fields
}
Text is literal text
func NewLiteralFname ¶
NewLiteralFname returns new Text instance for file name of literal data
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version - information version
func NewVersion ¶
NewVersion returns new Version instance
func PubSessKeyVer ¶
PubSessKeyVer is Public-Key Encrypted Session Key Packet Version
func SymSessKeyVer ¶
SymSessKeyVer is Symmetric-Key Encrypted Session Key Packet Version