Documentation ¶
Index ¶
- Constants
- type AirGap
- type Chunks
- func (ch *Chunks) Count() uint16
- func (ch *Chunks) Data() []byte
- func (ch *Chunks) Filled() uint16
- func (ch *Chunks) IsFilled() bool
- func (ch *Chunks) ReadB64Chunk(frame string) (wasAdded bool, err error)
- func (ch *Chunks) SerializeB64() []string
- func (ch *Chunks) SetData(src []byte, chunkSize int) (*Chunks, error)
- type Decryptor
- type Encryptor
- type EncryptorDecryptor
- type Message
- type Operation
Constants ¶
View Source
const (
VersionDefault = 1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AirGap ¶
type AirGap struct {
// contains filtered or unexported fields
}
func NewAirGap ¶
NewAirGap initiates a new AirGap instance with secp256k1 serialized compressed public key
func (*AirGap) CreateMessage ¶
CreateMessage initiates new builder for AirGap messages batch
func (*AirGap) SetChunkSize ¶
func (*AirGap) SetEncryptorDecryptor ¶
func (a *AirGap) SetEncryptorDecryptor(ed EncryptorDecryptor) *AirGap
func (*AirGap) SetVersion ¶
type Chunks ¶
type Chunks struct {
// contains filtered or unexported fields
}
func (*Chunks) ReadB64Chunk ¶
func (*Chunks) SerializeB64 ¶
SerializeB64 represents data frames to strings array, ready for generate QR code animation frames
type EncryptorDecryptor ¶
EncryptorDecryptor provides encryption and decryption methods for airgap session security
Click to show internal directories.
Click to hide internal directories.