Documentation
¶
Index ¶
- Variables
- func Genkey(data []byte, lbl string, size int) ([]byte, error)
- func HMAC3256(key []byte, data []byte) []byte
- func HMAC3512(key []byte, data []byte) []byte
- func Random(size int) []byte
- func SHA3256(data []byte) []byte
- func SHA3512(data []byte) []byte
- type AES1
- func (a *AES1) DeAESGCM(key []byte, data []byte) ([]byte, error)
- func (a *AES1) DeAESGCMx(key []byte, src io.Reader, size int64, dst io.Writer, chunkSize int) error
- func (a *AES1) EnAESGCM(key []byte, data []byte) ([]byte, error)
- func (a *AES1) EnAESGCMx(key []byte, src io.Reader, size int64, dst io.Writer, chunkSize int) error
- func (a *AES1) Init()
- func (a *AES1) Processed() int64
- type AsymMaster
- func (am *AsymMaster) Decrypt(data []byte) ([]byte, error)
- func (am *AsymMaster) Encrypt(data []byte) ([]byte, error)
- func (am *AsymMaster) Genkey() ([]byte, []byte, error)
- func (am *AsymMaster) Init(algo string) error
- func (am *AsymMaster) Loadkey(public []byte, private []byte) error
- func (am *AsymMaster) Sign(data []byte) ([]byte, error)
- func (am *AsymMaster) Verify(data []byte, signature []byte) bool
- type ECC1
- func (e *ECC1) Decrypt(data []byte) ([]byte, error)
- func (e *ECC1) Encrypt(data []byte) ([]byte, error)
- func (e *ECC1) Genkey() ([]byte, []byte, error)
- func (e *ECC1) Loadkey(public []byte, private []byte) error
- func (e *ECC1) Sign(data []byte) ([]byte, error)
- func (e *ECC1) Verify(data []byte, signature []byte) bool
- type HashMaster
- type Masker
- type PQC1
- func (p *PQC1) Decrypt(data []byte) ([]byte, error)
- func (p *PQC1) Encrypt(data []byte) ([]byte, error)
- func (p *PQC1) Genkey() ([]byte, []byte, error)
- func (p *PQC1) Loadkey(public []byte, private []byte) error
- func (p *PQC1) Sign(data []byte) ([]byte, error)
- func (p *PQC1) Verify(data []byte, signature []byte) bool
- type SymMaster
- func (sm *SymMaster) AfterSize(size int64) int64
- func (sm *SymMaster) DeBin(data []byte) ([]byte, error)
- func (sm *SymMaster) DeFile(src io.Reader, size int64, dst io.Writer) error
- func (sm *SymMaster) EnBin(data []byte) ([]byte, error)
- func (sm *SymMaster) EnFile(src io.Reader, size int64, dst io.Writer) error
- func (sm *SymMaster) Init(algo string, key []byte) error
- func (sm *SymMaster) Processed() int64
Constants ¶
This section is empty.
Variables ¶
View Source
var SCLEAR_BACK = func(b []byte) { clear(b) }
========== Basic Functions ==========
Functions ¶
Types ¶
type AES1 ¶
type AES1 struct {
// contains filtered or unexported fields
}
========== AES Encryption ==========
func (*AES1) DeAESGCMx ¶
AES-GCM extended, 44B key (12B IV + 32B AES Key), default chunkSize=1048576
type AsymMaster ¶
type AsymMaster struct {
Algo string // algo: "ecc1", "pqc1"
// contains filtered or unexported fields
}
========== Asymetric Encryption Master ==========
func (*AsymMaster) Genkey ¶
func (am *AsymMaster) Genkey() ([]byte, []byte, error)
Generate key pair
func (*AsymMaster) Init ¶
func (am *AsymMaster) Init(algo string) error
type ECC1 ¶
type ECC1 struct {
// X448 Keys (Encryption)
PrivX *x448.Key
PubX *x448.Key
// Ed448 Keys (Signing)
PrivEd ed448.PrivateKey
PubEd ed448.PublicKey
}
========== ECC Encryption ==========
type HashMaster ¶
type HashMaster struct {
// contains filtered or unexported fields
}
========== Hash Function Master ==========
type PQC1 ¶
type PQC1 struct {
// ECC Keys
PubX *x448.Key
PrivX *x448.Key
PubEd ed448.PublicKey
PrivEd ed448.PrivateKey
// PQC Key Bytes (Raw Bytes Storage)
PubKEM []byte
PrivKEM []byte
PubDSA []byte
PrivDSA []byte
// contains filtered or unexported fields
}
========== PQC1 Encryption ==========
Click to show internal directories.
Click to hide internal directories.