Documentation
¶
Index ¶
Constants ¶
View Source
const ( Magic = "AEA1" MainKeyInfo = "AEA_AMK" RootHeaderEncryptedKeyInfo = "AEA_RHEK" ClusterKeyInfo = "AEA_CK" ClusterKeyMaterialInfo = "AEA_CHEK" SegmentKeyInfo = "AEA_SK" SignatureEncryptionDerivationKeyInfo = "AEA_SEK" SignatureEncryptionKeyInfo = "AEA_SEK2" PaddingKeyInfo = "AEA_PAK" )
View Source
const ( Signed profileType = 0 SymmetricEncryption profileType = 1 SymmetricEncryptionSigned profileType = 2 AsymmetricEncryption profileType = 3 AsymmetricEncryptionSigned profileType = 4 PasswordEncryption profileType = 5 )
View Source
const ( None checksumType = 0 Murmur checksumType = 1 Sha256 checksumType = 2 )
View Source
const ( NONE compressionType = '-' LZ4 compressionType = '4' LZBITMAP compressionType = 'b' LZFSE compressionType = 'e' LZVN compressionType = 'f' LZMA compressionType = 'x' ZLIB compressionType = 'z' )
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
func Decrypt(c *DecryptConfig) (string, error)
func Encrypt ¶
func Encrypt(in string, conf *EncryptConfig) error
Types ¶
type DecryptConfig ¶
type DecryptConfig struct {
Input string // Input AEA file
Output string // Output directory
PrivKeyData []byte // Private key data
B64SymKey string // Base64 encoded Symmetric encryption key
PemDB string // Path to PEM database
Proxy string // HTTP/HTTPS proxy
Insecure bool // Allow insecure connections (skip TLS verification)
// contains filtered or unexported fields
}
type EncryptConfig ¶
type Header ¶
func (Header) ScryptStrength ¶
type Metadata ¶
func (Metadata) DecryptFCS ¶
type PrivateKey ¶
type PrivateKey []byte
func (PrivateKey) UnmarshalBinaryPrivateKey ¶
func (k PrivateKey) UnmarshalBinaryPrivateKey() ([]byte, error)
type RootHeader ¶
type SegmentHeader ¶
Click to show internal directories.
Click to hide internal directories.