passforios-gopenpgp/models/models.go

26 lines
550 B
Go
Raw Normal View History

// Provides high-level public data models used for communication mainly with mobile clients
package models
2019-05-13 12:33:01 +00:00
// EncryptedSplit when encrypt attachment
type EncryptedSplit struct {
DataPacket []byte
KeyPacket []byte
Algo string
}
2019-05-13 12:33:01 +00:00
// EncryptedSigned encrypt_sign_package
type EncryptedSigned struct {
Encrypted string
Signature string
}
2019-05-13 12:33:01 +00:00
// DecryptSignedVerify decrypt_sign_verify
type DecryptSignedVerify struct {
//clear text
Plaintext string
//bitmask verify status : 0
Verify int
//error message if verify failed
Message string
}